Summary Based on Status and Date

kumara_faith

Well-known Member
Joined
Aug 19, 2006
Messages
922
Office Version
  1. 365
Hi,

I have the following Table


TASKASSIGNED TOPROGRESSSTATUSSTARTEND
First review - SBP/Finance/Risk/TO100%DONE2-Feb-233-Feb-23
Second Review - - SBP/Finance/Risk/TO100%DONE3-Feb-234-Feb-23
Review by CTOO100%DONE4-Feb-235-Feb-23
Review by Finance100%DONE5-Feb-236-Feb-23
Review by CFO0%Not Started4-Feb-235-Feb-23
Functional review96%IN PROGRESS9-Jul-2312-Jul-23

In another Table, I am trying to summarize the above table as below:
MonthTaskCompletedIn ProgressNot Started
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec

Based on the first Table, the correct result should be as below. The Task columns shows the total task for the month regardless of status. The each column then shows whether the task has been Done, In Progress of Not Started based on the first Table above. The criteria would be to look at the Start date of all the Task for all the columns below.

MonthTaskDoneIn ProgressNot Started
Feb541
Mar
Apr
May
Jun
Jul11
Aug
Sep
Oct
Nov
Dec

Appreciate any help on how to achieve this. Thank you in advance.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Assuming the results in columns I to L and that in column H you have 3 letters of the month in text.

Dante Amor
ABCDEFGHIJKL
1TASKASSIGNED TOPROGRESSSTATUSSTARTENDMonthTaskCompletedIn ProgressNot Started
2First review1DONE02/feb/202303/feb/2023Feb5401
3Second Review1DONE03/feb/202304/feb/2023Mar0000
4Review by CTOO1DONE04/feb/202305/feb/2023Apr0000
5Review by Finance1DONE05/feb/202306/feb/2023May0000
6Review by CFO0Not Started04/feb/202305/feb/2023Jun0000
7Functional review0.96IN PROGRESS09/jul/202312/jul/2023Jul1010
8Aug0000
9Sep0000
10Oct0000
11Nov0000
12Dec0000
Hoja1


In cell I2
Excel Formula:
=SUM(IF(MONTH($E$2:$E$20)=MONTH(DATEVALUE("1"&$H2&"2023")),1))

In cell J2
Excel Formula:
=SUM(IF(MONTH($E$2:$E$20)=MONTH(DATEVALUE("1"&$H2&"2023"))*($D$2:$D$20="DONE"),1))

in cells K2 and L2
Excel Formula:
=SUM(IF(MONTH($E$2:$E$20)=MONTH(DATEVALUE("1"&$H2&"2023"))*($D$2:$D$20=K$1),1))

Copy the formulas down to the last month
 
Upvote 0
Solution
If in cell J1 instead of "Completed" you write "Done" then the same formula of K2 can be put in J2 ;)
 
Upvote 0

Forum statistics

Threads
1,215,273
Messages
6,123,985
Members
449,137
Latest member
abdahsankhan

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