count cell in column for last 5 days with diffrent conditions

manoj_arsul

Board Regular
Joined
Jun 27, 2018
Messages
61
I want program for the below condition.(Last 5 Days Count City wise .) ....( eg .Today is -19th July)


1) Filter to Column "A" Status For Working .
2) Filter to Column "B" City For Pune.
3) Get Till date (Today) Count of column "A" in the cell of table ( Today 19th)
4) Filter Today()-1 & Get date Count of column "A" in the cell of table ( 18th July)
5) Filter Today()-2 & Get date Count of column "A" in the cell of table ( 17th July)
6) Filter Today()-3 & Get date Count of column "A" in the cell of table ( 16th July)
7) Filter Today()-4 & Get date Count of column "A" in the cell of table ( 15th July)

Do the Same condition with other Pending , Pending - Not OK , Waiting

Source Data: -
Status*CityCountryTestDate
Pending Pune India Ok19-Jul-18
Pending Mumbai India Ok17-Jun-18
Pending - Not OK London England Not OK16-May-18
Pending - Not OK Pune India Not OK15-Jul-18
Pending Mumbai India Ok18-Jul-18
Pending - Not OK Mumbai India Not OK19-Jul-18
Pending - Not OK London England Not OK17-Jul-18
Pending - Not OK Pune India Not OK16-Jul-18
Waiting London England Ok15-Feb-18
Waiting Pune India Ok18-Jul-18
Waiting Mumbai India Not OK19-Jul-18
Waiting London England Not OK17-Jul-18
Waiting Pune India Ok16-Jun-18
Working Mumbai India Ok5-Mar-18
Working London England Not OK18-Jul-18
Working Pune India Ok19-Jul-18
Working Pune India Ok17-Mar-18
Closed London England Not OK16-Jul-18
Closed London England Not OK15-Jul-18
Closed Pune India Not OK18-Jul-18
Closed Mumbai India Not OK19-Jul-18
Closed London England Ok17-Jul-18
Closed Pune India Ok16-Jul-18
Closed Mumbai India Not OK15-Jul-18
Closed London England Not OK18-Jul-18

<tbody>
</tbody>



Out Put :
PuneWorking Count Pending CountPending - Not OKWaiting Count
15-Jul-180010
16-Jul-180021
17-Jul-181021
18-Jul-181022
19-Jul-182122

<tbody>
</tbody>

 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Forum statistics

Threads
1,214,584
Messages
6,120,384
Members
448,956
Latest member
JPav

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top