Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Concatenating 0s in excel

I have these data:

enter image description here

Data format:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

V1  V2  V3      RESULT  EXPECTED RESULT
0   0           000     00
0   0   1       00      00
0   0   0       000     000
0               000     0
0   1           00      0
0   1           00      0

In the Result cells, I have the following formula:

=TEXTJOIN("",FALSE,IF(A2:C2=0,A2:C2,""))

I tried to write the same formula with concatenate and text function too but couldn’t get the result I wanted. How can I get the expected results? Can I get some help, please? Thanks.

>Solution :

One option using REPT together with COUNTIF:

=REPT(0,COUNTIF(A2:C2,0))

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading