+ Reply to Thread
Results 1 to 8 of 8

Populating a cell based on what the user selects from a drop down

  1. #1
    Registered User
    Join Date
    04-29-2013
    Location
    Orlando, FL
    MS-Off Ver
    Excel 2010
    Posts
    9

    Populating a cell based on what the user selects from a drop down

    Hi guys,

    I've searched and tried differnet options but either my brain is locked up, I'm doing something wrong or I need more coffee...but I simply can't seem to make it work.

    I want to populate a field in colums C based on a selection the user makes in column B. This is on the first sheet named "Build".

    The user will not see the second worksheet where I have the pricing and options listed and will be locked out of editing anything on the first sheet.

    It's basically going to be a sales tool so people can 'build and price' an item.

    Any suggestions on how to make this happen?

    I've attached a sample.

    Thanks in advance!

    Test.xlsx

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,951

    Re: Populating a cell based on what the user selects from a drop down

    Put this in cell C4 and copy down:

    =IF(B4="","",VLOOKUP(B4,Options!$A$3:$B$12,2,FALSE))

  3. #3
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Populating a cell based on what the user selects from a drop down

    Give this a go
    Attached Files Attached Files
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  4. #4
    Registered User
    Join Date
    04-29-2013
    Location
    Orlando, FL
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Populating a cell based on what the user selects from a drop down

    Quote Originally Posted by BadlySpelledBuoy View Post
    Put this in cell C4 and copy down:

    =IF(B4="","",VLOOKUP(B4,Options!$A$3:$B$12,2,FALSE))
    Perfect! Thank you!

    I was missing the first "".

  5. #5
    Registered User
    Join Date
    04-29-2013
    Location
    Orlando, FL
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Populating a cell based on what the user selects from a drop down

    Quote Originally Posted by judgeh59 View Post
    Give this a go
    Thank you as well.

    When I tried this, it didn't seem to change the value in the other column.

  6. #6
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,951

    Re: Populating a cell based on what the user selects from a drop down

    You could also use =IFERROR(VLOOKUP(B4,Options!$A$3:$B$12,2,FALSE),"") but this wont work if you open the file in Excel 2003 or earlier.

    Happy to help.


    BSB.

  7. #7
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Populating a cell based on what the user selects from a drop down

    That's weird....it works fine on my system....I choose a color from the list and the price is picked up....and I setup a SUM for the total.....weird...I'm glad BSB was able to help....

  8. #8
    Registered User
    Join Date
    04-29-2013
    Location
    Orlando, FL
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Populating a cell based on what the user selects from a drop down

    Yeah, it's definitely strange here. I tried a couple of the empty cells with the drop down and while I can select a color, the price won't populate.

    I do appreciate it though!

+ 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. [SOLVED] VBA - Popup message when user selects a Protected Cell
    By elliotencore in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-27-2013, 03:55 AM
  2. Populating a cell based on drop down selection
    By cronerd in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-25-2013, 11:07 AM
  3. Replies: 12
    Last Post: 03-07-2013, 09:56 AM
  4. TextBox to display contents of any cell user selects
    By brucemc in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-19-2007, 09:31 AM
  5. Easy question: User selects cell with mouse?
    By agentsmith83 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-20-2006, 04:35 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