SUMIF only works for 1 column and not the other?

SensingFailure

New Member
Joined
Nov 10, 2014
Messages
4
Good morning all!

So I have a spreadsheet where I have to compare monthly hour and cycle updates to aircraft. I need to show how much of an increase occurs each month and to catch any decreases. I have had success using SUMIF for the hours updates, but not the cycles. It only displays the formula text rather than a value. I thought that it may have been related to the specified cells being 1 more column to the right from the range criteria.

The formula that is not working is:
=SUMIF(D3:$D$616,AM3,$F$3:$F$616)-SUMIF($A$3:$A$579,AM3,$C$3:$C$579)
yet it works for the hours with this formula:
=SUMIF($D$3:$D$616,AM3,$E$3:$E$616)-SUMIF($A$3:$A$579,AM3,$B$3:$B$579)

Any help on this is greatly appreciated!

[TABLE="width: 448"]
<tbody>[TR]
[TD="class: xl67, width: 64"]January[/TD]
[TD="class: xl67, width: 64"][/TD]
[TD="class: xl67, width: 64"][/TD]
[TD="class: xl67, width: 64"]February[/TD]
[TD="class: xl67, width: 64"][/TD]
[TD="class: xl67, width: 64"][/TD]
[TD="class: xl67, width: 64"]March[/TD]
[/TR]
[TR]
[TD="class: xl66"]Tail[/TD]
[TD="class: xl66"]A/C TSN[/TD]
[TD="class: xl66"]A/C CSN[/TD]
[TD="class: xl66"]Tail[/TD]
[TD="class: xl66"]A/C TSN[/TD]
[TD="class: xl66"]A/C CSN[/TD]
[TD="class: xl66"]Tail[/TD]
[/TR]
[TR]
[TD="class: xl64, width: 64"]N200WN[/TD]
[TD="class: xl70, width: 64"]32347[/TD]
[TD="class: xl68, width: 64"]18921[/TD]
[TD="class: xl65"]N200WN[/TD]
[TD="class: xl71, width: 64"]32635[/TD]
[TD="class: xl69, width: 64"]19090[/TD]
[TD="class: xl65"]N200WN[/TD]
[/TR]
[TR]
[TD="class: xl64, width: 64"]N201LV[/TD]
[TD="class: xl70, width: 64"]32254[/TD]
[TD="class: xl69, width: 64"]18687[/TD]
[TD="class: xl65"]N201LV[/TD]
[TD="class: xl70, width: 64"]32517[/TD]
[TD="class: xl69, width: 64"]18839[/TD]
[TD="class: xl65"]N201LV[/TD]
[/TR]
[TR]
[TD="class: xl64, width: 64"]N202WN[/TD]
[TD="class: xl70, width: 64"]32324[/TD]
[TD="class: xl69, width: 64"]18847[/TD]
[TD="class: xl65"]N202WN[/TD]
[TD="class: xl70, width: 64"]32589[/TD]
[TD="class: xl69, width: 64"]19007[/TD]
[TD="class: xl65"]N202WN[/TD]
[/TR]
[TR]
[TD="class: xl64, width: 64"]N203WN[/TD]
[TD="class: xl70, width: 64"]32146[/TD]
[TD="class: xl69, width: 64"]18749[/TD]
[TD="class: xl65"]N203WN[/TD]
[TD="class: xl70, width: 64"]32410[/TD]
[TD="class: xl69, width: 64"]18911[/TD]
[TD="class: xl65"]N203WN[/TD]
[/TR]
[TR]
[TD="class: xl64, width: 64"]N204WN[/TD]
[TD="class: xl70, width: 64"]32279[/TD]
[TD="class: xl69, width: 64"]18645[/TD]
[TD="class: xl65"]N204WN[/TD]
[TD="class: xl70, width: 64"]32544[/TD]
[TD="class: xl69, width: 64"]18809[/TD]
[TD="class: xl65"]N204WN[/TD]
[/TR]
[TR]
[TD="class: xl64, width: 64"]N205WN[/TD]
[TD="class: xl70, width: 64"]31987[/TD]
[TD="class: xl69, width: 64"]18686[/TD]
[TD="class: xl65"]N205WN[/TD]
[TD="class: xl70, width: 64"]32251[/TD]
[TD="class: xl69, width: 64"]18845[/TD]
[TD="class: xl65"]N205WN[/TD]
[/TR]
</tbody>[/TABLE]

Note: This is just a small example, most tail numbers do not remain in the same rows such as this.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Welcome to the forum.

Are you copying the formula? Can it be the $ missing on the D3?
 
Upvote 0
Hello, and thanks for the welcome!

I have already formatted everything as general and no I am not copying the formula at this time. I plan to, but I am getting this error after writing the first entry.
 
Last edited:
Upvote 0
I don't see anything wrong with your formula. I tested it in a seperate spreadsheet and it was fine. The only reason it would show the formula text is if you have forgotten to put an equals sign in or the formula was in quotation marks. It works even when columns F and C are text types. What is in AM3?
 
Upvote 0
So I found my problem... The value I was using as my criteria had not yet appeared in my range. :mad: Once I moved the formula to a month that it had appeared it worked perfectly. Dangit! Sorry for not realizing sooner. Thanks for the help though!
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,326
Members
452,635
Latest member
laura12345

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