Lookup 2 columns to the right

valmir

Board Regular
Joined
Feb 10, 2021
Messages
239
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

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
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,215,430
Messages
6,124,851
Members
449,194
Latest member
HellScout

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