concatenate only non zero values

NapervilleMike

New Member
Joined
Aug 1, 2012
Messages
19
So here is what I have:

Substancequantity
Water98
Sodium.5
Potassium1
Calcium.5
Magnesium0

<tbody>
</tbody>

What I need is a formula that will concatenate only the non-zero's and the substance associated with them. For example this out put should say: Water, 98; Sodium .5; Potassium, 1; Calcium .5

If this seems pointless, the reason I need a methodology because I actually have about 50 substances and there are about 30 "quantity" columns and I would like a nice way to automate this and apply it to other similar applications.

Thanks.
 
Sir, You are a GENIUS .... Thanks a lot !!! It works !!!
Sir, One more thing, how to copy data in the multiple cells in a row to multiple cells in a column (like vallues from E10:H10 to D20:D23 ie., from cells on the rows to cells on the column)
Regards,
shashi
 
Upvote 0

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Sir, One more thing, how to copy data in the multiple cells in a row to multiple cells in a column (like vallues from E10:H10 to D20:D23 ie., from cells on the rows to cells on the column)
You can do that manually quite easily. Select the cells you want to transpose and press CTRL+C to copy them to the clipboard, then select the starting cell for the new location and right-click it, select PasteSpecial from the popup menu that appears and then select Transpose on the dialog box that appears... finish by clicking the OK button.
 
Upvote 0
Sir, I've changed/added some details in my excel file and emailed the same to your email address. Please suggest any easy method.
Shashi
 
Upvote 0

Forum statistics

Threads
1,216,095
Messages
6,128,794
Members
449,468
Latest member
AGreen17

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