justafish2002
New Member
- Joined
- Dec 29, 2015
- Messages
- 12
My Data:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]May[/TD]
[TD]June[/TD]
[TD]July[/TD]
[TD]Aug[/TD]
[TD]Sept[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[TD]100[/TD]
[TD]50[/TD]
[TD]150[/TD]
[TD]175[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]Paul[/TD]
[TD]50[/TD]
[TD]100[/TD]
[TD]175[/TD]
[TD]250[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]Mary[/TD]
[TD]25[/TD]
[TD]20[/TD]
[TD]150[/TD]
[TD]100[/TD]
[TD]50[/TD]
[/TR]
</tbody>[/TABLE]
I want to find the largest improvement over that person's personal best, so my desired results would be:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Improvement[/TD]
[TD]Month[/TD]
[TD]Month[/TD]
[/TR]
[TR]
[TD]Mary[/TD]
[TD]125[/TD]
[TD]May[/TD]
[TD]July[/TD]
[/TR]
</tbody>[/TABLE]
Some notes: I'd prefer no helper columns if possible. I'd also prefer to do this in a formula since I have to use Google Sheets.
I tried this formula, which works to find the max improvement on an individual row, but not on the data as a whole (since MAX doesn't return an array):
=ArrayFormula(MAX({G4:G666;H4:H666;I4:I666;J4:J666}-{MAX(F4:F666);MAX(F4:G666);MAX(F4:H666);MAX(F4:I666)}))
That formula would also require updating each time a column was added. Something that may be helpful is a formula that can return an array containing the max improvement of each row.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]May[/TD]
[TD]June[/TD]
[TD]July[/TD]
[TD]Aug[/TD]
[TD]Sept[/TD]
[/TR]
[TR]
[TD]Bob[/TD]
[TD]100[/TD]
[TD]50[/TD]
[TD]150[/TD]
[TD]175[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]Paul[/TD]
[TD]50[/TD]
[TD]100[/TD]
[TD]175[/TD]
[TD]250[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]Mary[/TD]
[TD]25[/TD]
[TD]20[/TD]
[TD]150[/TD]
[TD]100[/TD]
[TD]50[/TD]
[/TR]
</tbody>[/TABLE]
I want to find the largest improvement over that person's personal best, so my desired results would be:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Improvement[/TD]
[TD]Month[/TD]
[TD]Month[/TD]
[/TR]
[TR]
[TD]Mary[/TD]
[TD]125[/TD]
[TD]May[/TD]
[TD]July[/TD]
[/TR]
</tbody>[/TABLE]
Some notes: I'd prefer no helper columns if possible. I'd also prefer to do this in a formula since I have to use Google Sheets.
I tried this formula, which works to find the max improvement on an individual row, but not on the data as a whole (since MAX doesn't return an array):
=ArrayFormula(MAX({G4:G666;H4:H666;I4:I666;J4:J666}-{MAX(F4:F666);MAX(F4:G666);MAX(F4:H666);MAX(F4:I666)}))
That formula would also require updating each time a column was added. Something that may be helpful is a formula that can return an array containing the max improvement of each row.
Last edited: