Remove zeros from cell results

Tucker92

Board Regular
Joined
Jun 7, 2018
Messages
53
I am currently using a simple formula that looks like this

=A1&","&A2&","&A3 and so on until A30

My cells have vlookups in them and some of them come back as blank.

Because of my fomula i end up getting something like this

,,,,342,,,,,

Is there anyway i could skip the blank cells

Thank you in advance
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
No that hasnt hidden the commas from the blanks or if i change the vlookup to show 0's instead of blanks they are still there as well

It comes up as 0,0,0,0,342,0,0,0,0 or just ,,,342,,,,, if the cells are shown as blanks
 
Last edited:
Upvote 0
Hi, you can do this, add to formula until A30:


Book1
ABC
13,4,2
2
33
44
52
6
7
Sheet524
Cell Formulas
RangeFormula
C1=SUBSTITUTE(TRIM(A1&" "&A2&" "&A3&" "&A4&" "&A5&" "&A6&" "&A7)," ",",")
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,215
Members
448,554
Latest member
Gleisner2

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