Sumifs

Vegas01

New Member
Joined
Jun 15, 2021
Messages
43
Office Version
  1. 2019
Platform
  1. Windows
Hi everyone

I have 12 months, Trying to work out YTD based on a number of other critera below is what I currently have which is returning #value

=SUMIFS('BUDGET FY23 GP'!$Q$5:$AB$67,'BUDGET FY23 GP'!$AE:$AE,$B6,'BUDGET FY23 GP'!$Q$1:$AB$1,"<="&'ACTUAL P&L FY23'!$AF$1)

Q5:AB67 are the amounts that need to be added up
AE:AE - is the first reference that is being looked up
Q1:AB1 - are the months - number 1 -12
AF1 = 3

I am trying to get the formula to add up the first 3 colums

Row 2 should = 37,350
Row 4 should = 33,000
Row 6 should = 75,000
1652149385376.png



Thanks in advance
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
You can get YTD row totals like this:

ABCDEFGHI
1Month
2YTD to month312345 ....
3
4102357
54111131719
68323293137
7
Tables
Cell Formulas
RangeFormula
C4:C6C4=SUMPRODUCT(E4:I4,--(E$2:I$2<=C$2))

It's not clear what the other condition in your SUMIFS is doing?
 
Upvote 0
Stephen that works on for a individual line but as I have a table of data, the formula needs to pick up the other criteria which was what the other condition is doing the Sumif

Thanks
 
Upvote 0
It's easy to add more conditions .... but we'll need more information.

Bear in mind you've posted a limited screenshot as a picture, hence we have no idea what's in 'BUDGET FY23 GP'!$AE:$AE or $B6, or how these cells relate to what you've posted.
 
Upvote 0
Here's one way:

ABCDEFGHIJKLMN
1123456789101112
2Feb 22Mar 22Apr 22May 22Jun 22Jul 22Aug 22Sep 22Oct 22Nov 22Dec 22Jan 23TotalCriteria
325788Co
411105922GS
527289Co
678822GS
7
8Period3
9
10Co25
11GS193
Sheet1
Cell Formulas
RangeFormula
B10:B11B10=SUM((A$1:L$1<=B$8)*(N$3:N$6=A10)*A$3:L$6)
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,588
Members
449,089
Latest member
Motoracer88

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