Lookup 2 columns to the right

valmir

Board Regular
Joined
Feb 10, 2021
Messages
235
Office Version
  1. 365
Platform
  1. Windows
Hello Everyone. I came up with this formula but I have a little dilemma here. Because sometimes I need to swap every three columns, I need a formula that will always point me to the data on the second column to the right of the reference column. My formulas in O5:O10 will no longer work in case I move columns B, C and D (I always move all 3 columns at once)

Book1
ABCDEFGHIJKLMNO
11234
2
3
4
5MichaelFQF
6JohnOT0
7Claire0
8AngelHUH
9Bjorg0
10SmithP0
Sheet1
Cell Formulas
RangeFormula
O5:O10O5=LOOKUP(1,$B$1:$M$1,D5)
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
This is the solution that was provided to me. I hope that it helps someone else looking for the same thing. In this case, for the first cell, it should be:
=INDEX(Sheet1!$B$1:$O$10;MATCH($A5;Sheet1!$A$5:$B$10;0);MATCH(B$1;Sheet1!$B$1:$O$1;0)+2)
 
Upvote 0
Solution

Forum statistics

Threads
1,214,920
Messages
6,122,262
Members
449,075
Latest member
staticfluids

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