+ Reply to Thread
Results 1 to 8 of 8

Combo box or Data validation

  1. #1
    Registered User
    Join Date
    05-05-2011
    Location
    germany
    MS-Off Ver
    Excel 2003
    Posts
    35

    Combo box or Data validation

    Hi

    I have to populate some values in a cell based on the selection made from the drop down. Im not sure which one of it is to be used.

    To explain in detail

    I have a drop down with four options : 0 -50, 50-100, 100- 2000, >2000
    if 0- 50 is selected from the drop down then a value 0 needs to be populated in cell C5
    like wise 50-100 , value 10 needs to be populated
    100 - 2000, value 20
    > 2000 , value 30 needs to be populated in C5

    Im quite new to using combo box, kindly suggest which of it should be used(data validation or combo )for the drop down. If Combo box is better, pls let me know how it needs to be done.

    Your help will be greatly appreciated!
    Last edited by shilloh; 05-27-2011 at 06:16 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,420

    Re: Combo box or Data validation

    Personally, I'd go for Data Validation.

    See the attached example to reflect what you have asked for.

    Regards
    Attached Files Attached Files
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    05-05-2011
    Location
    germany
    MS-Off Ver
    Excel 2003
    Posts
    35

    Re: Combo box or Data validation

    Hello

    Thankyou I appreciate your quick reply, it gives me what exactly I need. However Im curious , if I have to give some other values at random for each of the drop down option, How do i do it? (As the values are not yet decided)

    Moreover the List of options added in the data validation is also visible in the excel sheet. Perhaps we can hide it, but if some user of this sheet deletes the column which has these options, then it would be a problem, im afraid it would not work. any suggestions?

    One more help.

    I have to insert another drop down Yes and No
    If Yes - a value to be assigned (say 10)
    If No- a value to be assigned (say 20)

    Awaiting your reply

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,420

    Re: Combo box or Data validation

    Have a look at the updated example.

    To use a list on another sheet, you have to name the range. You can create dynamic named ranges if the list changes a lot or you need to keep adding on the end ... but that's another question.

    One step at a time ;-)

    Regards
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-05-2011
    Location
    germany
    MS-Off Ver
    Excel 2003
    Posts
    35

    Re: Combo box or Data validation

    Quote Originally Posted by shilloh View Post
    Hello

    Thankyou I appreciate your quick reply, it gives me what exactly I need. However Im curious , if I have to give some other values at random for each of the drop down option, How do i do it? (As the values are not yet decided)

    Moreover the List of options added in the data validation is also visible in the excel sheet. Perhaps we can hide it, but if some user of this sheet deletes the column which has these options, then it would be a problem, im afraid it would not work. any suggestions?

    One more help.

    I have to insert another drop down Yes and No
    If Yes - a value to be assigned (say 10)
    If No- a value to be assigned (say 20)

    Awaiting your reply
    I have attached the excel, im working on. The reason I have asked the above is i have many such drop downs with values to be populated based on the selection.
    Pls suggest me what would be a better way , to populate values for each.
    Still a Data validation is fine to use?
    Attached Files Attached Files

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,420

    Re: Combo box or Data validation

    looks like the posts crossed.

    See your example. I have applied the validation outlined.

    I'll leave you to practise with the others. You don't necessarily need separate lists if the list and the calculation is the same.

    Regards

    Regards
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    05-05-2011
    Location
    germany
    MS-Off Ver
    Excel 2003
    Posts
    35

    Re: Combo box or Data validation

    Hello

    Thankyou very much. Response was real quick.

    Guess its better to define a name for each range and it works well with ur solution. Apologies for more than one question at a time. :-)

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,420

    Re: Combo box or Data validation

    You're welcome. Thanks for the rep.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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