+ Reply to Thread
Results 1 to 3 of 3

Change Number Format Conditionally

  1. #1
    Registered User
    Join Date
    08-10-2006
    Location
    Los Angeles, California
    MS-Off Ver
    2013 64-bit
    Posts
    39

    Change Number Format Conditionally

    Hi,

    Is there a way to change the number format of a cell conditionally, without converting it to text?

    I'm using a number of nested "if" statements to get data from different tables. The data could be an integer, a percentage, or a time measurement, and I'd like the data to automatically display in the appropriate format when changes are made. I'm using Excel 2000.

    Thanks,
    Christiaan

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    You can display a number in a format based on a calculated condition using the TEXT function:

    =text(someFormula, if(a1 > 2, "0%", "#,##0") )

    ... but the results will indeed be text. With a little caution, though, such text-formatted numbers can still be used for downstream calculation.

  3. #3
    Registered User
    Join Date
    08-10-2006
    Location
    Los Angeles, California
    MS-Off Ver
    2013 64-bit
    Posts
    39
    Thanks for the help.

+ 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