+ Reply to Thread
Results 1 to 14 of 14

Need help creating a list

  1. #1
    Registered User
    Join Date
    12-20-2015
    Location
    Costa rica
    MS-Off Ver
    7
    Posts
    17

    Need help creating a list

    I have forgotten so much of what I used to know and this should be easy. I have a range of item names with their associated prices. If I select an item (from a drop down list), I would like to populate the adjacent cell with the associated price. Help?
    Last edited by ergibbs; 12-23-2015 at 10:50 AM.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.96 for Mac MS 365
    Posts
    8,695

    Re: What a drag it is getting old

    Use VLOOKUP (and please change your post title per forum rule 1)
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    12-20-2015
    Location
    Costa rica
    MS-Off Ver
    7
    Posts
    17

    Re: What a drag it is getting old

    See? I'm getting so old I forgot the forum rules.

    If I use VLOOKUP, do I have to enter each item manually, or can I select a range? Can you give me an example? Thanks

  4. #4
    Registered User
    Join Date
    12-20-2015
    Location
    Costa rica
    MS-Off Ver
    7
    Posts
    17

    Re: What a drag it is getting old

    I don't see how to change the subject line

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.96 for Mac MS 365
    Posts
    8,695

    Re: What a drag it is getting old

    usually a dropdown places a value from the dropdown list in a specific cell, for example A2. A vlookup will look at one column and over a certain number of columns and return a corresponding value of that cell. So for example say your value is in A2 and in another area of that sheet are the values that correspond to the dropdown and across from them the price. The vlookup looks like =vlookup(A2,D:E,2,false) where the related value to A2 is somewhere in column D and the price is across from it in column E and so you are saying, look for A2 somewhere in col D and when you find it go over to the second column (the 2 in the formula) and return what you find there and the "false" means that the match for this needs to be exact.
    Hope that helps.

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.96 for Mac MS 365
    Posts
    8,695

    Re: What a drag it is getting old

    To change the title of the thread, click EDIT on the original post, then click the Go Advanced button, then change the title. If two or more days have passed, the EDIT button will not appear, and you need to ask a moderator to change the title.
    from the forum rules page.

  7. #7
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.96 for Mac MS 365
    Posts
    8,695

    Re: Need help creating a list

    thanks for changing the thread post title.
    attached are two examples of how to use the vlookup, one in the same sheet, the other in sheet2.
    hopefully that will help (because I'm using excel for mac I can't add a dropdown in the example but you can see how it would work).
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    12-20-2015
    Location
    Costa rica
    MS-Off Ver
    7
    Posts
    17

    Re: What a drag it is getting old

    Thanks for the info. If I understand correctly, the formula would have to contain the value that needs to be looked up. That would be difficult with 30 plus entries. Is there a way to select an item from a drop down list, and then have the price entered into the adjacent cell automatically?

    For example, here's a short list

    Item A 3.99
    Item B 4.99
    Item C 5.99


    So if I select from a drop down list Item A for a cell, the associated price of 3.99 would be placed in the adjacent cell. It appears as though the VLOOKUP would require me to create an entry for each value. Am I missing something?

  9. #9
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.96 for Mac MS 365
    Posts
    8,695

    Re: Need help creating a list

    unfortunately I can't create a dropdown in excel for mac, but if you change the product in sheet1 from cars to balls or shirts the prices in B and C will both change to correspond to the new item.
    This sounds like what you want. A lookup table and formula will have to have a reference table to use against. So somewhere else Item A at 3.99 and Item B at 4.99 and Item C at 5.99 will have to be entered so the formula can reference it.

  10. #10
    Registered User
    Join Date
    12-20-2015
    Location
    Costa rica
    MS-Off Ver
    7
    Posts
    17

    Re: Need help creating a list

    OK, I'm making progress - thanks. However, something seems to not be working properly. Here is the formula you provided - =VLOOKUP(A2;F:G;2;FALSE)

    Using your sample, if I change "cars" to "pearls," the value in column B does not change to reflect the price of the pearls.

    I think, once I figure out the formula, I can create the drop down list without a problem.

  11. #11
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Need help creating a list

    If you change "cars" to "Pearls" in A2? If changing A2 is not changing your result, try hitting F9 (which means your spreadsheet is set to manual calculation).
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  12. #12
    Registered User
    Join Date
    12-20-2015
    Location
    Costa rica
    MS-Off Ver
    7
    Posts
    17

    Re: Need help creating a list

    F9 worked. Is there a way to set it to automatic calculation?

  13. #13
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Need help creating a list

    File tab>Options>Formulas
    Change from manual to automatic
    Find it?

  14. #14
    Registered User
    Join Date
    12-20-2015
    Location
    Costa rica
    MS-Off Ver
    7
    Posts
    17

    Re: Need help creating a list

    Sweet, 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. Drag Down Formulas
    By gcgoode in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-16-2015, 11:57 AM
  2. Replies: 2
    Last Post: 04-07-2015, 04:01 PM
  3. I need a way around the drag..
    By rufus ruffcut in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 06-30-2014, 04:09 PM
  4. How to use VBA to drag down ?
    By vumian in forum Excel General
    Replies: 8
    Last Post: 07-22-2006, 06:05 PM
  5. How do i drag formulas down
    By derwood in forum Excel General
    Replies: 2
    Last Post: 11-04-2005, 10:50 PM
  6. drag.....
    By Ankur in forum Excel General
    Replies: 2
    Last Post: 08-23-2005, 12:05 AM

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