Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Need formula to lookup data in row

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 698
Default Need formula to lookup data in row

Try something like this:

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

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

XL2002, WinXP


"Davey Boy" wrote:

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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Need formula to lookup data in row

Ron,
Thank you sooooo much! ...
I would never have come up with that myself...
Aloha! ...
dave...

?B?Um9uIENvZGVycmU=?=
wrote in :

Try something like this:

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

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

XL2002, WinXP


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula to lookup data and enter it in another WB joec Excel Worksheet Functions 0 April 26th 07 07:32 PM
Formula to lookup matching data Weasel Excel Discussion (Misc queries) 1 May 18th 06 09:12 PM
how do I lookup data based on two columns of data bttreadwell Excel Worksheet Functions 2 November 19th 05 03:54 AM
Lookup Formula - but have a formula if it can't find/match a value Stephen Excel Worksheet Functions 11 June 14th 05 05:32 AM
The match and lookup functions can find literal data but not the same data referenced from a cell Jeff Melvaine Excel Discussion (Misc queries) 3 April 30th 05 01:29 PM


All times are GMT +1. The time now is 05:01 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"