+ Reply to Thread
Results 1 to 7 of 7

Index/match with date/month criteria

Hybrid View

  1. #1
    Registered User
    Join Date
    10-27-2014
    Location
    Coimbatore, India
    MS-Off Ver
    2007+2013
    Posts
    59

    Index/match with date/month criteria

    I have a problem with index/match function, the answer probably may be very simple but I am unable to sort it out for hours. Ok, the problem is : I have a workbook with four sheets viz.,
    Sheet 1: McCapacity (meaning Machine Capacity) containing calender months in col B (B9:B20),Capacity for the Month in Col Q (Q9:Q20)
    Sheet 2: Prodn (meaning Production) contains datewise productwise production
    Sheet 3: McShirfts (meaning Capacity used in Production) contains datewise capacity utilised in production - Dates starting from 1-Apr-2015 to 31-Mar-2016 (B9:B374), Col C to AP contains actual capacity used in various products manufactured and Col AQ contains the sum of total capacity actually used in production.
    Sheet 4: Stoppages (meaning Capacity Unutilsed) contains datewise unutilised capacity - Dates starting from 1-Apr-2015 to 31-Mar-2016 (B9:B374), Col C to R contains capacity unused due to various causes and Col S contains the sum of total unused capacity.
    Here I want to check the correctness of the data entered in Sheet 3 and 4 in col V through a formula. The logic is that the sum of the capacoty utilised (Sheet 3 Col AQ) plus the sum of unutilised capacity (Sheet 4 Col S) must be equal to the Capacity for the correponding Month (Sheet 1 Col Q) of the respective date in Sheet 4.
    Could you please help?

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,085

    Re: Index/match with date/month criteria

    Please upload a sample of your workbook to the forum, Make sure you have removed any private information, remember this is a public forum and so available to anyone
    Would like to see an example of your data and also a manual mock up of the expected results you want to achieve.

    To attach a file to your post,
    click "Go advanced" (next to quick post),
    scroll down until you see "manage Attachments",
    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.
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    10-27-2014
    Location
    Coimbatore, India
    MS-Off Ver
    2007+2013
    Posts
    59

    Re: Index/match with date/month criteria

    test file attached.
    I need a single formula that could be applied in all days. Pls ignore the earlier attachement.
    Attached Files Attached Files
    Last edited by rviji.cbe; 05-24-2015 at 07:13 AM.

  4. #4
    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
    30,671

    Re: Index/match with date/month criteria

    Try:

    =IFERROR(IF(SUM(McShifts!AQ9,Stoppages!S9)=INDEX(CapacityPerDayConvlRingFrames,MATCH(B9,McCapacity!$B$9:$B$20,1)),"OK","NOK"),"")

    and copy down

  5. #5
    Registered User
    Join Date
    10-27-2014
    Location
    Coimbatore, India
    MS-Off Ver
    2007+2013
    Posts
    59

    Re: Index/match with date/month criteria

    I'll try and report back soon...

  6. #6
    Registered User
    Join Date
    10-27-2014
    Location
    Coimbatore, India
    MS-Off Ver
    2007+2013
    Posts
    59

    Re: Index/match with date/month criteria

    Wow! The formula works perfect for all the days/months. Thanks Mr.JohnTopley. I tried with the same formula but without the IFERROR condition and the results were wrong! Could you pls tell how the IFERROR condition is working here? Is there any reference materials on constructing such complex formulas in excel?

  7. #7
    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
    30,671

    Re: Index/match with date/month criteria

    For sources of help with Excel, see the first thread at the top this section.

    IFERROR captures any errors that may have occurred with the functions used in any formula; in this case the cell is set to blank when an error occurs.

    Often when a formula is copied down, there is no data for the formula e.g. in a future date, so any error condition may occur, so using IFERROR whenever possible is a good idea.

    Hope this helps.

+ 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. Index / Match / Small by Month with Date Criteria
    By marcusduton in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-20-2015, 05:37 AM
  2. Sumif or Index/Match on Multiple Criteria including Dates to Month?
    By patrick1024 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-19-2015, 11:00 PM
  3. [SOLVED] Index Match Based on One Date Criteria, Table Contains Beginning Date and End Date
    By jcox1953 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-09-2014, 02:41 PM
  4. Index and Match with Two Criteria, and date Match Type is Less Than
    By ExcelQuestion in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 11-11-2013, 08:57 AM
  5. Calculate month to date returns, index and match
    By nickmangan in forum Excel General
    Replies: 2
    Last Post: 07-13-2012, 07:01 AM

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