+ Reply to Thread
Results 1 to 6 of 6

Vlookup to autocomplete monthly report

  1. #1
    Registered User
    Join Date
    01-10-2020
    Location
    Peterborough, England
    MS-Off Ver
    Office 2016
    Posts
    25

    Vlookup to autocomplete monthly report

    Hi all,

    Attached is a sample of what i'm working with, so please use/edit.

    I want the report to be self compiling once you select a client and a month from the two drop down lists.

    However;

    1) i'm not sure the best way to arrange the data for Vlookup to work
    2) how to link the drop down lists to run the the correct Vlookup formula

    any help would be greatly appreciate.

    Dan
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,705

    Re: Vlookup to autocomplete monthly report

    What drop-down lists? Where are we meant to be looking? Some signposting would help.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    01-10-2020
    Location
    Peterborough, England
    MS-Off Ver
    Office 2016
    Posts
    25

    Re: Vlookup to autocomplete monthly report

    Sorry Ali, on the report tab there are two dropdown lists 'Client' and 'Month'
    Last edited by AliGW; 02-05-2020 at 09:25 AM. Reason: Please don't quote unnecessarily!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,705

    Re: Vlookup to autocomplete monthly report

    Is this a VBA query? The drop-downs are controls ...

  5. #5
    Registered User
    Join Date
    01-10-2020
    Location
    Peterborough, England
    MS-Off Ver
    Office 2016
    Posts
    25

    Re: Vlookup to autocomplete monthly report

    Quote Originally Posted by AliGW View Post
    Is this a VBA query? The drop-downs are controls ...
    Hi Ali,

    I need help understanding 1) how to set the data out for a Vlookup to work & 2) how to use the drop down list to create said formula

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Vlookup to autocomplete monthly report

    It would have been simpler to use regular cells for selecting Client and Month with a Data Validation drop down.

    Since you've chosen to use a combo box then you'll either need to use VBA code to Find the Client and Month.
    Would you confirm what you mean by a client. Is 'Adam Harrison (2)' a client which implies you will have lots of similar sheets sheets. If so how many sheets?

    I have to say that if you have many clients I wouldn't have started with the current layout. You are mixing up the two elements of data capture and final reporting. The two require quite different treatments. A lot of people start by designing the form that they expect to see as the final report or which at first glance seems the best way of capturing data, and then wonder why it's so difficult to subsequently analyse and summarise or extract information from it. Yours exhibits all those features.

    You should always capture data in a simple two dimensional table and worry about reporting information from it afterwards. Without exception doing this you will always be able to easily obtain management information. Rarely is this the case if you start the other way round. You will also throw open the whole wonderful world of the powerful Pivot table functionality.

    In your case I'd have a database consisting of 4 columns for

    Date - probably the Monday dates in the month
    Order Type - which would contain data validation drop down cells allowing you to pick one of the 8 types, 'Regulated Local', 'Offiical Local'...etc
    Client - which would contain data validation drop down cells allowing you to pick a client
    Value - the numbers you currently enter in columns B,D,F..etc

    and then it would be useful to have a 5th column which concatenates the Date and Client cells values into one string. e.g "6/1/2020_Adam Harrison"


    The way I normally arrange these things is to have a single data entry row above the database in which the new values are entered, then a button which runs a macro that adds the new record to the database.

    Then when you have the database in place, if you want a 'pretty' presentation of it as you currently show then you would have a master Client Template sheet which contained formulae that would grab all the stuff you currently show from the database. And similarly the Report Sheet would get its totals from the database.

    You'll need a list of clients to use for picking in the data validation drop downs and a list of the 8 Order Types.

    Then populating the Client template is just a matter of using an =INDEX(MATCH()) combination of functions. The MATCH function would look in the 5th helper column E to find the row containing the date_client match for a particular Monday & Client, and the INDEX functionwould look at the same row in column D for the value associated with that date/client match.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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. How to extratc data as weekly report and monthly report
    By Nisar.mohammed in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-23-2014, 11:19 AM
  2. Monthly, Bi-monthly, Quarterly, Yearly Report Tracking Help
    By eugene_lys in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-26-2014, 11:08 PM
  3. Replies: 2
    Last Post: 09-28-2013, 02:40 AM
  4. Replies: 1
    Last Post: 08-15-2013, 02:15 PM
  5. Abstracting a monthly report into yearly report
    By Deepa Shrestha in forum Excel General
    Replies: 1
    Last Post: 07-25-2013, 07:09 AM
  6. How to collect daily report from spread sheet and accumulate for monthly report
    By yshguru in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-22-2013, 05:17 PM
  7. linking weekly sales report to monthly sales report
    By sueatcigaretshopper in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-27-2012, 09:22 PM

Tags for this Thread

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