+ Reply to Thread
Results 1 to 12 of 12

Connecting a formula to a combo box

  1. #1
    Banned User!
    Join Date
    03-18-2014
    Location
    Louisiana
    MS-Off Ver
    Excel 365
    Posts
    56

    Connecting a formula to a combo box

    Hi, I'm trying to set up a formula based on the value in a combo box and it's not working. What am I doing wrong?
    Attached Files Attached Files

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Connecting a formula to a combo box

    Please tell me the List of Items you have in ComboBox as it appear in combobox, in your attached file I am unable to see the list in combobox.
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Banned User!
    Join Date
    03-18-2014
    Location
    Louisiana
    MS-Off Ver
    Excel 365
    Posts
    56

    Re: Connecting a formula to a combo box

    (blank)
    Mark
    Roxanne
    Joint

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Connecting a formula to a combo box

    ok instead of using the text use numbers in as per their order

    d3=IF(B3=1,0,IF(B3=2,C3/2))

    e3=IF(B3=2,0,IF(B3=1,C3/2))


    here 1 means Mark, 2 means Roxanne and 3 means Joint
    Note: The order which they appear in combobox
    you can find the number in B3 by dragging the Combobox towards Up/down, when you select the list in combobox, the number in B3 will be changed based on your selection
    Last edited by samba_ravi; 02-18-2018 at 03:53 PM.

  5. #5
    Banned User!
    Join Date
    03-18-2014
    Location
    Louisiana
    MS-Off Ver
    Excel 365
    Posts
    56

    Re: Connecting a formula to a combo box

    yeah, I didn't finish the formula. I was trying to get that part to work. It doesn't.

  6. #6
    Banned User!
    Join Date
    03-18-2014
    Location
    Louisiana
    MS-Off Ver
    Excel 365
    Posts
    56

    Re: Connecting a formula to a combo box

    =IF(B3="Mark",0,IF(B3="Roxanne",C3/2,IF(B3="joint",C3/2,"error")))

    This is the new formula

  7. #7
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Connecting a formula to a combo box

    see the post no 4, I modified the post

  8. #8
    Banned User!
    Join Date
    03-18-2014
    Location
    Louisiana
    MS-Off Ver
    Excel 365
    Posts
    56

    Re: Connecting a formula to a combo box

    ok. I got it. Thanks. Is there any way that is easy to copy the combo down for several rows or do I have to set each one up?

  9. #9
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Connecting a formula to a combo box

    I think you can use Data Validation instead of Combobox

    see the attached file,
    here you can use If condition as you used before
    Attached Files Attached Files
    Last edited by samba_ravi; 02-18-2018 at 04:06 PM.

  10. #10
    Banned User!
    Join Date
    03-18-2014
    Location
    Louisiana
    MS-Off Ver
    Excel 365
    Posts
    56

    Re: Connecting a formula to a combo box

    Thank you. That's awesome. I didn't know about that. I copied yours, but need to figure out how to do it on my own.

  11. #11
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Connecting a formula to a combo box

    data > datavalidation>settings>select list from allow > in source you can type the names or can select the range

    If you want to enter names your own, "" not required as you used in formulas for text and the list will be separated by ,

  12. #12
    Banned User!
    Join Date
    03-18-2014
    Location
    Louisiana
    MS-Off Ver
    Excel 365
    Posts
    56

    Re: Connecting a formula to a combo box

    thank you. I found it and set it up. That's a cool function. Thanks so much!

+ 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. What formula to use for connecting searches in 2 spreadsheets?
    By NenadBDO in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-22-2017, 05:19 AM
  2. Sorting & Connecting with formula
    By Sabini in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-20-2014, 03:53 PM
  3. Connecting a cell value to a formula
    By Sphinx9 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-26-2013, 01:09 AM
  4. [SOLVED] Connecting a cell value with a formula
    By Sphinx9 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-25-2013, 10:40 PM
  5. Connecting Combo box
    By nna in forum Excel General
    Replies: 1
    Last Post: 02-12-2012, 10:22 AM
  6. Connecting formula's
    By Booms in forum Excel General
    Replies: 8
    Last Post: 09-28-2011, 11:53 AM
  7. Replies: 0
    Last Post: 03-14-2005, 01: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