+ Reply to Thread
Results 1 to 12 of 12

Radio Buttons

  1. #1
    Forum Contributor
    Join Date
    06-23-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    127

    Post Radio Buttons

    Good day!

    Attached is the spreadsheet Im working on. Two Tabs - DATA SHEET AND SUMMARY PAGE.

    Basically, I would like to be able to click the radion button in the summary page and have the data from DATA SHEET to populate the colums in SUMMARY PAGE.


    Appreciate any advice/help.


    Regards

  2. #2
    Forum Contributor
    Join Date
    06-23-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    127

    Re: Radio Buttons

    Good day!

    Attached is the spreadsheet Im working on. Two Tabs - DATA SHEET AND SUMMARY PAGE.

    Basically, I would like to be able to click the radion button in the summary page and have the data from DATA SHEET to populate the colums in SUMMARY PAGE.


    Appreciate any advice/help.


    Regards
    Attached Files Attached Files

  3. #3
    Forum Contributor mubashir aziz's Avatar
    Join Date
    03-18-2009
    Location
    Lahore, Pakistan
    MS-Off Ver
    MS Office 2013
    Posts
    533

    Re: Radio Buttons

    Here is the solution.
    Attached Files Attached Files
    If this post helps, Please don't 4get to click the star icon located at the bottom left of my Post.

  4. #4
    Forum Contributor
    Join Date
    06-23-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    127

    Re: Radio Buttons

    Thanks! Thats exactly what I need. Just wondering, how will I be able to customize it? Sorry, fairly new to this,

    Many thanks

    Quote Originally Posted by mubashir aziz View Post
    Here is the solution.

  5. #5
    Forum Contributor mubashir aziz's Avatar
    Join Date
    03-18-2009
    Location
    Lahore, Pakistan
    MS-Off Ver
    MS Office 2013
    Posts
    533

    Re: Radio Buttons

    okay

    let me tell you first about Radio Button.
    Right clock on the Radio Button->Format button->control ->cell Link , cell link =$J$4 ( i have made this cell absoulte). When u'll click button 1 its value ll be one and when u'll click 2nd button its value changed to 2.

    Now comes to formuls of vlookup here I'm using this $J$4 to move around two ranges.

    Please Login or Register  to view this content.
    IF($J$4=1
    I've applied if condition to check if linked cell ($J$4)is 1 then select the range one and if its not 1 then select other range.
    here its value is 1 mean first part will go .....
    'DATA SHEET'!$B$4:$E$15,2,FALSE

    IF($J$4=2 here i had only 2 options so I didn't write 2 so if its not 1 then go to other range.
    VLOOKUP($B$4,'DATA SHEET'!$B$20:$E$31,2,FALSE))[/

  6. #6
    Forum Contributor
    Join Date
    06-23-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    127

    Re: Radio Buttons

    Thanks for giving the formula. So just wondering, If i have multiple options, let say up to hotel 10. Which variable in the formula should I change? Thanks

    Quote Originally Posted by mubashir aziz View Post
    okay

    let me tell you first about Radio Button.
    Right clock on the Radio Button->Format button->control ->cell Link , cell link =$J$4 ( i have made this cell absoulte). When u'll click button 1 its value ll be one and when u'll click 2nd button its value changed to 2.

    Now comes to formuls of vlookup here I'm using this $J$4 to move around two ranges.

    Please Login or Register  to view this content.
    IF($J$4=1
    I've applied if condition to check if linked cell ($J$4)is 1 then select the range one and if its not 1 then select other range.
    here its value is 1 mean first part will go .....
    'DATA SHEET'!$B$4:$E$15,2,FALSE

    IF($J$4=2 here i had only 2 options so I didn't write 2 so if its not 1 then go to other range.
    VLOOKUP($B$4,'DATA SHEET'!$B$20:$E$31,2,FALSE))[/

  7. #7
    Forum Contributor mubashir aziz's Avatar
    Join Date
    03-18-2009
    Location
    Lahore, Pakistan
    MS-Off Ver
    MS Office 2013
    Posts
    533

    Re: Radio Buttons

    There is no need to quote my Full reply
    You will change only If statement incase of more radio button like
    if IF($J$4=1, Select Frist Range, if IF($J$4=2,Select 2nd range, if IF($J$4=3,Select 3rd range and so on ....................
    we can make is easy by giving names to ranges but it will be complicated for you on this stage.

  8. #8
    Forum Contributor
    Join Date
    06-23-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    127

    Re: Radio Buttons

    Thanks again for your help and being patient. I tried to do what you said however the formula is not working, would u kindly give me the formula, let say if i have 5 radio buttons.


    Many thanks

  9. #9
    Forum Contributor mubashir aziz's Avatar
    Join Date
    03-18-2009
    Location
    Lahore, Pakistan
    MS-Off Ver
    MS Office 2013
    Posts
    533

    Re: Radio Buttons

    I've given the names to ranges so pls. don't get confused with range names. you can change ranges of these names as well.
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    06-23-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    127

    Re: Radio Buttons

    Great Help! Many thanks again!


    - Cheers!

  11. #11
    Forum Contributor mubashir aziz's Avatar
    Join Date
    03-18-2009
    Location
    Lahore, Pakistan
    MS-Off Ver
    MS Office 2013
    Posts
    533

    Re: Radio Buttons

    Hey I was just thinking that if you have 50 items then ?
    so i made this change by using indirect function and now you can enter as much items as u can but formulas will remain the same.


    Just write this formula in relevent column
    C5: =VLOOKUP($B5,INDIRECT("HOTEL_"&$J$5),2,FALSE)
    D5: =VLOOKUP($B5,INDIRECT("HOTEL_"&$J$5),3,FALSE)
    E6: =VLOOKUP($B5,INDIRECT("HOTEL_"&$J$5),3,FALSE)

  12. #12
    Forum Contributor
    Join Date
    06-23-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    127

    Re: Radio Buttons

    Thanks again! I will try and figure it out

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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