+ Reply to Thread
Results 1 to 5 of 5

Formula not showing correct format

  1. #1
    Registered User
    Join Date
    06-01-2004
    Posts
    36

    Formula not showing correct format

    Hey folks,

    In my attached file, cell P13 has an IF formula that is returning a value from W12. I want the cell to show in Percent format but when I change it to Percentage the cell stays in number format. Any help would be great.

    Thanks,

    Chris
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,585

    Re: Formula not showing correct format

    It's a Text value in the cell. Change the formula to:

    =--IF(J13="","",IF(J13<=G13,$W$12,"")&IF(T13=4,$X$12,"")&IF(T13=3,$Y$12,"")&IF(T13=2,$Z$12,"")&IF(T13=1,$AA$12,"")& IF(T13=0,$AB$12,"")&IF(U13=4,$AC$12,"")&IF(U13=3,$AD$12,"")&IF(U13=2,$AE$12,"")&IF(U13=1,$AF$12,""))

    Note the two minus signs after the equals sign.

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    06-01-2004
    Posts
    36

    Re: Formula not showing correct format

    Works like a champ. Thank you for the quick response.

    Chris

  4. #4
    Registered User
    Join Date
    06-01-2004
    Posts
    36

    Re: Formula not showing correct format

    Hey TMShucks,

    If I take out the valve in J13 and use the formula you gave me, it ends up with an #VALVE error. Any idea how I can get around that?

    Thanks,

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Formula not showing correct format

    I'm not sure what you're trying to do with that formula but you are building a text string with it.

    Are you attempting something like this?

    Please Login or Register  to view this content.
    I don't know if I got the references in the right order so you'll have to check out various scenarios.


    BTW - this formula yields 2.5% as is but displays 3% because you have it formatted as no decimals. When J13 is blanked P13 also blanks.
    Last edited by Cutter; 04-19-2011 at 09:51 PM. Reason: Added note re formatting

+ 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