Week wise Sumif

narendra1302

Active Member
Joined
Sep 23, 2009
Messages
273
Hi,

I have one sheet of excel, in which i have data of day wise number of incidents - Accidents, Hazards & House Keeping - Like following
A B C D E
Date Week Accidents Hazards HK
01/01/09 1 5 6 2
07/01/09 2 2 4 1
......
......

And in another sheet - I am having summary Weekwise
A B C D
Week Accidents Hazards HK
1 5 6 2
2 2 4 1

I have use SUMIF for sum the numbers of incidents in that week.

Now my problem is - when I used SUMIF for second column - for Hazard the number of Hazard get added in Accidents. So in above case accidents for week 1 will show 11, insted of 5 ?? Same case for HK...

thanks

Narendra
 

Some videos you may like

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.

sanrv1f

MrExcel MVP
Joined
Jan 1, 2009
Messages
3,474
Office Version
  1. 2016
Platform
  1. Windows
try this
Excel Workbook
ABCDE
1DateWeekAccidentsHazardsHK
201/01/20091562
307/01/20092241
Sheet1
Excel 2003
Excel Workbook
ABCD
1WeekAccidentsHazardsHK
21562
32241
Sheet2
Excel 2003
Cell Formulas
RangeFormula
B2=SUMPRODUCT((Sheet1!$B$2:$B$3=$A2)*(Sheet1!$C$1:$E$1=B$1),Sheet1!$C$2:$E$3)
 

Watch MrExcel Video

Forum statistics

Threads
1,123,083
Messages
5,599,643
Members
414,326
Latest member
kfg1287

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
Top