Personnel Report questions

DarkBebi

New Member
Joined
Aug 11, 2017
Messages
2
Hello everyone,

Excuse me if this is too hard or too simple. I absolutely love spreadsheets and I believe that a lot can be accomplished by automation. I am trying to automate numbers of personnel that are either in today, sick, or just didn't show up.

I have the list of people and next to that where they are located and then next to that I have their status. What I want to do is look up in 2 rows and if they both have the characters I want, it produces a result. I apologize I do not know how to explain this very well.

Below is a example of that I am talking about, names are fake of course but I want to automate the bottom part.


NameLocationStatus
Tomika RischQB3P
Shakita LaroccoQB3S
Barbera AugusteQB4S
Evangeline CorryQB5T
Carlee EmpeyQB5P
A = EXCUSED ABSENCE S = RSTZ = PENDING LOSS
U = UNEXCUSED ABSENCE T = TRAININGP = Present
PRE SENT RSTNO SHOWTRAINING
TOTAL ASSIGNED 2201
QB3, QB4 1200
QB5 1001

<tbody>
</tbody><colgroup><col><col><col><col><col><col></colgroup>


Could anyone please help me with this? At the least point me what formula to use. I have came up with a few but they are not real formulas like
"=COUNTIF(F4:F83,"QB3" & I4:I83, "S")+COUNTIF(F4:F83,"QB4" & I4:I83, "S")". Please help.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
FGHIJK
3Name
Location
Status
4Tomika Risch
QB3
P
5Shakita Larocco
QB3
S
6Barbera Auguste
QB4
S
7Evangeline Corry
QB5
T
8Carlee Empey
QB5
p
9
10
11PRE SENT
RST
NO SHOW
TRAINING
12TOTAL ASSIGNED
2
2
1
13QB3, QB4
1
2
14QB5
1
1

<tbody>
</tbody>


In H12
Code:
=COUNTIF($H$4:$H$8,"P")


In H13
Code:
=COUNTIFS($G$4:$G$8,"QB3",$H$4:$H$8,"P")+COUNTIFS($G$4:$G$8,"QB4",$H$4:$H$8,"P")

In H14
Code:
=COUNTIFS($G$4:$G$8,$F14,$H$4:$H$8,"P")


copy the formals across just replace the P with S for RST and so forth

I assume that No Show is both U and A if so you can use
Code:
=COUNTIF($H$4:$H$8,"U")+COUNTIF($H$4:$H$8,"A")
 
Upvote 0
Thank you so much, very fast reply and very clean code, I understood it right away. I did not know about COUNTIFS, only COUNTIF. Very much appreciated!
 
Upvote 0

Forum statistics

Threads
1,215,700
Messages
6,126,281
Members
449,308
Latest member
VerifiedBleachersAttendee

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