+ Reply to Thread
Results 1 to 5 of 5

formatting cells

  1. #1
    Registered User
    Join Date
    06-04-2008
    Posts
    7

    formatting cells

    Hi all.

    I'm currently trying to find a way of copying exact contents of cells after formatting them.

    eg.

    A cell contains "1890"
    I then right click and select 'format cell'
    Under 'Number' i go to custom and write the format ..: "00####"
    This makes the cell appear as "..: 001890"

    Now, is there anyway of copying the cell so that when i paste it, it appears as "..: 001890" in the bar above the worksheet where you can input the cell contents. Rather than appearing as "..: 001890" in the cell, but 1890 in that bar which is what happens when i copy and paste as normal. I have tried copy -> paste special -> values but it doesn't work.

    Any help would be much appreciated.

    Thanks.

  2. #2
    Registered User
    Join Date
    05-17-2008
    Posts
    51

    Thumbs up hi philibe !!!

    You can do it...in an indirect way...

    if the Cell "A1" contains that '1890' formatted with "00####", then if you want in "B1" the value...'001890'...here is the way....

    type the following formulae in B1...

    =TEXT(A1,"00####")

    then copy the cell "B1" and do paste special value....it will work...

    Hope this helps you....

    Regards,
    guru

  3. #3
    Registered User
    Join Date
    06-04-2008
    Posts
    7
    Thanks

    Is there anyway of doing it to include the "..:" prefix. I know it sounds really random, but it would help me loads.

    So if A1 is formatted "..: "##0000
    can you return a cell with the exact value?
    I tried adding it on using =TEXT(A1, "..: 00####")
    but it came up as #VALUE!

  4. #4
    Registered User
    Join Date
    05-17-2008
    Posts
    51

    hi philibe !!

    i hope you can do it with this formulae...

    ="..:"&TEXT(B1,"00#####")

    whatever u want to prefix, just add that within quotes and place it with an operand (&) in front of the formulae.....

    if you do paste special value...it will work now...

    Regards,
    guru

  5. #5
    Registered User
    Join Date
    06-04-2008
    Posts
    7
    Thanks so much!!

+ 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. Conditional Formatting multiple cells
    By mwagon73 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-25-2008, 03:00 PM
  2. Formatting cells to remove spaces
    By adamwelch in forum Excel General
    Replies: 3
    Last Post: 08-09-2007, 07:46 AM
  3. Conditional Formatting for Blank Cells
    By modest_16081982 in forum Excel General
    Replies: 3
    Last Post: 07-30-2007, 03:44 PM
  4. Conditional formatting for the greater of 7 cells
    By guest123 in forum Excel General
    Replies: 8
    Last Post: 01-15-2007, 01:39 PM
  5. searching merged cells
    By chris_mayer in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-30-2006, 11:14 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