Merging multiple rows with into one with name logic

shap

Board Regular
Joined
Jan 21, 2013
Messages
58
Hi,

I have 5 columns that have a company name in them, then the rows have '1' or blank if an order went to that company. I'm looking to simplify this by adding a row that says 'Vendor Name' then each row will display the name based on the other rows '1's or blanks.

Example:
HoybNrQ.png


What's the easiest way to do this?

Thanks!
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
In H3:

=IF(A3=1,$A$2,IF(B3=1,$B$2,IF(C3=1,$C$2,IF(D3=1,$D$2,IF(E3=1,$E$2,IF(F3=1,$F$2,IF(G3=1,$G$2)))))))
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,264
Members
449,075
Latest member
staticfluids

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