![]() |
How do I get zeros to stay in front of a # when using the concate.
Hello all!
I'm trying to concatenate an invoice # with another field, and the problem I'm having is that Excel drops the 0's in front of numbers. I can get them to re-appear using custom formating, but when I use the concatenate or lookup functions, the 0's aren't really there so my opperation fails!?! HELP ME!!! Thanks in advance for your thoughts. Monk |
"czarkzm" wrote in message ... Hello all! I'm trying to concatenate an invoice # with another field, and the problem I'm having is that Excel drops the 0's in front of numbers. I can get them to re-appear using custom formating, but when I use the concatenate or lookup functions, the 0's aren't really there so my opperation fails!?! HELP ME!!! Thanks in advance for your thoughts. Monk Let the first character be an apostrophe like this: '007 /Fredrik |
See:
http://j-walk.com/ss/excel/usertips/tip037.htm Try using a format of =TEXT(A1,"00000000"). HTH Jason Atlanta, GA -----Original Message----- Hello all! I'm trying to concatenate an invoice # with another field, and the problem I'm having is that Excel drops the 0's in front of numbers. I can get them to re-appear using custom formating, but when I use the concatenate or lookup functions, the 0's aren't really there so my opperation fails!?! HELP ME!!! Thanks in advance for your thoughts. Monk . |
You can use the text function
=TEXT(A1,"000")&B1 change the number of zeros to what you need or if you always want to pad with one leading zero =TEXT(A1,REPT("0",LEN(A1)+1))&B1 -- Regards, Peo Sjoblom "czarkzm" wrote in message ... Hello all! I'm trying to concatenate an invoice # with another field, and the problem I'm having is that Excel drops the 0's in front of numbers. I can get them to re-appear using custom formating, but when I use the concatenate or lookup functions, the 0's aren't really there so my opperation fails!?! HELP ME!!! Thanks in advance for your thoughts. Monk |
Thanks! That's exactly what I was looking for.
Monk PS. Great site! Definitely going to bookmark that one! "Jason Morin" wrote: See: http://j-walk.com/ss/excel/usertips/tip037.htm Try using a format of =TEXT(A1,"00000000"). HTH Jason Atlanta, GA -----Original Message----- Hello all! I'm trying to concatenate an invoice # with another field, and the problem I'm having is that Excel drops the 0's in front of numbers. I can get them to re-appear using custom formating, but when I use the concatenate or lookup functions, the 0's aren't really there so my opperation fails!?! HELP ME!!! Thanks in advance for your thoughts. Monk . |
Thanks Fredrik, but I have 30,000+ lines - looking for a formula since I'm
lazy! ;) "Fredrik Wahlgren" wrote: "czarkzm" wrote in message ... Hello all! I'm trying to concatenate an invoice # with another field, and the problem I'm having is that Excel drops the 0's in front of numbers. I can get them to re-appear using custom formating, but when I use the concatenate or lookup functions, the 0's aren't really there so my opperation fails!?! HELP ME!!! Thanks in advance for your thoughts. Monk Let the first character be an apostrophe like this: '007 /Fredrik |
All times are GMT +1. The time now is 02:09 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com