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

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
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...

[TABLE="class: grid, width: 320"]
<tbody>[TR]
[TD="align: right"]80[/TD]
[TD="align: right"]30[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]25[/TD]
[/TR]
</tbody>[/TABLE]

What is the value you want to return?
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,269
Members
452,628
Latest member
dd2

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