![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Join Date: May 2002
Location: Salisbury N.C.
Posts: 158
|
I have a formula but it is grabbing the last 1 instead of the first
HERE IS FORMULA =lookup(1,E6:E203,C6:C203) example: in my cells I have 1<---------NEED TO GRAB THIS ONE 1 1 1<---------GRABBING THIS ONE 2<---------NEED TO GRAB THIS ONE 2 2 2 3 3 4 I need a formula to grab the first number in that column. |
|
|
|
|
|
#2 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
MrExcel MVP
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,449
|
I don't know what the values are in range C6:C203, but I believe, it is the setup of values in that range that is forcing the specific selection. See the worksheet simulation
Click on a hyperlinked cell to see the underlying formula what the worksheet shows is that if I my LOOKUP value is 1 from range E6:E203, I travel down from E6 till I find a value no more than 1, and then I lookup in the corresponding row in column C, so in this case I picked up 1.4 I had to make these values different from 1 to make the point Hope This Helps Regards! _________________ Yogi Anand Edit: Deleted inactive website from hardcoded signature [ This Message was edited by: Yogi Anand on 2003-01-19 12:57 ] |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
#3 | |
|
Join Date: Feb 2002
Posts: 1,802
|
Quote:
=INDEX(C6:C203,MATCH(1,E6:E203,0)) hope that helps, giacomo |
|
|
|
|
|
|
#4 |
|
Join Date: May 2002
Location: Salisbury N.C.
Posts: 158
|
The =index worked like a charm thanks a million.........
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|