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

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
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,223,895
Messages
6,175,257
Members
452,625
Latest member
saadat28

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