Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default lookup value between cells

I have a rather large spreadsheet (7500 rows) and need to be able to find the
value of one cell based on if another value is between the values in columns
B and C.
For example, if the value I need to reference is 59216, I want to have the
formula return the value in column E when column B is 59200 and column C is
59300. Is there a way to do this with LOOKUP or some function?

As always, thanks to the contirbutors who make my life much simpler with
their expertise!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default lookup value between cells

I don't understand the question. How do 59200 & 59300 relate to your lookup
value of 59216?

Dave
--
A hint to posters: Specific, detailed questions are more likely to be
answered than questions that provide no detail about your problem.


"cursednomore" wrote:

I have a rather large spreadsheet (7500 rows) and need to be able to find the
value of one cell based on if another value is between the values in columns
B and C.
For example, if the value I need to reference is 59216, I want to have the
formula return the value in column E when column B is 59200 and column C is
59300. Is there a way to do this with LOOKUP or some function?

As always, thanks to the contirbutors who make my life much simpler with
their expertise!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 430
Default lookup value between cells

Where does the 59216 come from? I am going to assume that it is another
cell, in this case D1

=IF(AND(D1B1,D1<C1),E1,"No Match")

"cursednomore" wrote:

I have a rather large spreadsheet (7500 rows) and need to be able to find the
value of one cell based on if another value is between the values in columns
B and C.
For example, if the value I need to reference is 59216, I want to have the
formula return the value in column E when column B is 59200 and column C is
59300. Is there a way to do this with LOOKUP or some function?

As always, thanks to the contirbutors who make my life much simpler with
their expertise!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default lookup value between cells

The 59216 would be entered on a different spreadsheet. If we were doing the
lookup manually, we would be scanning down the 7500 rows until we got to the
closest number less that 59216, which would be 59200. The 59300 is the top of
the range that the value in column E would be valid for. So what I am trying
to find is if X is between the values in B1 and C1, then E1 would be returned
from the formula. I hope that this clarifies my question.

"tim m" wrote:

Where does the 59216 come from? I am going to assume that it is another
cell, in this case D1

=IF(AND(D1B1,D1<C1),E1,"No Match")

"cursednomore" wrote:

I have a rather large spreadsheet (7500 rows) and need to be able to find the
value of one cell based on if another value is between the values in columns
B and C.
For example, if the value I need to reference is 59216, I want to have the
formula return the value in column E when column B is 59200 and column C is
59300. Is there a way to do this with LOOKUP or some function?

As always, thanks to the contirbutors who make my life much simpler with
their expertise!

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default lookup value between cells

I would suggest VLOOKUP but I donot know what is the behavior of
column B (which is what matters for this solution). So, the more
powerful solution, with array formula,

=INDEX(E2:E100,MATCH(1,(B2:B100=59216)*(C2:C100<= 59216),0))

Commit with Shift+Ctrl+Enter. Replace 59216 with cell reference. Add $
$ to suit.

HTH
Kostis Vezerides

On Feb 23, 8:49 pm, cursednomore
wrote:
The 59216 would be entered on a different spreadsheet. If we were doing the
lookup manually, we would be scanning down the 7500 rows until we got to the
closest number less that 59216, which would be 59200. The 59300 is the top of
the range that the value in column E would be valid for. So what I am trying
to find is if X is between the values in B1 and C1, then E1 would be returned
from the formula. I hope that this clarifies my question.

"tim m" wrote:
Where does the 59216 come from? I am going to assume that it is another
cell, in this case D1


=IF(AND(D1B1,D1<C1),E1,"No Match")


"cursednomore" wrote:


I have a rather large spreadsheet (7500 rows) and need to be able to find the
value of one cell based on if another value is between the values in columns
B and C.
For example, if the value I need to reference is 59216, I want to have the
formula return the value in column E when column B is 59200 and column C is
59300. Is there a way to do this with LOOKUP or some function?


As always, thanks to the contirbutors who make my life much simpler with
their expertise!





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default lookup value between cells

Thanks! That looks like it is going to do the trick!!

"vezerid" wrote:

I would suggest VLOOKUP but I donot know what is the behavior of
column B (which is what matters for this solution). So, the more
powerful solution, with array formula,

=INDEX(E2:E100,MATCH(1,(B2:B100=59216)*(C2:C100<= 59216),0))

Commit with Shift+Ctrl+Enter. Replace 59216 with cell reference. Add $
$ to suit.

HTH
Kostis Vezerides

On Feb 23, 8:49 pm, cursednomore
wrote:
The 59216 would be entered on a different spreadsheet. If we were doing the
lookup manually, we would be scanning down the 7500 rows until we got to the
closest number less that 59216, which would be 59200. The 59300 is the top of
the range that the value in column E would be valid for. So what I am trying
to find is if X is between the values in B1 and C1, then E1 would be returned
from the formula. I hope that this clarifies my question.

"tim m" wrote:
Where does the 59216 come from? I am going to assume that it is another
cell, in this case D1


=IF(AND(D1B1,D1<C1),E1,"No Match")


"cursednomore" wrote:


I have a rather large spreadsheet (7500 rows) and need to be able to find the
value of one cell based on if another value is between the values in columns
B and C.
For example, if the value I need to reference is 59216, I want to have the
formula return the value in column E when column B is 59200 and column C is
59300. Is there a way to do this with LOOKUP or some function?


As always, thanks to the contirbutors who make my life much simpler with
their expertise!




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
lookup from multipe cells cmccurdy23 Excel Discussion (Misc queries) 1 February 1st 07 09:06 PM
lookup returning several cells Andre Excel Discussion (Misc queries) 4 July 13th 06 10:56 PM
lookup a value and return cells Dwarf Excel Worksheet Functions 3 February 26th 06 02:31 AM
Lookup without empty cells. comotoman Excel Discussion (Misc queries) 3 October 4th 05 04:16 PM
lookup tables in cells Excel Worksheet Functions 5 February 28th 05 09:47 AM


All times are GMT +1. The time now is 04:49 PM.

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

About Us

"It's about Microsoft Excel"