Problem counting data when linked to another table

DrumLad

New Member
Joined
Mar 14, 2018
Messages
7
Hi,

I am trying to come up with a solution to an excel problem I have.

I am looking to devise a formula that counts the number of attendances depending on the name. The main table below is an extract from a larger table with a full list of peoples attendance records. Is there anyway of devising a formula that will lookup the name from the table (based on what name you put at the top and counts the number of attendances both for the period and YTD!






















Attendance Record
PeriodYTD
Full NameJohn Smith
TeamAsset Engineering Team
RoleAsset Engineer
Period 01Period 02
06/04/201813/04/201820/04/201827/04/201804/05/201811/05/201818/05/201825/05/2018
TeamFull NameRole
Asset Protection teamJohn SmithAsset Engineer111
Finance TeamFred JonesAccountant111
Procurement TeamPaul DaviesBuyer1111

<tbody>
</tbody>
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Hi Drumlad,

It's appears you are working with a PivotTable. Is that correct?

If so, you can use a GETPIVOTDATA formula to reference values from the data fields in the PivotTable. Try that first to get the count for a single date for a specified combination of Full Name, Team and Role.

Once you have that working with dynamic entries at the top of your sheet, you would need to modify those to work for a specified period and YTD. It's possible to do that using an array formula, but the much easier approach would be to add sub-totals for Period and YTD (presumably your Grand Total).
 
Upvote 0

Forum statistics

Threads
1,215,553
Messages
6,125,483
Members
449,233
Latest member
Deardevil

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