SUMIFS breaking when entering data in a non-referenced field

Decryptix

New Member
Joined
Feb 9, 2022
Messages
12
Office Version
  1. 365
  2. 2016
  3. 2013
Platform
  1. Windows
Good morning,

New issue I've run into while doing some QA on a calculator.

The SUMIFS formula I'm using works for one row, then not the next, sporadically... nothing but the criteria has changed. I've verified the following:
  1. No extra spaces before or after
  2. No references to cells outside of what needs to be referenced
  3. No differentiation in formatting of cells.
  4. Dragged the formula from the working row at the top, down.
  5. All referenced tables/lists are formatted the same with no extra spaces/numbers.
Excel Formula:
=IF(E2="","",(SUMIFS(Table8[Rate],Table8[Grade],D2,Table8[Spec],E2,Table8[PI],O2)))

Here's a link to the sheet: New Calc - Engineers (Compatible).xlsx

It's starting to drive me a bit batty. I've re-written that same formula a dozen different ways, but even using nested IF/AND statements or Aggregate statements run into the same issue. I've looked over the lists the information is pulled from, and see no issues that would for the problem to occur.

Some information seems to cause the issue, which led me to believe it was the information itself, but when verifying the table data it is correct...

I appreciate the assistance once more!
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Which cells are wrong?
I suppose that information would be helpful, sorry about that! In the version I've uploaded, specifically P3, P10,P11,P15,P18. The New Rate col (P) should never be 0.00 unless the key information (Grade, and Spec) are empty.

The new rate col (P)is where the error occurs and I can't pin down what's causing it, as I can't get it to consistently return an error. Sometimes it will not populate a rate, other times it will work for two of the three specialties, but not the third, or vice versa.
 
Upvote 0
Thanks for that.
The problem is Col M are not whole numbers & so when col O pulls the max of M & N it isn't a whole number & so the sumifs cant find a match for O2.
Try changing col M to
Excel Formula:
=IF(C2="","",IF(YEARFRAC(C2,"31-Mar-21")-1<=0,0,ROUND((YEARFRAC(C2,"31-Mar-21")-1),0)))
 
Upvote 0
Solution
Try changing col M to
Excel Formula:
=IF(C2="","",IF(YEARFRAC(C2,"31-Mar-21")-1<=0,0,ROUND((YEARFRAC(C2,"31-Mar-21")-1),0)))
That seems to have fixed it! One final question before I mark it as solved - should I use ROUND for the first YEARFRAC as well? Or is it because that only handles it if it's less than 0, or makes it 0 that we don't need to have it there?

Thanks again! You're an absolute ninja!
 
Upvote 0
You could, depends on what you want/need.
I'll keep that in mind, if I notice things not lining up I'll be sure to give it a go. Thanks again, I appreciate the assistance. Clearly there's a lot more I need to take the time to learn about Excel.
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,926
Messages
6,122,306
Members
449,079
Latest member
juggernaut24

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