+ Reply to Thread
Results 1 to 2 of 2

Prepopulate using dropdown box and vlookup assistance required plz

Hybrid View

  1. #1
    Registered User
    Join Date
    07-11-2017
    Location
    belfast
    MS-Off Ver
    2016
    Posts
    12

    Prepopulate using dropdown box and vlookup assistance required plz

    hello all i really need some help again i just cant figure out where i am going wrong, I need to prepopulate fields using a dropbox. I am trying to show monthly totals for each engineer using the drop box. their standard hours, time and half and double time and also their private miles. I have a table which will be linked to each engineer on my dash board, which I will be hiding from the user. so my drop down is the engineer and one for month. please help . I have tried to use vlookup but I wonder should I use hlookup? also I wondered if I could have the vlookup to include two different things. probably best if i attach my spreadsheetTime sheet 2018.xlsx

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

    Re: Prepopulate using dropdown box and vlookup assistance required plz

    Lulu, the problem is you have provided a very busy spreadsheet. It looks nice but you have used merged cells and they can confuse things when looking at formulas.
    Now, where you have #N/A in the dashboard tab, you are trying to lookup T17 which has the word January (referenced from B22) in it and trying to look that up across the cells from U3 through BH14, then you have a 1 and false.
    Vlookups look down one column and they do have a range like U3:BH14 as you wrote but when you put 1 after it that means if it finds the value in T17 in U3 through U14 it will return the value it finds in that column and ignore the rest of the range.
    So, if you are wanting to know what David's total is for January you probably need a sumifs or sumproduct formula to make that work.
    AND, what excel looks for is usually something that matches what is in the formula. So, the value in T17 is "January" (and it isn't a date but a text) and the list you have in cells T3 through T14 are texts too such as "jan" and "feb" etc. So if excel looks for January to match from T3:T14 it won't see "jan" as a match.

    So, given all that, what do you want the results to be for David? Is it a sum of what is in U3:X3 for January? If so perhaps this sumproduct...
    =SUMPRODUCT(($T$3:$T$14=B22)*(U3:BH14)*($U$1:$BH$1=T18))
    NOW, that will only work if the jan in T3 is changed to match what is T17 (referenced from B22 - "January") as with the other dates, AND if you put David Vennard in each cell above the table in U1 through X1, it will return 15 for January. In other words, the values have to match what is in B21, T18 is where David's name shows up but that cell just references B21.
    Hope that helps.

    EDIT: I made the changes to your sheet and am reattaching it, you will see the changes in T3 and U1 through x1.
    Attached Files Attached Files
    Last edited by Sam Capricci; 06-29-2018 at 12:12 PM.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

+ 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. IF OR assistance required
    By Mrmarc in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-13-2017, 12:52 AM
  2. [SOLVED] VBA Programming assistance required
    By Bigmiddle in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-03-2015, 09:38 AM
  3. [SOLVED] IF statement assistance required
    By Hero_honda in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-14-2014, 01:49 PM
  4. VLOOKUP specific data for month required via dropdown list
    By Toni Bennett in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-07-2006, 11:35 AM
  5. [SOLVED] Assistance required
    By Anthony in forum Excel General
    Replies: 1
    Last Post: 06-02-2006, 06:20 PM
  6. Assistance required
    By Anthony in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-02-2006, 11:10 AM
  7. [SOLVED] Formula assistance required!!!
    By Don in forum Excel General
    Replies: 4
    Last Post: 02-22-2005, 05:06 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