Formula Required

Drewmyster

Board Regular
Joined
May 16, 2007
Messages
151
Office Version
  1. 365
Platform
  1. Windows
Hi there,

I need a formula to count the number of occurrences that a piece of work was completed; therefore, a formula to look up a date range and match a person's name to that date.

For example;

I want to view from one page how many reports "Stacy" ran in January 2011 compared to her colleagues "Darren" "Jake" and "Michelle".

At present the data is arranged as follows;

04/01/2011 Stacy
08/01/2011 Jake
10/01/2011 Michelle
12/01/2011 Jake
15/01/2011 Jake
18/01/2011 Stacy
20/01/2011 Darren
22/01/2011 Stacy
24/01/2011 Stacy
26/01/2011 Michelle
28/01/2011 Jake
31/01/2011 Stacy
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Assuming your data has headings and starts in A2 & B2:

=COUNTIF(B2:B13,B2)

would count the number of reports Stacy had ran...

:)
 
Upvote 0
Hi there,

I need a formula to count the number of occurrences that a piece of work was completed; therefore, a formula to look up a date range and match a person's name to that date.

For example;

I want to view from one page how many reports "Stacy" ran in January 2011 compared to her colleagues "Darren" "Jake" and "Michelle".

At present the data is arranged as follows;

04/01/2011 Stacy
08/01/2011 Jake
10/01/2011 Michelle
12/01/2011 Jake
15/01/2011 Jake
18/01/2011 Stacy
20/01/2011 Darren
22/01/2011 Stacy
24/01/2011 Stacy
26/01/2011 Michelle
28/01/2011 Jake
31/01/2011 Stacy
What version of Excel are you using?
 
Upvote 0
Try

=SUMPRODUCT(--(TEXT(A2:A100,"mm/yyyy")="01/2011"),--(B2:B100="Stacy"))

Dates in column A, names in column B


Hope that helps.
 
Upvote 0
Further to the suggestions I should explain where there data is located;

The formula will in part need to lookup a date from another tab.

This is because the spreadsheet has many tabs for different reports that are run, so for examples sake, there could one titled "Account Balances"

Within Account Balances the date is column C and the person's name is column D.

I want the formula to be displayed within a Total Values tab which has dates running down column A and individual's names accross Row 1.

Therefore, if I use the formula =COUNTIF(Account Balances!C2:D12....) this will need to lookup and match the date range I am looking for.

Any advice please?
 
Upvote 0

Forum statistics

Threads
1,224,564
Messages
6,179,548
Members
452,927
Latest member
rows and columns

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