A zero appearing after joining two strings

G

gmangad

I am attaching a file.
I have 3 sheet.

The first sheet called "DATA" is to enter data- it is ok.

In the second sheet called "SORT", it removes the name starting with
'MULLA" or "SHEIKH" and replace the name and I will be sorting the name
without 'MULLA' OR 'SHEIKH'

In the Third sheet called "PRINTOUT" it joins the name with 'MULLA' and
'SHEIKH' .
Everything is working ok till here.
the problem is - in my 'PRINTOUT' sheet, a zero is appearing where
there is no corresponding data. How can I remove the zero?

Attachment filename: telephone.xls
Download attachment: http://www.excelforum.com/attachment.php?postid=396418
 
B

Bob Phillips

Change the formula in PRINTOUT to
=IF(SORT!A5&SORT!B5="0","",SORT!A5&SORT!B5)

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top