If/count?? Function

cruch9

New Member
Joined
Mar 9, 2011
Messages
42
I need help on how to do a function. Not even sure what function to use. I am trying to keep track of production percents per shift. I get daily production percents from each operator daily. I am going to enter either 1, 2 or 3 for what shift they were on and the %. On a seperate sheet I want to have it average all 1st shift in one cell and so on with 2nd and 3rd. Hope someone can help. Thanks
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Perhaps like this

Excel Workbook
ABC
1Shift%Avg 1
224553.66667
3159
4371
5370
6380
7321
8168
9238
10372
11162
12166
13378
14332
15262
16246
17125
18238
19142
20372
21353
Sheet2
 
Upvote 0
i tried this but it doesnt work:

=AVERAGE(IF(sheet1:sheet20!B6:B36)=1,(sheet1:sheet20!D6:H36))
 
Upvote 0
Try this:

=IF((SUM(Sheet1:Sheet20!B6:B36)/COUNT(Sheet1:Sheet20!B6:B36))=1,(Sum(Sheet1:Sheet20!D6:H36)/count(Sheet1:Sheet20!D6:H36)),"")

Make sure Sheet1 and Sheet20 are spelt exactly like that and not like sheet1 and sheet20. Punctuation matters.

Jesse
 
Upvote 0

Forum statistics

Threads
1,224,507
Messages
6,179,176
Members
452,893
Latest member
denay

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