Cell to return corresponding text

Goddess

Board Regular
Joined
Dec 3, 2015
Messages
114
Office Version
  1. 2021
Platform
  1. Windows
Hi, I have a table, where I need the cell to return the corresponding text based on the text I entered in another cell. However, the reference cell, in this example "car"& "van" are grouped as "others" in the data table.

I basically need the data in the yellow cells, B2:D3 to auto populate when I enter the data in cell B1:D1. Bus will have it's own unique colour code, whereas the rest of the vehicles will be grouped as "others" as they have the same colour code. Possible to do it?

Book1
ABCDEFGHIJK
1carvanbusOthersBus
2BlueBlueBlue-lightBlueBlue-light
3GreenGreenGreen-darkGreenGreen-dark
4
Sheet1
Cell Formulas
RangeFormula
B2:B3B2=I2
C2:D3C2=I2


Thanks!
Irene
 

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.

Forum statistics

Threads
1,225,739
Messages
6,186,743
Members
453,370
Latest member
juliewar

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