+ Reply to Thread
Results 1 to 2 of 2

Displaying a number with different decimals depending on a condition

  1. #1
    Registered User
    Join Date
    01-12-2006
    Posts
    13

    Question Displaying a number with different decimals depending on a condition

    Hi all,

    Anyone knows of a formula or combination of formulas to display a number with different decimals depending on a condition?

    for example;
    If condition A is met, display number with no decimals
    if condition B is met, display number with 2 decimals
    and
    if condition c is met, display number with 4 decimals

    help will be greatly appreciated

    Thanks ----
    Juan Garces

  2. #2
    Sloth
    Guest

    RE: Displaying a number with different decimals depending on a conditi

    you can do this with a custom number format. Here is a sample format. It is
    somewhat limited (I don't think you can have more than three options).

    [<=100]0.0000;[<=200]0.00;0

    "JGarces" wrote:

    >
    > Hi all,
    >
    > Anyone knows of a formula or combination of formulas to display a
    > number with different decimals depending on a condition?
    >
    > for example;
    > If condition A is met, display number with no decimals
    > if condition B is met, display number with 2 decimals
    > and
    > if condition c is met, display number with 4 decimals
    >
    > help will be greatly appreciated
    >
    > Thanks ----
    > Juan Garces
    >
    >
    > --
    > JGarces
    > ------------------------------------------------------------------------
    > JGarces's Profile: http://www.excelforum.com/member.php...o&userid=30406
    > View this thread: http://www.excelforum.com/showthread...hreadid=572268
    >
    >


+ 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