sumifs returning 0 instead of value

Mr2017

Well-known Member
Joined
Nov 28, 2016
Messages
644
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi

I'm trying to write a SUMIFS formula that returns the Quantity total of the ItemSKU numbers in the 10000 range in the data below.

The data starts in cell A4 ie CustomerID is in cell A4 and UnitPrice is in cell D4.

I've tried two different formulae, but neither of them worked.

Does anyone know how I should amend the formula, please?

Version 1 of the formula I wrote was =SUMIFS($C$5:$C$24,$B$5:$B$24,">=10000,<=20000")

And version 2 was =SUMIFS($C$5:$C$24,$B$5:$B$24,">=10000"&"<=20000")

Thanks in advance!

[TABLE="width: 412"]
<colgroup><col span="4"></colgroup><tbody>[TR]
[TD]CustomerID[/TD]
[TD]ItemSKU[/TD]
[TD]Quantity[/TD]
[TD]UnitPrice[/TD]
[/TR]
[TR]
[TD]8725801[/TD]
[TD]12345[/TD]
[TD]100[/TD]
[TD]10.5[/TD]
[/TR]
[TR]
[TD]8825268[/TD]
[TD]23456[/TD]
[TD]22[/TD]
[TD]2.5[/TD]
[/TR]
[TR]
[TD]8048929[/TD]
[TD]58910[/TD]
[TD]93[/TD]
[TD]17.5[/TD]
[/TR]
[TR]
[TD]8032245[/TD]
[TD]11121[/TD]
[TD]21[/TD]
[TD]22.5[/TD]
[/TR]
[TR]
[TD]8147770[/TD]
[TD]31415[/TD]
[TD]12[/TD]
[TD]17.5[/TD]
[/TR]
[TR]
[TD]8836323[/TD]
[TD]16171[/TD]
[TD]16[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]8286399[/TD]
[TD]81920[/TD]
[TD]40[/TD]
[TD]8.75[/TD]
[/TR]
[TR]
[TD]8243640[/TD]
[TD]21222[/TD]
[TD]21[/TD]
[TD]21.89[/TD]
[/TR]
[TR]
[TD]8200881[/TD]
[TD]32425[/TD]
[TD]1[/TD]
[TD]2.0[/TD]
[/TR]
[TR]
[TD]8158122[/TD]
[TD]26272[/TD]
[TD]6[/TD]
[TD]89.0[/TD]
[/TR]
[TR]
[TD]8115363[/TD]
[TD]82930[/TD]
[TD]4[/TD]
[TD]50.0[/TD]
[/TR]
[TR]
[TD]8072604[/TD]
[TD]31323[/TD]
[TD]33[/TD]
[TD]38.3[/TD]
[/TR]
[TR]
[TD]8029845[/TD]
[TD]33435[/TD]
[TD]0[/TD]
[TD]50.8[/TD]
[/TR]
[TR]
[TD]7987086[/TD]
[TD]36373[/TD]
[TD]10[/TD]
[TD]54.7[/TD]
[/TR]
[TR]
[TD]7944327[/TD]
[TD]83940[/TD]
[TD]0[/TD]
[TD]58.7[/TD]
[/TR]
[TR]
[TD]7901567[/TD]
[TD]41424[/TD]
[TD]21[/TD]
[TD]62.7[/TD]
[/TR]
[TR]
[TD]7858808[/TD]
[TD]34445[/TD]
[TD]26[/TD]
[TD]66.6[/TD]
[/TR]
[TR]
[TD]7816049[/TD]
[TD]46474[/TD]
[TD]0[/TD]
[TD]70.6[/TD]
[/TR]
[TR]
[TD]7773290[/TD]
[TD]84950[/TD]
[TD]37[/TD]
[TD]74.5[/TD]
[/TR]
[TR]
[TD]7730531[/TD]
[TD]51525[/TD]
[TD]0[/TD]
[TD]78.5[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Hi,

The syntax for the SUMIFS should be:


Book1
ABCDEF
4CustomerIDItemSKUQuantityUnitPrice
587258011234510010.5137
6882526823456222.5
78048929589109317.5
88032245111212122.5
98147770314151217.5
108836323161711620
11828639981920408.75
128243640212222121.89
1382008813242512
14815812226272689
15811536382930450
168072604313233338.3
17802984533435050.8
187987086363731054.7
19794432783940058.7
207901567414242162.7
217858808344452666.6
22781604946474070.6
237773290849503774.5
24773053151525078.5
Sheet474
Cell Formulas
RangeFormula
F5=SUMIFS($C$5:$C$24,$B$5:$B$24,">=10000",$B$5:$B$24,"<=20000")
 
Upvote 0
Ok, that's great - that worked! Thank you jtakw!
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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