hlookup and offset

dmj120

Active Member
Joined
Jan 5, 2010
Messages
310
Office Version
  1. 365
  2. 2019
  3. 2010
I'm trying to combine hlookup() and offset() to find the last value in a row, then go up 2 rows and left 1 cell. Each works independently, but when I try to combine them, errors occur.

=OFFSET(M3,-2,-1) --- "M3" is the below hlookup() reference
=HLOOKUP(9.99999999999999E+307,B3:Y3,1)

Is there a way to accomplish this?
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Something like this.

=HLOOKUP(9.99999999999999E+307,B3:Y3,OFFSET(M3,-2,-1))
 
Upvote 0
Trying something different (after watchin a MrExcel video about vlookup and offset), but now I get a value! error

=OFFSET(B4,0,HLOOKUP(9.99999999999999E+307,C4:Z4,1),-2,-1)
 
Upvote 0
Something like this,

Code:
=OFFSET(INDEX(B3:I3,1,MATCH(A4,B3:I3,0)),-2,-1)
 
Upvote 0
Thanks, but nothing seems to work.

=OFFSET(HLOOKUP(9.99999999999999E+307,B3:Y3,1),-2,-1) this is essentially what I'm after, but :banghead::banghead: .....is it scotch-thirty yet?
 
Upvote 0
Try:
Excel Workbook
ABCDEFGHIJKLMNOPY
11234567891011121314
213
314252525
Sheet
 
Upvote 0
I would avoid the volatile function OFFSET altogether.
It appears you are working with numerical information, at least in the row where you are looking for the last value, so this should return the required value.

Excel Workbook
ABCDEFGHIJKLMNOPQRSTUVWXY
1C1C2C3C4C5C6C7C8C9C10C11C12C13C14C15C16C17C18C19C20C21C22C23C24C25
2
314252525
4
5C13
Lookup
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

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