Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / May 2006

Tip: Looking for answers? Try searching our database.

VLOOKUP problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
fastballfreddy - 15 May 2006 20:14 GMT
In AT I have the sum of money for the current month - AT2:AT32
In AU I have the days left in the month (sun & mon are not included
they are the weekend).

In cell AW2 I have the formula: =VLOOKUP(0,AT2:AU33,2,FALSE)

Basically if there is money in AT2, it will go to the next cell unti
it finds 0, to read from AU for the # of days left.  My problem i
there are a few occasions there could be no money for a day.

I don't know if that made any sense, so I included an attachment.

AT3 has no money for the day, while AT4 does.

The formula doesn't recognize this, and AW2 shows 22, when it shoul
show 20.  Does anybody have any ideas for this

+-------------------------------------------------------------------
|Filename: web.zip                                                  
|Download: http://www.excelforum.com/attachment.php?postid=4764     
+-------------------------------------------------------------------
Domenic - 15 May 2006 21:10 GMT
Try...

=INDEX(AU2:AU33,MATCH(1,IF(ISNUMBER(AT2:AT33),IF(AT2:AT33>0,1)),0)+1)

...confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

Hope this helps!

In article
<fastballfreddy.27v570_1147720505.1553@excelforum-nospam.com>,
fastballfreddy

> In AT I have the sum of money for the current month - AT2:AT32
> In AU I have the days left in the month (sun & mon are not included,
[quoted text clipped - 17 lines]
> |Download: http://www.excelforum.com/attachment.php?postid=4764     |
> +-------------------------------------------------------------------+
fastballfreddy - 16 May 2006 03:46 GMT
thanks domenic,

that does work for the excel example; however, if you put lets say $100
into AN3, making the total in cell AT3 $100.  Your formula will
recognize AT3 and return the result 21.  

The more I thought about it, what I need is a formula that will start
the search at AT33 and move up (AT32, AT31 and so on) until it finds a
# > 0.  Lets say it finds a value of 200 in AT18, it would then go to
AU18-1, to return 10.

any ideas?

Signature

fastballfreddy

Domenic - 16 May 2006 11:53 GMT
In that case, try the following formula instead...

=INDEX(AU2:AU33,MATCH(2,1/IF(ISNUMBER(AT2:AT33),IF(AT2:AT33>0,1))))-1

...confirmed with CONTROL+SHIFT+ENTER.

Hope this helps!

In article
<fastballfreddy.27vq9a_1147747802.383@excelforum-nospam.com>,
fastballfreddy

> thanks domenic,
>
[quoted text clipped - 8 lines]
>
> any ideas?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.