Sum if returning values when it should be 0?

MDuff

Well-known Member
Joined
Dec 29, 2002
Messages
529
Office Version
  1. 365
Platform
  1. Windows
Sum if returning values when it should be 0?

I am using this formula to sum data biased on a number criteria (weeknum) the issue is it is giving me data when I should have a 0 Does any one have any idea why or a fix?
=SUMIF('Interval P_Hours'!$B$4:$IV$55,L2,'Interval P_Hours'!$B$54:$IV$54)

Issue Higlited in yellow
Ramp Analysis Expedia 2007 and Ramp Plan_I_org_lock (2) (2).xls
LMNOP
11010101010
24041424344
3October (Preliminary)
410/1/200710/8/200710/15/200710/22/200710/29/2007
5233229224220215
6229224220215211
7404040
8
9
10500101295
11
Summary


Interval P_Hours Sheet saple data
Ramp Analysis Expedia 2007 and Ramp Plan_I_org_lock (2) (2).xls
BCDE
2MonTueWedThurs
37/307/318/18/2
431313131
5
624331722
720281618
818231415
915181112
101213910
119977
127856
137745
146645
156745
Interval P_Hours


Interval P_Hours Sheet with Criteria 40 I would expect it to return a 0
Ramp Analysis Expedia 2007 and Ramp Plan_I_org_lock (2) (2).xls
BM
2Mon
310/1
440
Interval P_Hours
Ramp Analysis Expedia 2007 and Ramp Plan_I_org_lock (2) (2).xls
BMBNBOBPBQBRBS
540000000
Interval P_Hours


Thanks in advance
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Hi,

I am not exactly sure what you are trying to do, but I usually use a sumproduct formula for this.

Code:
=sumproduct(('Interval P_Hours'!$B$4:$IV$4=L2)*( 'Interval P_Hours'!$B$54:$IV$54))

I hope this helps.
 
Upvote 0
Can't see the formula in L10, what are you using now?

Surely you just need to replace 55 in your original with 4 so formula becomes

=SUMIF('Interval P_Hours'!$B$4:$IV$4,L2,'Interval P_Hours'!$B$54:$IV$54)
 
Upvote 0

Forum statistics

Threads
1,214,915
Messages
6,122,217
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