Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Concatenate formula

Status
Not open for further replies.

pgh2377

Vendor
Jul 30, 2003
61
US
I work with ndc's every day, they are an 11 digit id number for drugs. Usually they appear like this from my system: 06598456812. I had a concatenate formula that transferefd them into this format 06598-4568-12 but I lost it. Any help?
 
no need - just set up a custom format of:
00000-0000-00

Rgds, Geoff

Never test the depth of water with both feet

Help us to help you by reading FAQ222-2244 before you ask a question
 
xlbo is correct, and just for education:

=LEFT(A1,5)&"-"&MID(A1,6,4)&"-"&RIGHT(A1,2)



[Blue]Blue[/Blue] [Dragon]

If I wasn't Blue, I would just be a Dragon...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top