Pivot table issue

potts

Board Regular
Joined
Jul 9, 2004
Messages
86
Hi

I want to create a pivot table that shows the maximum weight athletes squatted in the gym each month and the maximum number of reps they did with that weight.

The raw table headings are:
NAME
DATE
SQUAT
SQUAT REPS

I have managed to group the date data to get the max weight lifted each month (pivot column headings) for the athletes (pivot row headings). However, I can't pull out the max reps they did with THAT weight for the month. If i use the "max of squat reps", I will get the max reps they did with any weight that month.

Can anyone tell me how to get the max reps of the max weight for each month?

Thank you
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
I can't post attachments, but you could create a sample by pasting the following into columns A to D:

NAME
SY
SY
SY
SY
SY

DATE
21-2-12
24-2-12
28-2-12
3-3-12
8-3-12

SQUAT
180
190
190
200
205

SQUAT REPS
7
3
4
2
2

I would want the pivot table to show max squat and associated reps for each month. I should get:
FEB squat = 190, reps = 4
MAR squat = 205, reps = 2

Thanks for your help
 
Upvote 0
I can't figure this one out either using pivot tables. Maybe you have do a more advanced search using VBA?
 
Upvote 0
Maybe something like this (not very elegant, but it works)


NAMEDATESQUATMax of SQUATMax of SQUAT REPS
SYfev1901904
mar2052052

<COLGROUP><COL style="WIDTH: 95pt; mso-width-source: userset; mso-width-alt: 4608" width=126><COL style="WIDTH: 41pt; mso-width-source: userset; mso-width-alt: 2011" width=55><COL style="WIDTH: 50pt; mso-width-source: userset; mso-width-alt: 2413" width=66><COL style="WIDTH: 75pt; mso-width-source: userset; mso-width-alt: 3657" width=100><COL style="WIDTH: 101pt; mso-width-source: userset; mso-width-alt: 4900" width=134><TBODY>
</TBODY>


Row labels
NAME
DATE (group by Month)
SQUAT (Value filter ; Top 1; Max of SQUAT)

Values Area
SQUAT (Summarize by Max)
SQUAT REPS (Summarize by Max)

If you want you can hide the column SQUAT (3rd column)

Hope this is what you need

M.
 
Upvote 0

Forum statistics

Threads
1,216,102
Messages
6,128,849
Members
449,471
Latest member
lachbee

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