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 / April 2007

Tip: Looking for answers? Try searching our database.

Need formula to lookup data in row

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Davey Boy - 28 Apr 2007 12:56 GMT
Hi...

This is the example I have in a spreadsheet:

Cell A2 = 100
Cell B2 = 11/30/10
Cell H2 = 1,000
Cell L2 = 12/1/10

There can be other data in cells F2 to N2

What I need is a formula that will return 1,000/100 in cell D2...

This is how I'm thinking of structuring the formula in D2:

IF "B2+1" matches a value in F2:N2, return the data 4 cells before the
matching cell and divide that by A2...

In other words - using my example above:
IF (11/30/10 plus 1) matches a value from F2 to N2 >> This finds
"12/1/10" in Cell L2 ... Then returns the data in the cell that's 4 cells
before 12/1/10 (or cell H2) and divide it by A2...

I hope I've made myself clear...

Thanks in advance for your help! ...

Dave
Ron Coderre - 28 Apr 2007 13:06 GMT
Try something like this:

D2: =IF(COUNTIF(F2:N2,B2+1),INDEX(F2:N2,1,MATCH(B2+1,F2:N2,0)-4)/A2,"no
match")

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP

> Hi...
>
[quoted text clipped - 24 lines]
>
> Dave
Davey Boy - 28 Apr 2007 13:22 GMT
Ron,
Thank you sooooo much! ...
I would never have come up with that myself...
Aloha! ...
dave...

=?Utf-8?B?Um9uIENvZGVycmU=?= <RonCoderre@discussions.microsoft.com>
wrote in news:86244D38-BB6E-4EC9-98FF-C5DE21C0250F@microsoft.com:

> Try something like this:
>
[quoted text clipped - 8 lines]
>
> XL2002, WinXP
 
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.