LOOKUP / SUBTOTAL formula based on set criterior

Jzfbkr

New Member
Joined
Aug 4, 2014
Messages
29
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Formation[/TD]
[TD]Scored[/TD]
[TD]Conceeded[/TD]
[TD]Home / Away[/TD]
[TD]Result[/TD]
[TD]Points[/TD]
[/TR]
[TR]
[TD]4-4-2
[/TD]
[TD]4[/TD]
[TD]2[/TD]
[TD]H[/TD]
[TD]W
[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]3-5-2[/TD]
[TD]2[/TD]
[TD]2[/TD]
[TD]H[/TD]
[TD]D[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]4-3-3[/TD]
[TD]0[/TD]
[TD]1[/TD]
[TD]A[/TD]
[TD]L[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]4-4-2[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]A[/TD]
[TD]D[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]










[TABLE="class: grid, width: 250"]
<tbody>[TR]
[TD]Formation[/TD]
[TD]Total Conceeded[/TD]
[TD]Total Scored[/TD]
[TD]#W[/TD]
[TD]#D[/TD]
[TD]#L[/TD]
[TD]Total Points[/TD]
[/TR]
[TR]
[TD]4-4-2[/TD]
[TD]?[/TD]
[TD]?[/TD]
[TD]?[/TD]
[TD]?[/TD]
[TD]?[/TD]
[TD]?[/TD]
[/TR]
</tbody>[/TABLE]


Based on the table above does anybody know formulas that can return the following information. I have been trying to use a LOOKUP function but having no joy.

Any help on this would be massively appreciated.

Thanks
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Won't a SUMIF and COUNTIF work?


Excel 2010
ABCDEFG
1FormationScoredConceededHome / AwayResultPoints
24-4-242HW3
33-5-322HD1
44-3-301AL0
54-4-211AD1
6
7FormationTotal ConceededTotal Scored#W#D#LTotal Points
84-4-2351104
Sheet3
Cell Formulas
RangeFormula
B8=SUMIF($A$2:$A$5,$A$8,$C$2:$C$5)
C8=SUMIF($A$2:$A$5,$A$8,$B$2:$B$5)
D8=COUNTIFS($A$2:$A$5,$A$8,$E$2:$E$5,"W")
E8=COUNTIFS($A$2:$A$5,$A$8,$E$2:$E$5,"D")
F8=COUNTIFS($A$2:$A$5,$A$8,$E$2:$E$5,"L")
G8=D8*3+E8
 
Last edited:
Upvote 0
Brilliant!! Sorry I don't know why I didn't think of that in the first place! Thanks for your help.

If there a way to apply these formulas to only visible cells? For instance when I filter data I only want the filtered data to be included?
 
Upvote 0

Forum statistics

Threads
1,223,268
Messages
6,171,099
Members
452,379
Latest member
IainTru

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