Offset and Lookup to find value in column BEFORE last column used

alyssa75

Board Regular
Joined
May 14, 2007
Messages
240
I'm trying to convert this to give me the value in the cell 1 column to the left of this. I tried adding a simple =Offset(ref,0,1) with the ref being the formula below but it won't accept it.

=LOOKUP(9.99E+307,1/ISNUMBER(D5:BH5),D5:BH5)

Any help is greatly appreciated!

TIA!
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
are you just returning the value 1 column over?

=INDEX(D5:BH5,MATCH(9.99E+307,D5:BH5)+1)
 
Upvote 0
Thank you so much!! I used the index and match and just with the +1 to -1 to get the value in before instead of after.

Wondering if you might help me with one other thing. I want to pull the value from row 4 for whichever column is being referenced as a result of the above formula. Possible?

Thanks again!!
 
Upvote 0
I figured out a workaround - so I am set.

I used =CELL("address",IF(E5=0,D5,INDEX(D5:BH5,MATCH(9.99E+307,D5:BH5)-1))) to get the cell address for the value I pulled
Then =MID(BL5,2,1)&4 to create a cell to store the cell address for what I wanted
Then =INDIRECT(BM5) to actually pull what was in that row.
 
Upvote 0
you could do that or you could have just used the formula

=INDEX(D4:BH4,MATCH(9.99E+307,D5:BH5)-1)
 
Upvote 0
I'm trying to convert this to give me the value in the cell 1 column to the left of this. I tried adding a simple =Offset(ref,0,1) with the ref being the formula below but it won't accept it.

=LOOKUP(9.99E+307,1/ISNUMBER(D5:BH5),D5:BH5)

Any help is greatly appreciated!

TIA!

Suppose we have this in BD:BH5...

803025

<tbody>
</tbody>

What is the value you want to return?
 
Upvote 0

Forum statistics

Threads
1,215,506
Messages
6,125,193
Members
449,213
Latest member
Kirbito

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top