+ Reply to Thread
Results 1 to 4 of 4

Radio Button Output for Cell Selection

  1. #1
    Registered User
    Join Date
    02-21-2011
    Location
    Lancaster, PA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Radio Button Output for Cell Selection

    I have a chart of costing data. I have two sets of radio buttons on each axis of the chart with a button assigned for each respective row or column. The linked cell (which is on a different worksheet) drives a =CHOOSE command that generates either a number or letter that corresponds with the row or column it is in. I would like to somehow combine the output of those two CHOOSE commands so that they drive a formula. For example if the radio button in row 3 and the radio button in column H were both selected I would line my formula to use the value in cell H3. I have attached my spreadsheet as a reference.Packaging Options Concept.xlsx

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Radio Button Output for Cell Selection

    You don't need the "Choose" function.
    Using INDEX
    =INDEX($C$3:$H$6, 'Source Data'!$C$8, 'Source Data'!$D$8)
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    02-21-2011
    Location
    Lancaster, PA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Radio Button Output for Cell Selection

    That works great. Can I do the same with the radio button that selects the column and a checkbox that selects the row? When the checkbox is False the value would be zero.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Radio Button Output for Cell Selection

    I think that gets a little trickier because you can have multiple options.

    This seems to work
    =INDEX($C$3:$H$6, 'Source Data'!$C$8, 'Source Data'!$D$8)+SUMPRODUCT((COLUMN($C$1:$H$1)-2='Source Data'!$D$8)*$C$9:$H$19*('Source Data'!$F$14:$F$24=TRUE))+SUMPRODUCT((COLUMN($C$1:$H$1)-2='Source Data'!$D$8)*$C$22:$H$31*('Source Data'!$F$27:$F$36=TRUE))

    I had to put your TRUE/FALSES into a single column on 'source data'
    See attachment
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-21-2011
    Location
    Lancaster, PA
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Radio Button Output for Cell Selection

    Very clever. I came up with a different solution.Packaging Options Concept.xlsx

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VBA and Internet Explorer: Radio Button selection
    By amike402 in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 01-30-2014, 09:28 AM
  2. [SOLVED] Change the value output by a radio button
    By JimDandy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-13-2012, 06:06 PM
  3. Radio Button default Selection
    By gsandy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-12-2009, 09:16 PM
  4. [SOLVED] How change cntrl toolbx radio button from T/F to numeric output?
    By Pat in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-27-2005, 10:05 AM
  5. how do I link radio button selection to another page
    By Sharon in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-27-2005, 05:06 PM

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