• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Total count update as per date criteria

Nitesh Kumar

New Member
Hi Champ,


i need total count in sheet1 as per date from sheet2 total count.

PFA for better understand.
 

Attachments

  • Countif.xls
    33.5 KB · Views: 11
Hi Nitesh,

Use the below formula in your sheet & I have also attached the excel for your reference.

Array Formula: SUM((Sheet2!$A$4:$A$24<=Answer!A2)*(Sheet2!$B$4:$B$24))
Sumif: =SUMIF(Sheet2!$A$4:$A$24,"<="&Answer!A2,Sheet2!$B$4:$B$24)

Hope its meeting your requirement.

Thanks
 

Attachments

  • Countif-Updated.xls
    46 KB · Views: 11
it's not like that, i want total count in front of date in sheet 1, the date match with last date of sheet2. example is here (if you calculate in sheet 2 date from 05/09/2016 to 06/13/2016 is 55, same 55 count showing in front of 06/13/2016 in sheet 1), same with next date if you calculate in sheet 2 date from 05/09/2016 to 06/14/2016 is 64, same 64 count showing in front of 06/14/2016 in sheet 1.
 
it's not like that, i want total count in front of date in sheet 1, the date match with last date of sheet2. example is here (if you calculate in sheet 2 date from 05/09/2016 to 06/13/2016 is 55, same 55 count showing in front of 06/13/2016 in sheet 1), same with next date if you calculate in sheet 2 date from 05/09/2016 to 06/14/2016 is 64, same 64 count showing in front of 06/14/2016 in sheet 1.
Maybe,

In Answer sheet B2, copy down :

=IF(A2<=LOOKUP(9.9E+307,Sheet2!A:A),SUMIF(Sheet2!$A:A,"<="&A2,Sheet2!B:B),"")

Regards
Bosco
 

Attachments

  • Countif-Updated.xls
    38.5 KB · Views: 11
Back
Top