+ Reply to Thread
Results 1 to 3 of 3

vLookUp based on dropdown selection

  1. #1
    Registered User
    Join Date
    02-24-2012
    Location
    Texas
    MS-Off Ver
    Excel 2013
    Posts
    11

    vLookUp based on dropdown selection

    So we have a set of services we sell to some vendors, in the C column I have: electrical, parking, IT, compressed air, etc., all in a data validation drop down. Column D has all the specific services for electrical, parking, IT, etc also in a modified data validation drop down. Column E has the quantity of said services. Then here is where I'm stuck, we charge an advanced rate for early buyers and a floor rate for the late comers. I was able to get a vlookup function to work but only using a single rate. I want to be able to control that function in vlookup to switch between the 2 rates of "Advanced" and "Floor" based on using the drop down:

    Please Login or Register  to view this content.
    Make sense?, I also want to be able to do the same thing with adding tax based on a drop down in a separate "Total" column. Maybe vlookup isn't the way to go...attached working file.

    Michael
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: vLookUp based on dropdown selection

    Change the formula in G12 to this:

    =IF(D12="","",VLOOKUP(D12,Prices!$A$2:$C$46,IF(F12="Floor",3,2),0)*InventoryTable[[#This Row],[Quantity]])

    It should automatically propagate down your table.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    02-24-2012
    Location
    Texas
    MS-Off Ver
    Excel 2013
    Posts
    11

    Re: vLookUp based on dropdown selection

    Quote Originally Posted by Pete_UK View Post
    Change the formula in G12 to this:

    =IF(D12="","",VLOOKUP(D12,Prices!$A$2:$C$46,IF(F12="Floor",3,2),0)*InventoryTable[[#This Row],[Quantity]])

    It should automatically propagate down your table.

    Hope this helps.

    Pete
    Perfect, thanks for your help!

+ 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