+ Reply to Thread
Results 1 to 6 of 6

Toggle Button

  1. #1
    Registered User
    Join Date
    06-09-2005
    Location
    Queensland, Australia
    Posts
    47

    Toggle Button

    Hi,
    I am constructing a spreadsheet, which has several ToggleButtons.

    Everything is working fine, except for the one toggle button, which has its TripleState, set to be TRUE.

    The offending formula (of which, the final argument is troublesome), appears below.

    IF(A1=TRUE,"The Maximum Amount",IF(A1=FALSE,"The Median Amount",IF(A1=#N/A,"The Minimum Amount")))

    Where am I going wrong?
    Regards,
    Mick2

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996
    I'm not quite sure what would make A1 equate to #NA, but try this:
    =IF(A1=TRUE,"The Maximum Amount",IF(A1=FALSE,"The Median Amount",IF(ISNA(A1),"The Minimum Amount")))

    OR

    =IF(A1=TRUE,"The Maximum Amount",IF(A1=FALSE,"The Median Amount",IF(ISERROR(A1),"The Minimum Amount")))

    Does that help?
    Ron

  3. #3
    Registered User
    Join Date
    06-09-2005
    Location
    Queensland, Australia
    Posts
    47
    Thanks Ron,
    I tried both suggestions, but the problem is stil there.
    Mick2

  4. #4
    Biff
    Guest

    Re: Toggle Button

    Hi!

    Do the test for #N/A first:

    =IF(ISNA(A1),"The Minimum Amount",IF(A1=TRUE,"The Maximum
    Amount",IF(A1=FALSE,"The Median Amount")))

    Biff

    "mick2" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Thanks Ron,
    > I tried both suggestions, but the problem is stil there.
    > Mick2
    >
    >
    > --
    > mick2
    > ------------------------------------------------------------------------
    > mick2's Profile:
    > http://www.excelforum.com/member.php...o&userid=24143
    > View this thread: http://www.excelforum.com/showthread...hreadid=488434
    >




  5. #5
    Registered User
    Join Date
    06-09-2005
    Location
    Queensland, Australia
    Posts
    47
    "Spot-On!"
    It works like a charm.
    Thanks, Biff.
    Regards,
    Mick2

  6. #6
    Biff
    Guest

    Re: Toggle Button

    You're welcome.

    After "looking" at this once more, the formula can be further reduced to:

    =IF(ISNA(A1),"The Minimum Amount",IF(A1=TRUE,"The Maximum Amount","The
    Median Amount"))

    Biff

    "mick2" <[email protected]> wrote in
    message news:[email protected]...
    >
    > "Spot-On!"
    > It works like a charm.
    > Thanks, Biff.
    > Regards,
    > Mick2
    >
    >
    > --
    > mick2
    > ------------------------------------------------------------------------
    > mick2's Profile:
    > http://www.excelforum.com/member.php...o&userid=24143
    > View this thread: http://www.excelforum.com/showthread...hreadid=488434
    >




+ 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