Lookup Brainteaser....

ExcelQA

New Member
Joined
Sep 21, 2023
Messages
9
Office Version
  1. 365
Platform
  1. Windows
I have a workbook where on TAB 1 there is ONE column with 50 rows, the first 5 characters of each Row I would like to search on another worksheet Tab 2 where I have ONE Row with 50 columns.
There are long names (More than 5 characters) on both rows (Tab2) and columns(Tab1) but I am only interested on the first 5 characters.

How could I perform a Lookup based on Tab 1 Left 5 on tab 2? HOW could i make it dynamic so that the lookup on Tab 2 only considers the first 5 characters?
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Sample strucrure
 

Attachments

  • Annotation 2023-09-21 175619.jpg
    Annotation 2023-09-21 175619.jpg
    67.7 KB · Views: 6
Upvote 0
Perhaps this:

Book1
ABCDEFGH
2TAB1
3
412345 Candy10Lookup the first 5(Left 5) on ROW 15 return row 20
523456 Candy15
698345 Candy20
742345 Candy30
854321 Candy24
9
10
11
12
13TAB2
14
1512345 Sidec98345 Speed42345 Drive23456 Kool54321 Flush
16
17
18
19Value1020301524
20
21
22
Sheet3
Cell Formulas
RangeFormula
D4:D8D4=XLOOKUP(LEFT(B4,5),LEFT($B$15:$F$15,5),$B$19:$F$19,,0,)
 
Upvote 0
Solution
Perhaps this:

Book1
ABCDEFGH
2TAB1
3
412345 Candy10Lookup the first 5(Left 5) on ROW 15 return row 20
523456 Candy15
698345 Candy20
742345 Candy30
854321 Candy24
9
10
11
12
13TAB2
14
1512345 Sidec98345 Speed42345 Drive23456 Kool54321 Flush
16
17
18
19Value1020301524
20
21
22
Sheet3
Cell Formulas
RangeFormula
D4:D8D4=XLOOKUP(LEFT(B4,5),LEFT($B$15:$F$15,5),$B$19:$F$19,,0,)
That does it! thank you I don't know why I struggled with it..
 
Upvote 0
That does it! thank you I don't know why I struggled with it..
You're welcome, it happens to the best of us. Just the other day I struggled to comprehend a minimum rate and I work in accounting. Lots of facepalming ensued.
 
Upvote 0
How did you then resolve this situation?
I asked someone else for help and as I was trying to agree/rebut their answer, it dawned on me that they were right and I was being a huge dummy.
 
Upvote 0

Forum statistics

Threads
1,215,097
Messages
6,123,076
Members
449,094
Latest member
mystic19

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