Using INDEX rather than OFFSET to return value relative to LOOKUP result

Yamezz

Active Member
Joined
Nov 22, 2006
Messages
351
Office Version
  1. 2019
I have the following formula to get the latest value in column I when column G = the value in F27 and column H = the value in P2
Excel Formula:
=LOOKUP(2,1/((Analysis!$G:$G=$F27)*(Analysis!$H:$H=$P$2)),Analysis!$I:$I)
I now need to get the value in the cell two columns to the right of this value. I've read that using INDEX rather than OFFSET will prevent the huge slowdown in Excel with the volatile nature of OFFSET, but I'm at a loss to work out how to achieve the result I'm after. Any suggestions?
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
If you mean you want the value from col K you can use
Excel Formula:
=LOOKUP(2,1/((Analysis!$G:$G=$F27)*(Analysis!$H:$H=$P$2)),Analysis!$K:$K)
although it's best to avoid using whole column references, as it can slow the workbook down.
 
Upvote 0
Solution
Thanks Fluff. That's what happens when I find bits of code on the internet and deploy it without actually understanding what it's doing. Your solution is immediately obvious in hindsight, but I needed you to point it out!
I'll take your advice with the whole column references too. Cheers.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,216,182
Messages
6,129,364
Members
449,506
Latest member
nomvula

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