+ Reply to Thread
Results 1 to 8 of 8

Date against countifs with multiple line item

  1. #1
    Forum Contributor
    Join Date
    08-07-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    372

    Date against countifs with multiple line item

    Excel Legends,

    Data:

    Bill No***********Dispatch Date*******Batch NUmber

    1848************19/12/2015*********35

    1849************19/12/2015*********35

    1850************19/12/2015*********35

    1859************19/12/2015*********45

    1865************19/12/2015*********46

    1869************19/12/2015*********46

    Required Format:

    Date************No of Record Passout

    19/12/2015************11


    Query-2:

    Date***********Starting Number*********End Number

    19/12/2015******35********************46


    Query-1:

    No of records pass out from particular day against multiple line item.

    Query-2:

    To End of Date staring Batch No and End of Number.

    file attached please help me.
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Date against countifs with multiple line item

    For query 1, this will do it:
    =SUM(INDEX(($B$2:$B$61=$H3)/COUNTIFS($B$2:$B$61,$B$2:$B$61,$C$2:$C$61,$C$2:$C$61),0))
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

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

    Re: Date against countifs with multiple line item

    Try below array formulas (Confirm with Shift+Ctrl+Enter)
    i3=SUM((FREQUENCY(IF($B$2:$B$61=$H3,$C$2:$C$61+0),IF($B$2:$B$61=$H3,$C$2:$C$61+0))>0)+0)
    i4=SUM((FREQUENCY(IF($B$2:$B$61=$H4,$C$2:$C$61+0),IF($B$2:$B$61=$H4,$C$2:$C$61+0))>0)+0)
    l2=MIN(IF($B$2:$B$61=MAX($B$2:$B$61),$C$2:$C$61+0))
    l3=MAX(IF($B$2:$B$61=MAX($B$2:$B$61),$C$2:$C$61+0))
    see the attached file
    Attached Files Attached Files
    Samba

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

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Date against countifs with multiple line item

    For query 2, I was a little confused by your request. This wil give the first and last for each date:

    =MIN(IF($B$2:$B$61=$H3,0+$C$2:$C$61))

    see sheet. This is an array formula. Array Formulae are a little different from ordinary formulas in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.

    You will know the array is active when you see curly braces { } appear around the outside of your formula. If you do not CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly braces yourself - it won't work...
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-04-2015
    Location
    Woking, England
    MS-Off Ver
    2010
    Posts
    72

    Re: Date against countifs with multiple line item

    Glenn Kennedy

    THANK YOU SO MUCH FORMULAS WORKING PERFECTLY.

  6. #6
    Registered User
    Join Date
    01-04-2015
    Location
    Woking, England
    MS-Off Ver
    2010
    Posts
    72

    Re: Date against countifs with multiple line item

    nflsales ,

    Lot of Thanks both of formulas working as fine way.You are Great.

  7. #7
    Registered User
    Join Date
    01-04-2015
    Location
    Woking, England
    MS-Off Ver
    2010
    Posts
    72

    Re: Date against countifs with multiple line item

    Glenn Kennedy

    Thanks you so much for your help and Explain about the array formula.

  8. #8
    Registered User
    Join Date
    01-04-2015
    Location
    Woking, England
    MS-Off Ver
    2010
    Posts
    72

    Re: Date against countifs with multiple line item

    Glenn Kennedy

    Thanks you so much for your help and Explain about the array formula.

+ 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] Formula needed - line item of unique item matching criteria
    By NS4Excel in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 04-18-2015, 06:32 PM
  2. Countifs with multiple variables and date ranges
    By genichigo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-25-2015, 03:36 PM
  3. Replies: 2
    Last Post: 03-19-2014, 11:47 AM
  4. [SOLVED] Total line item sale qty to be sum in a cell as date wise
    By geromio in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-15-2013, 10:50 PM
  5. Combining multiple line items into one line item based on column.
    By mguz018 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-20-2012, 07:22 PM
  6. Replies: 2
    Last Post: 08-18-2011, 11:33 AM
  7. If column A is a June date, return the dollar value for that line item.
    By dearickmilton in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-09-2009, 08:39 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