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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top