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

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
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)


[TABLE="width: 362"]
<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>[TR]
[TD="class: xl65, width: 126"]NAME[/TD]
[TD="class: xl65, width: 55"]DATE[/TD]
[TD="class: xl65, width: 66"]SQUAT[/TD]
[TD="class: xl65, width: 100"]Max of SQUAT[/TD]
[TD="class: xl65, width: 134"]Max of SQUAT REPS[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"]SY[/TD]
[TD="class: xl66, bgcolor: transparent"]fev[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"]190[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"]190[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"]4[/TD]
[/TR]
[TR]
[TD="class: xl65, bgcolor: transparent"] [/TD]
[TD="class: xl66, bgcolor: transparent"]mar[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"]205[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"]205[/TD]
[TD="class: xl65, bgcolor: transparent, align: right"]2[/TD]
[/TR]
</TBODY>[/TABLE]


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,223,249
Messages
6,171,031
Members
452,374
Latest member
keccles

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