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

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

W8253

Board Regular
Joined
Oct 7, 2015
Messages
64
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)))))))
 

shap

Board Regular
Joined
Jan 21, 2013
Messages
58
Thank you! Added to our file with a lot more IF's and worked great.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,553
Messages
5,832,436
Members
430,133
Latest member
gerasimos

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
Top