Input the correct data when match

Goddess

Board Regular
Joined
Dec 3, 2015
Messages
110
Office Version
  1. 2021
Platform
  1. Windows
Hi,

I need the row in yellow to be auto populated, whenever the data changes in cells I1:N2. Can't figure out the formula when it's neither car or bus (need to categorise all those under "others")

Book1
ABCDEFGHIJKLMN
1BlueBlue lightBlue DarkGreenGreen lightGreen DarkBlueBlue lightBlueGreenGreen DarkGreen Light
2Others12008507VanBusCarCarBikeBus
3Car13001409122131478
4Bus025089
Sheet1


Thanks!
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
a few ways to do this

=IFERROR(INDEX($B$2:$G$4,MATCH(I2,$A$2:$A$4,0),MATCH(I1,$B$1:$G$1,0)),INDEX($B$2:$G$4,MATCH("others",$A$2:$A$4,0),MATCH(I1,$B$1:$G$1,0)))

Book3
ABCDEFGHIJKLMN
1BlueBlue lightBlue DarkGreenGreen lightGreen DarkBlueBlue lightBlueGreenGreen DarkGreen Light
2Others12008507VanBusCarCarBikeBus
3Car13001409122131478
4Bus025089
Sheet1
Cell Formulas
RangeFormula
I3:N3I3=IFERROR(INDEX($B$2:$G$4,MATCH(I2,$A$2:$A$4,0),MATCH(I1,$B$1:$G$1,0)),INDEX($B$2:$G$4,MATCH("others",$A$2:$A$4,0),MATCH(I1,$B$1:$G$1,0)))
 
Upvote 0
Solution
Another ...

ABCDEFGHIJKLMN
1BlueBlue lightBlue DarkGreenGreen lightGreen DarkBlueBlue lightBlueGreenGreen DarkGreen Light
2Others12008507VanBusCarCarBikeBus
3Car13001409122131478
4Bus025089
Sheet1
Cell Formulas
RangeFormula
I3:N3I3=XLOOKUP(I1,$B1:$G1,XLOOKUP(I2,$A2:$A4,$B2:$G4,$B2:$G2))
 
Upvote 0
Hi.. Thanks both for the quick response!

Stephen, just out of curiosity, will Xlookup work if I send this template to users who do not use office 2021? Basically what I'm trying to do is to create a master template, where my team mates will use for various projects. They will sometimes make adjustments to the template, depending on the requirements of each projects that they are working on.
 
Upvote 0
No, from the reference site i use , it was introduce to office 2021 , and also will be in 365 subscription version

 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,633
Latest member
DougMo

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