sumifs not equal to; not working for QUERIED (table) data

Runningeng

New Member
Joined
Jan 4, 2018
Messages
2
I have some excel queries that return 11-digit numbers, but since they are part of a query, they come back as text. In my sumifs command, I want to avoid all of the data that has a certain 11-digit number. Thoughts?

SUMIFS(Inputs[Cost],Inputs[Row_Insert_Date],">="&Pivots!$D$3,Inputs[Row_Insert_Date],"<"&Pivots!$D$4,Inputs[11-digit],"<>"&99600000089)

Thanks!
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Hi, welcome to the forum! I think you'll need to switch to an alternative to the SUMIFS() - here is one option.

Code:
=SUMPRODUCT(Inputs[Cost],--(Inputs[Row_Insert_Date]>=Pivots!$D$3),--(Inputs[Row_Insert_Date]<Pivots!$D$4),--(Inputs[11-digit]<>"99600000089"))
 
Upvote 0
Hi, welcome to the forum! I think you'll need to switch to an alternative to the SUMIFS() - here is one option.

Code:
=SUMPRODUCT(Inputs[Cost],--(Inputs[Row_Insert_Date]>=Pivots!$D$3),--(Inputs[Row_Insert_Date]
"99600000089"))

That worked great! But why? I've used sumproduct, but not like this. What does the "--" in from of each component mean?

Thank you for your quick response!
 
Upvote 0

Forum statistics

Threads
1,215,143
Messages
6,123,277
Members
449,093
Latest member
Vincent Khandagale

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