If & CountIf in Multiple Worksheets Driving Me Insane!

OLineCoach

Board Regular
Joined
Feb 27, 2005
Messages
126
I have a workbook that tracks each play of a football game. It has a worksheet for Offense as well as Final Stats. Am trying to figure a way to compute individual player stats using IF and COUNTIF.

Example:
On Worksheet2 (Offense) there is a cell for Player Number, Run Yards, Receive Yards, etc.

On Worksheet1 (Individ Stats) I would like to be able to enter the number of the player in cell A3 and in cell B3 get the number of rushing attempts. I would do this using the CountIf function.

My problem now is computing the number of yards the player rushed for according to the number from Cell B3. I was trying to use:
=If(Offense!F6:F169 "=22", SUM(G6:G169))

where Column F in Offense is Player Number, and Column G is Rushing Yards.

WILL WELCOME ANY SUGGESTIONS/HELP....THX in Advance
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Hi OLineCoach

This can be done easily using:

=SUMIF(Offense!F6:F169,22,Offense!G6:G169)

Or by Pivot Table

Eli
 
Upvote 0

Forum statistics

Threads
1,214,913
Messages
6,122,207
Members
449,074
Latest member
cancansova

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