Progress tracker - provide range to COUNTIF using INDEX and MATCH -

LukeDF

New Member
Joined
Mar 17, 2011
Messages
9
Office Version
  1. 365
  2. 2019
I looked through the threads but couldn't find anything. Any help or pointer much appreciated!!

I have to track progress of a bunch of activities based on today's date in Excel without using VB.

The date in B2 is used to count the number of TBD / WIP / DONE in the columns upto the date so the range is C6:G13 when the date is 19Nov but would change to C6:J13 if I changed it to 06Dec

I used a combination of SUBSTITUTE, INDEX, MATCH to get the range C6:G13 but it changes to "C6:G13" when I reference it.

Progress tracker.xlsx
ABCDEFGHIJKLMN
1TotalOverdueTBDWIPDoneProgress to plan
2As on date19/11/202111104655%
3
4ActivityDate18Oct25Oct01Nov08Nov15Nov22Nov29Nov06Dec13Dec20Dec27Dec03Jan
5Wk.NoW1W2W3W4W5W6W7W8W9W10W11W12
6Activity 1AmyDone
7Activity 2BobDone
8Activity 3CharlieDone
9Activity 4DanDone
10Activity 5EmmyTBDDoneWIPWIPTBD
11Activity 6FrodoDone
12Activity 7GigiWIPTBD
13Activity 8HomerWIPTBD
Sheet1
Cell Formulas
RangeFormula
B2B2=TODAY()
F2F2=COUNTA(C6:G13)
G2G2=COUNTIF(C6:F13,"TBD")
H2H2=COUNTIF(G6:G13,H1)
I2I2=COUNTIF(C6:G13,I1)
J2J2=COUNTIF(C6:G13,J1)
L2L2=((G2*-200)+(I2*50)+(J2*100))/(F2*100)
D4:N4D4=C4+7
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C6:N13Cell Value="WIP"textNO
C6:N13Cell Value="Done"textNO
Cells with Data Validation
CellAllowCriteria
C6:N13ListTBD,N/A,WIP,Done
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Instead of inputting single date I suggest to add a date range I.E from date and to date
then you can apply logic easily
 
Upvote 0
For F2 how about
Excel Formula:
=COUNTA(C6:INDEX(C13:N13,MATCH(B2,C4:N4,1)))
 
Upvote 0
Solution
For F2 how about
Excel Formula:
=COUNTA(C6:INDEX(C13:N13,MATCH(B2,C4:N4,1)))

I think he wants the calculation range to shift to between two dates. he want to count TBD , WIP etc between two dates.
 
Upvote 0
That's not my understanding. We'll just have to wait for the OP.
 
Upvote 0
Earthworm is right. I don't want to manually change the cell ranges everyday. I would like the N in C13:N13 to change whenever the date in B2 changes.
 
Upvote 0
For F2 how about
Excel Formula:
=COUNTA(C6:INDEX(C13:N13,MATCH(B2,C4:N4,1)))

I think he wants the calculation range to shift to between two dates. he want to count TBD , WIP etc between two dates.
Earthworm is right. I don't want to manually change the cell ranges everyday. I would like the N in C13:N13 to change whenever the date in B2 changes.
You need to input two data for the things to work easily. Is that possible ?
 
Upvote 0
I would like the N in C13:N13 to change whenever the date in B2 changes.
Did you actually try the formula I suggested, or just reject it out of hand? It will only count the values in columns C upto the column with the relevant date.
 
Upvote 0
Did you actually try the formula I suggested, or just reject it out of hand? It will only count the values in columns C upto the column with the relevant date.My mistake.
My mistake. When I put the formula in the actual spreadsheet, i did not change the INDEX. It works perfectly now. Thanks a lot.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,564
Messages
6,179,547
Members
452,925
Latest member
duyvmex

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