+ Reply to Thread
Results 1 to 3 of 3

Select a column lookup based on drop down

  1. #1
    Registered User
    Join Date
    04-15-2016
    Location
    Omaha, NE
    MS-Off Ver
    2010
    Posts
    4

    Select a column lookup based on drop down

    I have a table on a dashboard report that uses sumproduct to pull multiple criteria to get the results. I want to be able to switch the results by using a drop down box that has 3 options - (1) Number of Units; (2) Total Charge; (3) Variable Costs. The lookup table (on a different tab) has Units in Column D, Charge in Column E and Variable costs in column G. What formula would I use in order to have the correct column's results based on the drop down selection? Thanks.
    Last edited by JJones5; 03-23-2017 at 03:21 PM.

  2. #2
    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,926

    Re: Select a column lookup based on drop down

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    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

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,143

    Re: Select a column lookup based on drop down

    If I understand correctly ..but not sure what you are matching ...

    =INDEX(Sheet2!D2:F5,Sheet1!A1,MATCH(Sheet1!B1,Sheet2!D1:F1,0))

    D2:F5 is your table (Units/Charge/VariableCosts)

    A1= "lookup" value e.g 10 (Units)

    B1=Drop down ("Units",""Charge","Variable Costs"

    Drop down values must match table headers in Sheet2

+ 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] How to do an Auto YTD SUM based on a month i select in a drop down box?
    By GAPj in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-30-2016, 07:10 AM
  2. Select lines of data that contain words from column F drop down
    By Erusso in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-22-2012, 06:30 PM
  3. [SOLVED] Select lines of data that contain words from column F drop down
    By Erusso in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-22-2012, 05:10 PM
  4. Replies: 5
    Last Post: 05-16-2012, 01:47 PM
  5. Replies: 3
    Last Post: 02-23-2012, 04:51 AM
  6. Replies: 5
    Last Post: 01-09-2006, 07:25 PM
  7. [SOLVED] how do I make drop-down list select based on 1st letter entered?
    By Missykender in forum Excel General
    Replies: 3
    Last Post: 10-06-2005, 07:05 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