SOLVED

Help with Formula

Brass Contributor

Hi

 

I am sure that there should be a really easy solution to this, but I have been going around in circles trying various different formulas and pivot tables.

 

Currently I have a data download that shows every student, and what they have been attending each week.

 

What  I need to be able to do is look up the module name, the activity and count the number of "Y" for each student over the total number of weeks, so that I can have an overview/summary of how many have attended.

 

I have attached a quick snapshot book, but the data it's self is about 10,000 rows.

 

Thanks

 

Machala

5 Replies
best response confirmed by Machala Sentance (Brass Contributor)
Solution

Hi @Machala Sentance 

 

I don't know if I understood properly but please check attached file and see if it helps.

 

Your original data was not suitable for Pivot table so I used PowerQuery to unpivot it (check UNPIVOTED DATA sheet) and then generated from it a Pivot table that may help you. 

 

If you check filter field in the PIvot you will see that you can filter between "Y", "N" depending on what you need to count.

 

BR,

Branislav 

Hi Branislav

 

Thanks for your reply, data sort of works, apologies for not making it clearer.  I am trying to add up the total number of "Y" for each activity and module for example if 2 students attended the lecture for archery that would be 2, but if 3 attended the tutorial for archery this would be 3

 

Thanks

 

Machala

Hi Machala,

Ok, pull "studenthostkey" out of Rows field in Pivot. It should give the view you described.

Rgds,
Branislav

Hi Branislav

 

You are a superstar, thanks for saving my sanity

 

Kind regards

 

Machala

Glad I could help :)

Best regards,
Branislav
1 best response

Accepted Solutions
best response confirmed by Machala Sentance (Brass Contributor)
Solution

Hi @Machala Sentance 

 

I don't know if I understood properly but please check attached file and see if it helps.

 

Your original data was not suitable for Pivot table so I used PowerQuery to unpivot it (check UNPIVOTED DATA sheet) and then generated from it a Pivot table that may help you. 

 

If you check filter field in the PIvot you will see that you can filter between "Y", "N" depending on what you need to count.

 

BR,

Branislav 

View solution in original post