Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
lookup from multipe cells | Excel Discussion (Misc queries) | |||
lookup returning several cells | Excel Discussion (Misc queries) | |||
lookup a value and return cells | Excel Worksheet Functions | |||
Lookup without empty cells. | Excel Discussion (Misc queries) | |||
lookup tables in cells | Excel Worksheet Functions |