pivot help please!

tung256

New Member
Joined
Mar 31, 2016
Messages
9
hello, im a secretary for a small school.
i have an attendance sheet for classes and the dates.
i would like to see Present count per day per classes. but for some reason, i can only do 1 date at a time.
in the file im sharing, you will see 3 tabs.
"all data" all the data i collected
"pivot" is where i can only do 1 date at a time.
"desired result" is an example of the pivot data i actually want.
please help! thanks for your time everyone
www.kerrsbuilding.com/test/example.xlsx
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
If I'm looking correctly, you're only getting one date because there's only one date included in your pivot table, yes?
If it's more than that, I'll try and look a bit more in a bit.
 
Upvote 0
If I'm looking correctly, you're only getting one date because there's only one date included in your pivot table, yes?
If it's more than that, I'll try and look a bit more in a bit.

yes. if i try to put in additional dates. the pivot chart doesnt look anything like what i wanted.
 
Upvote 0
If there's a better way, it's not rattling into my brain today, but my solution is- NO pivot table at all.

Shortest way to explain what I did to get what I think you want for a result is this:

1.) Copy your list of classes to a scratch sheet/file, sort, and remove duplicates so you have one listing of all classes
2.) Copy that deduped list to A4 of your desired result sheet so you have all classes listed there
3.) Type the formula below into cell B4 and copy it thru all dates, all lines (B4:F48 I believe)

=COUNTIFS('all data'!$A:$A,$A4,'all data'!F:F,"p")

to get more trick, if there would be more date columns ongoing that you'd want to add, we could add to that formula...as long as the headings both places matched...because right now the formula isn't looking at the date, just the actual column placement.

To explain what that formula is doing- the first part says to look in column A of the data sheet and find the class in that row on the desired results sheet, then the second part says to look only in those rows and count the P's.
 
Last edited:
Upvote 0
My results page looks like this (not sure how this looks pasted here, but I'll give it a shot)

classes09/12/1609/13/1609/14/1609/15/1609/16/16
ADV 10100465
ADV 10244340
ADV 10335342
ADV 20100097
ADV 20200080
ADV 20304675
ADV 30100979
ADV 401001378
ADV 4021413121313
AFRAMR HIS67572
ALGEBRA 11113111411
ALGEBRA 264888
ALGEBRA x12231
AMER. HIST8911212
BIOLOGY00049
CAREER EXP11701114
CHEMISTRY000108
COLLEGE PR12240190
EARTH SCIE00053
ENG 121451
ENG 213121
ENG 332518
ENG 444333
ENGLISH 177887
ENGLISH 253373
ENGLISH 371845
ENGLISH 433432
ENGLISH x44443
GEOMETRY12610118
GEOMETRY x30400
HEALTH025272925
JRT14616610
PHYS. ED06999
PHYS. ED.019191819
PHYS. SCIE0001116
PROBABILIT02010
PROJECT108890
science00001
SOCIAL SCI5105134
SPANISH 11715231621
SPANISH 211912187
SR. PROJ.79797
WRITING00000
WRLD HIST00300
WRLD HIST.2101810

<tbody>
</tbody><colgroup><col><col><col span="4"></colgroup>
 
Upvote 0
OMG! this is exactly what i wanted! thank you.
all this time a pivot is the solution thats why i tried but failed again n again. i guess i will use your suggestion! thanks sooo much for your time!
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,816
Members
449,049
Latest member
cybersurfer5000

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