#1   Report Post  
Posted to microsoft.public.excel.misc
mick2
 
Posts: n/a
Default 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


--
mick2
------------------------------------------------------------------------
mick2's Profile: http://www.excelforum.com/member.php...o&userid=24143
View this thread: http://www.excelforum.com/showthread...hreadid=488434

  #2   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre
 
Posts: n/a
Default Toggle Button


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


--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile: http://www.excelforum.com/member.php...o&userid=21419
View this thread: http://www.excelforum.com/showthread...hreadid=488434

  #3   Report Post  
Posted to microsoft.public.excel.misc
mick2
 
Posts: n/a
Default Toggle Button


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

  #4   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default 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" wrote in
message ...

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   Report Post  
Posted to microsoft.public.excel.misc
mick2
 
Posts: n/a
Default Toggle Button


"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



  #6   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default 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" wrote in
message ...

"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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
toggle button text color John Davies Excel Discussion (Misc queries) 5 December 12th 05 06:43 PM
Toggle button keithl816 Excel Discussion (Misc queries) 2 November 21st 05 09:16 PM
Toggle Button Dave_2k5 Excel Discussion (Misc queries) 2 September 1st 05 11:27 AM
Place the caption of a toggle button into a cell [email protected] Excel Worksheet Functions 2 May 12th 05 04:47 AM
Toggle betwen "editing" and "pushing" a button in excel brjohnson9 Excel Discussion (Misc queries) 1 December 9th 04 12:02 AM


All times are GMT +1. The time now is 12:01 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"