Link to home
Create AccountLog in
Avatar of jajen
jajenFlag for United States of America

asked on

Excel 2010 Formula

I need to take a column in Excel that has been formatted to have leading zeros and put "" around this number with a comma in between each number so I can copy these numbers into a Crystal report selection criteria.  I can do each of the tasks separately but if I add the " it removes the leading zero or I can add the , to get a row of these numbers but just can't find the way to successfully do all three things.  Can someone please help me with how to successfully do this.
ASKER CERTIFIED SOLUTION
Avatar of Subodh Tiwari (Neeraj)
Subodh Tiwari (Neeraj)
Flag of India image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Rgonzo1971
Rgonzo1971

Hi,

pls try
if you r number is in A1 and should have 5 numbers

=CHAR(34)&TEXT(A1,"00000")&CHAR(34)

Open in new window

Regards
Avatar of jajen

ASKER

I have actually found the problem with why I was loosing leading zeros and have been able to get this to work.  I want to thank you for the reply.  I have had this problem since yesterday - but it never fails when you finally give up and ask for help it seems to just work!
@jajen
Glad your issue has been resolved. :)