+ Reply to Thread
Results 1 to 5 of 5

Auto Fill after selecting from a drop down box

  1. #1
    Registered User
    Join Date
    06-29-2012
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    2

    Auto Fill after selecting from a drop down box

    Hey Guys,

    I really need some help,

    I have created a spreadsheet with a drop down box,

    The drop down box selections are;
    - 8T
    - 13T
    - Tipper
    - Borer
    - Fuel

    the next column over is price, I want to put a code in there so when it selects 8T a certain cost has come up, I have that sorted, but in in the same cell, i need to have the cost change if 13T is selected

    Can someone help me out?

    I have attached the spreadsheet if it helps.

    Thanks
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    06-20-2012
    Location
    Melbourne Australia
    MS-Off Ver
    Excel 2010
    Posts
    75

    Re: Auto Fill after selecting from a drop down box

    Hello Toni,

    I would use the following formula

    =VLOOKUP(G6,$Q$6:$S$10,2,FALSE)

    but remember to sort your lookup values by machine type ie column S.

    Let me know how you go!

    Cheers,
    Diana

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Auto Fill after selecting from a drop down box

    your rage in your lookup only covers the 1st row of data, extend it down and you should be good to go

    for something like that tho, it may have been simpler to use
    =VLOOKUP(G6,Q6:S10,2,FALSE)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    06-29-2012
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Auto Fill after selecting from a drop down box

    Excellent,

    Thanks guys!!

    So just one more thing now I think of it,

    With the quantity and total cells,

    what code do I use to have it automatically calculate the total price

    So basically the equipment is 8T and the Price is 1300 and the quantity is 2, how do I get the total price cell to calculate automatically to say 2600?

    I have attached the example if I am not being clear

    Thanks for all your help
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-20-2012
    Location
    Melbourne Australia
    MS-Off Ver
    Excel 2010
    Posts
    75

    Re: Auto Fill after selecting from a drop down box

    Hello Toni,

    Firstly, you won't be able to use the data in column S as it is because Excel doesn't recognise the amount as a value as you also have text in the cell.
    If column S was just numbers you could use the following formula =SUMPRODUCT(J6:K24,L6:M24).

    Diana

+ 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