+ Reply to Thread
Results 1 to 7 of 7

Vlookup + Sumifs based on date range

  1. #1
    Registered User
    Join Date
    09-17-2012
    Location
    Bahrain
    MS-Off Ver
    Excel 2010
    Posts
    6

    Unhappy Vlookup + Sumifs based on date range

    Hello Everyone,

    Appreciate if anyone could help me with the following attachment.

    Am currently working on an excel document that has been created to capture budget requirements; the workbook has 4 worksheets.

    The first worksheet captures the cost of batches produced under each product, per month.
    The second worksheet captures the sum of all the batches that fall under each product per month.
    The third worksheet captures the quarterly production cost of each product.
    The fourth worksheet captures the annual production cost of each product.

    Overall aim: Improve the functionality of the excel document.

    First Issue
    The second worksheet (monthly) is based on the HLOOKUP function. A limitation to this workbook is that it should be flexible enough to have batches added/removed as required. Hence, HLOOKUP was used, however, every time a batch is added or removed, the number of rows in the far right have to be adjusted. Therefore, a formula other than hlookup should be applied.

    Second Issue
    The third worksheet (quarterly) is based on row numbers. If a product is added, the user will have to insert a new row in the batches worksheet, the monthly worksheet and subsequently, in this quarterly sheet. This will shift all rows downwards and will render all figures as inaccurate.

    I am looking for a formula that is based on the product name. The formula will look up the product name in the monthly sheet, go to the row with the monthly costs and sum of the costs that fall within dates.

    For example, for Q1 2015 for product A, the formula should produce the costs that are for product A between 1 Jan to 30 June in the cell.

    Third Issue
    The third worksheet (annual) is based on the row number as well, hence, poses the same tendency towards producing errors in the instance a product is added. A formula that is similar to the one that is applied in the quarterly sheet should be applied here.


    I sense that the formula that I am looking for is a combination of vlookup, sumif and most likely an array, however, I am not able to put my finger on it.


    Appreciate any help.

    Feel free to provide suggestions/comments on areas in which this document can be improved.
    Attached Files Attached Files
    Last edited by the-analyst; 02-01-2015 at 05:30 AM.

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Vlookup + Sumifs based on date range

    see the attached file
    Attached Files Attached Files
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Registered User
    Join Date
    09-17-2012
    Location
    Bahrain
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Vlookup + Sumifs based on date range

    Index and match, why didn't I think of that!

    Thank you!

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Vlookup + Sumifs based on date range

    I advice you to re-structure the data in a verticaly way.

    After that it is very easy to analyze the data (e.g. with an pivot table).

    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Vlookup + Sumifs based on date range

    You are welcome, thanks for your feedback and adding reputation

  6. #6
    Registered User
    Join Date
    09-17-2012
    Location
    Bahrain
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Vlookup + Sumifs based on date range

    Thank you oeldere for your suggestion.

    I initially used pivot tables, however, the management here decided to have separate sheets i.e. by batch, by month, by quarter and by year.

    I will explore areas where pivot tables can be used in my workbook.

    Thank you once again.

  7. #7
    Registered User
    Join Date
    09-17-2012
    Location
    Bahrain
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Vlookup + Sumifs based on date range

    nflsales, adding reputation to you was not a compliment The formula that you have shared was exactly what I was looking for; it considered the columns instead of the rows. Since the number of columns in all the worksheets will not be amended, you have avoided the likelihood of having errors due to adding rows with your formula, which is perfect

+ 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] Date Range Based Sumifs...
    By lifeisaspreadsheet in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-18-2012, 02:06 PM
  2. VLOOKUP $ Value based on a date range
    By Magyar in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-20-2012, 01:54 AM
  3. VLOOKUP based on Id and date range
    By kshastry in forum Excel General
    Replies: 10
    Last Post: 04-10-2012, 01:10 AM
  4. Sumifs function based on Date range and sales value
    By Shihab in forum Excel General
    Replies: 7
    Last Post: 02-05-2012, 11:31 AM
  5. Need help with SUMIFS based on a date range
    By leopardhawk in forum Excel General
    Replies: 3
    Last Post: 02-05-2011, 01:25 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