ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   lookup value between cells (https://www.excelbanter.com/excel-worksheet-functions/132088-lookup-value-between-cells.html)

cursednomore

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!

Dave F

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!


tim m

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!


cursednomore

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!


vezerid

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!




cursednomore

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!






All times are GMT +1. The time now is 06:55 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com