+ Reply to Thread
Results 1 to 11 of 11

Change column data based on drop down selection

Hybrid View

  1. #1
    Registered User
    Join Date
    11-24-2014
    Location
    ridgefield nj
    MS-Off Ver
    2010
    Posts
    12

    Question Change column data based on drop down selection

    Hi, i am new to excel, so if anyone can please help me out i would really appreciate, i have a lot of items in a few different styles, and i want to make a price list in a way that when the customer will select the style from the drop down list, he should automatically get the price next to the item name column, what would be the best way to work this out?

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Change column data based on drop down selection

    Create a reference sheet with your items listed in column A, your prices in column B.

    Then on your main sheet enter an item in a cell, then in the cell next to it use a VLOOKUP() formula to pull in the price from the reference sheet.

    Press the F1 key in Excel al read in the help files how to setup your VLOOKUP.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    11-24-2014
    Location
    ridgefield nj
    MS-Off Ver
    2010
    Posts
    12

    Question Re: Change column data based on drop down selection

    Thank you so much for helping me, the thing is that I wanna have the list of items in the first column, the item names doesn't change, only the styles are different, so what I want it'd that if I select one style, column B should automatically change with that price list and if I change to a different style column B should change to that styles price list
    Thanks again

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Change column data based on drop down selection

    VLOOKUP is the correct choice based on your descriptions so far. It is specifically for pulling information from a table matching a key piece of information, like your item name.

  5. #5
    Registered User
    Join Date
    11-24-2014
    Location
    ridgefield nj
    MS-Off Ver
    2010
    Posts
    12

    Re: Change column data based on drop down selection


  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Change column data based on drop down selection

    Attach a sample workbook. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  7. #7
    Registered User
    Join Date
    11-24-2014
    Location
    ridgefield nj
    MS-Off Ver
    2010
    Posts
    12

    Re: Change column data based on drop down selection

    is this good?
    Attached Files Attached Files

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Change column data based on drop down selection

    In C4: =HLOOKUP(Style, $O$3:$U$8, 2, 0)
    In C5: =HLOOKUP(Style, $O$3:$U$8, 3, 0)
    Etc...

  9. #9
    Registered User
    Join Date
    11-24-2014
    Location
    ridgefield nj
    MS-Off Ver
    2010
    Posts
    12

    Re: Change column data based on drop down selection

    thank you so much it works perfect can you please explain whats happening?

  10. #10
    Registered User
    Join Date
    11-24-2014
    Location
    ridgefield nj
    MS-Off Ver
    2010
    Posts
    12

    Re: Change column data based on drop down selection

    also what can i do to copy the formula on the entire column?

  11. #11
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Change column data based on drop down selection

    Press F1 and read in the help files the tutorial on HLOOKUP and VLOOKUP. It explains it fully with examples better than I would off the cuff.

    You could change the 2 in the first formula to ROW(A2), then when you copy the cell down it would adjust itself.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] Looking for an easy way to change data on a sheet based on drop-down selection
    By Spritz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-12-2013, 09:39 AM
  2. [SOLVED] Change color of cell based on drop down selection
    By madhatter40 in forum Excel General
    Replies: 3
    Last Post: 12-14-2012, 07:27 PM
  3. [SOLVED] How to reference/populate a column of data based on a drop down menu selection
    By walterst in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-13-2012, 07:11 PM
  4. Row color change based on drop down selection
    By bigbluesfan22 in forum Excel General
    Replies: 7
    Last Post: 08-01-2012, 09:15 AM
  5. [SOLVED] change cell values based on drop down box selection
    By Aniruddha in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-23-2006, 05:30 PM

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