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

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
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,213,520
Messages
6,114,101
Members
448,548
Latest member
harryls

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