Attendance Register how to count....

offensive16

New Member
Joined
May 9, 2015
Messages
3
Hi there,
Like the above recently I've created an attendance register. I have names in rows and the dates in columns. If someone is either present, absent or on holiday in the cells relatively I type values P, A or H.

Below the main table with my data I created a data validation list from which I want to choose a particular name and I want excel to count for me how many days that person was either present, absent or on holiday.

I've tried many ways already using countifs, countif, and if functions and acutally it worked but it doesn't happen dynamically. If I change the name of a person I want the values to change as well.



Thank you in advance for help.
 
As it says "Present" in D14 think better with
=SUMPRODUCT(($A$3:$A$8=$C16)*($B$3:$I$8=LEFT(D$14,1)))

I think C16 should be C15, and A3:A8 should be A2:A7
=SUMPRODUCT(($A$2:$A$7=$C15)*($B$2:$I$7=LEFT(D$14,1)))
 
Upvote 0

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
I think C16 should be C15, and A3:A8 should be A2:A7
=SUMPRODUCT(($A$2:$A$7=$C15)*($B$2:$I$7=LEFT(D$14,1)))

Thanks, A2 should be A3
=SUMPRODUCT(($A$3:$A$8=$C15)*($B$3:$I$8=LEFT(D$14,1)))

Think were both having problems copying and pasting :)
 
Upvote 0
Thank you guys for your help, it's unbelievable what excel is capable of.. I've spent over 3 hours on this and it takes only a minute to do ...
 
Upvote 0

Forum statistics

Threads
1,215,406
Messages
6,124,720
Members
449,184
Latest member
COrmerod

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