Toggle Button

M

mick2

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
 
R

Ron Coderre

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
 
B

Biff

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
 
B

Biff

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
 
Top