Average of the Sumif result ?

WalterWhite

New Member
Joined
Feb 6, 2019
Messages
3
Hi everyone there is my problem; i have 2 different excel file. First one is BW, second one BI. I was using SUMIF formula for my second excel. it was fine until repeating numbers came up. As you can see its summing for each repeating numbers and i don't want that. I want the average of the sum. For example in my second table would be 410 for each number is ideal for me. How can i do that ?

[TABLE="class: grid, width: 200"]
<tbody>[TR]
[TD="align: center"]B[/TD]
[TD="align: center"]W[/TD]
[/TR]
[TR]
[TD]6309641[/TD]
[TD]320[/TD]
[/TR]
[TR]
[TD]6309641[/TD]
[TD]350[/TD]
[/TR]
[TR]
[TD]6309641[/TD]
[TD]60[/TD]
[/TR]
[TR]
[TD]6309641[/TD]
[TD]90[/TD]
[/TR]
[TR]
[TD]6258924[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]6258924[/TD]
[TD]120[/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="class: grid, width: 200"]
<tbody>[TR]
[TD="align: center"]B[/TD]
[TD="align: center"]I[/TD]
[/TR]
[TR]
[TD]6309641[/TD]
[TD]820[/TD]
[/TR]
[TR]
[TD]6309641[/TD]
[TD]820[/TD]
[/TR]
[TR]
[TD]6258924[/TD]
[TD]220[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Hi, I am a bit confused. Why would 410 be the average when 820 is the sum of 4 cells? Are you averaging the number by the amount of times it appears in the second table?
 
Upvote 0
Do your sumifs then divide by the number of times the number appears in table 2. eg:

=SUMIFS(Sheet1!W:W,Sheet1!B:B,B1)/COUNTIFS(B:B,B1)
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,263
Members
452,627
Latest member
KitkatToby

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