SUMIFS formula returning 0

Zazzy44

New Member
Joined
Nov 19, 2020
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am using the formula =SUMIFS(POs!O2:O18,POs!I2:I18,FW!B6,POs!F2:F18,FW!B3) to try to total costs by month by budget code in a finance spreadsheet. As far as I am concerned there are totals in the range POs!O2:O18 that match the criteria, but the formula is just returning 0 and it's driving me nuts! What am I doing wrong? Screenshots of the 2 tabs below...
1605779923647.png

& here's the tab it's pulling from with the rows I think should be being picked up highlighted...
1605780183185.png


Thank you in advance!!
 

Attachments

  • 1605780032406.png
    1605780032406.png
    127.3 KB · Views: 15
  • 1605780126920.png
    1605780126920.png
    139.8 KB · Views: 16

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Welcome to the MrExcel board!

Very hard to tell from a picture. Suggest you investigate XL2BB for providing sample data to make it easier for helpers by not having to manually type out sample data to test with & ensure we have the same data you have.

However, a couple of possible culprits
- Trailing (or leading) spaces in cells that appear the same.
- Month names could be text in one place and date (number) formatted to only show month in another place
 
Upvote 0
See if this what you want
Excel Formula:
=SUMIFS(POs!$O$2:$O$18,POs!$I$2:$I$18,$B$2:$B$18,POs!$P$2:$P$18,$B$3)
 
Upvote 0
Thanks, I've installed XL2BB and this is what it's giving me. There are no spaces, the months are formatted as text & adding $ signs just caused something weird to happen...

Example PO tracker.xlsx
K
7
POs
 
Upvote 0
I've installed XL2BB and this is what it's giving me.
You need to select the range you want to display before you click 'Capture Range'

.. and we will probably need to see the extract from each of the two sheets, not just one.
 
Upvote 0
Sorry, can't work out to select both sheets at once. This is the sheet containing the formula
Example PO tracker.xlsx
BCDEF
2
3FWMonth BudgetActual SpendVariance #Variance %
4October
5November
6December0
7January
8February
9March
10April
11May
12June
13July
14August
15September
16Totals
17
FW
Cell Formulas
RangeFormula
D6D6=SUMIFS(POs!O2:O18,POs!I2:I18,FW!B6,POs!F2:F18,FW!B3)


And this is where it's pulling from
Example PO tracker.xlsx
ABCDEFGHIJKLMNOP
1ProductSupplierItem DescriptionQuantityDate RequiredActivity CodePO RaisedPO ApprovedTo Be GRNdGRN'DPO Raised ByPO Approved ByBudgeted AmountActual Cost Excluding VATActual Cost Including VATPO Number
2Lottery119/10/2020BO07/09/202008/09/2020£ -£ 8,388.52£ 10,066.221500/3417930
3Lottery116/11/2020BO16/11/202016/11/2020£ -£ 737.24£ 884.691500/3421441
4Lottery116/11/2020BO16/11/202016/11/2020£ -£ 4,687.50£ 5,625.001500/3421440
5Lottery112/11/2020BO12/11/202012/11/2020£ -£ 490.00£ 588.001500/3421279
6Lottery112/11/2020FW11/11/202012/11/2020December£ 53,865.00£ 5,497.43£ 6,596.921500/3421277
7Lottery102/11/2020BO02/11/202004/11/2020£ -£ 55,500.00£ 66,600.001500/3420992
8Lottery106/11/2020FW02/11/202006/11/2020December£ 5,494.59£ 1,223.83£ 1,468.601500/3420991
9Lottery115/11/2020FW02/11/202006/11/2020December£ 380,795.43£ 264,441.27£ 317,329.521500/3420988
10Lottery126/10/2020BO26/10/202026/10/2020£ -£ 1,187.50£ 1,425.001500/3420353
11Lottery101/02/2021FW20/10/202022/10/2020£ 9,405.00£ 6,887.50£ 8,265.001500/3420198
12Poppy Supporter111/11/2020BS12/10/202014/10/2020£ -£ 3,309.99£ 3,971.991500/3419806
13Lottery119/10/2020BO12/10/202014/10/2020£ -£ 23,571.67£ 28,286.001500/3419774
14Poppy Supporter111/11/2020BS27/08/202027/08/2020£ -£ 2,850.00£ 3,420.001500/3417477
15Poppy Supporter107/09/2020BS07/09/202007/09/2020£ -£ 3,830.00£ 4,596.001500/3417906
16Lottery101/10/2020BO26/08/202027/08/2020£ -£ 1,037.00£ 1,244.001500/3417505
17Regular Giving111/11/202026/08/202027/08/2020£ -£ 3,830.00£ 4,596.001500/3417479
18Lottery101/09/2020BO25/08/202025/08/2020£ -£ 1,500.00£ 1,800.001500/3417366
POs
Cell Formulas
RangeFormula
N3:N6,N8:N13N3=O3/1.2
O7O7=N7*1.2


did that work?
 
Upvote 0
did that work?
It did, thanks. (y)

I copied your sheets to a blank workbook (using the BB2XL copy button:
1605784647307.png

& the formula returned the correct result of 325395.04

Does anything change if you select that cell then press F2 and then Enter?
Check that your calculation is not set to manual (File - Options - Formulas)
Check the cell formatting of that formula cell in case there is something unusual

As an aside, it is not a good idea to use the sheet name for cells that are actually on the sheet the formula is in. It should be relating to this current problem but can cause problems if data is to be sorted. so I would change to

Excel Formula:
=SUMIFS(POs!O2:O18,POs!I2:I18,B6,POs!F2:F18,B3)

or, if you are going to be copying the formula up/down that column you need to add a few $ signs.
Excel Formula:
=SUMIFS(POs!O$2:O$18,POs!I$2:I$18,B6,POs!F$2:F$18,B$3)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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