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!
 

Some videos you may like

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

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.
 

Watch MrExcel Video

Forum statistics

Threads
1,123,078
Messages
5,599,632
Members
414,326
Latest member
kfg1287

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