sumifs & index & match

BeckyLH88

New Member
Joined
Aug 8, 2022
Messages
23
Office Version
  1. 365
Platform
  1. Web
Hello everyone,

I've been staring at this for a long while now. I have been using this formula:

=SUMIFS(INDEX(Budget!$E$4:$P$41,0,MATCH($B$4,Budget!$E$1:$P$1,0)),Budget!$B$4:$B$41,$C7)

Where B4 = the date.

E4 to P41 = the data range to sum
E1 to P1 = dates by end of month date
B4 to B41 = account code

This formula is fine, if I am just looking at the current month; but I cannot work out in this formula how I can include prior months to give me a YTD total, for example July & August. At the moment this formula just gives me August.

I appreciate any help please :D

Many thanks!
 
As this is now a different question, it needs a new thread. Thanks
 
Upvote 0

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Thank you, I've cracked it. Thank you so much for your help. I'd have been staring at it for a few weeks!
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,652
Messages
6,120,746
Members
448,989
Latest member
mariah3

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