• Concatenate

    Author
    Topic
    #466127

    Office 2000
    I need to add zeros to create a five digit code (ex. 000234, instead of 234). I created a column that contains 000 formatted as text. My formula is =CONCATENATE(g9,f9). When I tab out of the cell the result is =CONCATENATE(g9,f9) not 000234.
    Thanks in advance!

    Skip

    Viewing 3 reply threads
    Author
    Replies
    • #1206646

      Check the format of your destination cell, it seems to be text, so what you type is exactly reproduced as is. Format your cell as general, it should return the right code. BTW, as simpler formula is =RIGHT(“00000” & F9, 5) which can deal with codes in column F of 1 to 5 digits and return a string of 5 characters padded on the left with 0’s.

    • #1206647

      Thanks so much. Your suggestion will save me time as well.

      Skip

    • #1206674

      Why not just use the Text Function

      =TEXT(Cell,”Format”)

      For Example if A1 contain 123 then =TEXT(A1,”00000″) produces 00123

      If you want 6 digits use “000000”

      • #1206677

        Why not just use the Text Function

        =TEXT(Cell,”Format”)

        For Example if A1 contain 123 then =TEXT(A1,”00000″) produces 00123

        If you want 6 digits use “000000”

        Yes that would work as well. I still needed to add a three digit alpha code to the front as well (ex. abc00123). I might not have explained that fully.

        Thanks,

        Skip

    • #1206687

      =”abc”&TEXT(A1,”00000″)

      Steve

    Viewing 3 reply threads
    Reply To: Concatenate

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: