+ Reply to Thread
Results 1 to 3 of 3

How to use cell value after cell formating?

  1. #1
    Registered User
    Join Date
    05-12-2009
    Location
    Udevalla, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    85

    How to use cell value after cell formating?

    Hi.

    I have used Format Cells -> Number -> Category: Custom
    and inserted Type: 00

    This makes it so that:

    If "1" is entered into the cell, it will display "01"
    If "12" is entered into the cell, it will display "12"


    This is exactly what I want it to do but here is the thing:
    It displays "01" but the cell value is still just "1"
    I want to be able to use the cell value in another cell where I have typed in:


    Please Login or Register  to view this content.
    where E5 is the cell in question.

    The problem is that in this case I will get AP1, but I want it to be AP01


    Any ideas on how to solve this?

    Btw, just using "AP0" in the formula wont work because then I will get
    "AP012" for "12" and thats not right.


    Any help on this is greatly appreciated.
    Last edited by Carlsbergen; 09-02-2009 at 09:37 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: How to use cell value after cell formating?

    Try

    ="AP" &TEXT(E5,"00")
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    05-12-2009
    Location
    Udevalla, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    85

    Re: How to use cell value after cell formating?

    Quote Originally Posted by NBVC View Post
    Try

    ="AP" &TEXT(E5,"00")

    Works great!! Only had to replace the "," with a ";"

    Here is the code that worked for me:


    Please Login or Register  to view this content.

    Thanks alot!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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