+ Reply to Thread
Results 1 to 6 of 6

Missing a zero

  1. #1
    Forum Contributor
    Join Date
    08-07-2013
    Location
    mo
    MS-Off Ver
    Excel 2010
    Posts
    453

    Missing a zero

    I have this formula in cell D15

    ="A1D" & C21

    In C21 there will be a number from 1 to 21. I have the cell formated so it shows two digits. So if the number is 6 it will show as 06.

    I need it to show the same way in D15. So if the number is 6, it shows a value as A1D06. It works fine if the number is 10-21.


    Thanks for help.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,316

    Re: Missing a zero

    Try this.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Missing a zero

    Try

    ="A1D" & TEXT(C21,"00")

  4. #4
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,653

    Re: Missing a zero

    ="A1D" & text(C21, "00")
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Forum Contributor
    Join Date
    08-07-2013
    Location
    mo
    MS-Off Ver
    Excel 2010
    Posts
    453

    Re: Missing a zero

    Awesome. Thanks

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Missing a zero

    You're welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Compare two columns on separate sheet, if missing, insert missing data
    By lilvictorians in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-03-2019, 11:44 PM
  2. Data missing in WorkBooka after VBA Macro SAVE AS due to ComboBox source is missing
    By Purovagos in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-23-2014, 09:38 PM
  3. Excel Macro to find missing dates and insert missing date as blank row
    By JevaMarie in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-26-2013, 11:08 AM
  4. Toolbars Missing, And option to Add Missing
    By SmeetaG in forum Excel General
    Replies: 3
    Last Post: 10-19-2005, 07:05 AM
  5. Replies: 2
    Last Post: 08-01-2005, 09:39 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1