Formula Help - pulling text from cell A to B if cell C contains specific text

ia1n

New Member
Joined
Jan 18, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi all, hope all is bright and sunny out there,

Image is an example.

My top row lists product codes.
Each of the following rows contain cells underneath these names which indicates if that product is being used and a date.
I've been able to pull the date from the cell in each row into a separate column (there's probably a way to combine this).
I'd like column 'I' to show the product code from the top row if there is an entry in that column. So 'I2' would show 'D', 'I3' would show 'C', etc etc...

I hope that makes sense! Thanks in advance.

Iain
 

Attachments

  • excel.png
    excel.png
    9.5 KB · Views: 8

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Welcome to the Board!

Put this formula in cell I2 and copy down for all rows:
Excel Formula:
=INDEX($B$1:$F$1,MATCH(G2,B2:F2,0))
 
Upvote 0
Solution
Welcome to the Board!

Put this formula in cell I2 and copy down for all rows:
Excel Formula:
=INDEX($B$1:$F$1,MATCH(G2,B2:F2,0))
Thank you! This is a very useful function. :)

May your next fortune cookie explode with confetti and dollar bills.

Iain
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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