Sum formula

Av8tordude

Well-known Member
Joined
Oct 13, 2007
Messages
1,074
Office Version
  1. 2019
Platform
  1. Windows
I'm seeking help with a formula that will can sum the Blue box values base on the current year.

Example: From Aug 31 - Dec 31 totals: 17065.79. The values after Dec 31 should not be included in the sum. The dates in the red boxes are dynamic and will adjust as the current month passes. Example Aug 31 will display Sep 30 when September arrives.

1661733309566.png
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Maybe:

Book1
ABCDEFGHI
18/31/20229/30/202210/31/202211/30/202212/31/20221/31/20232/28/20233/31/20234/30/2023
2
3
4
5
6-863.03-1386.377892.155065.526357.526357.526357.526357.526357.52
7
8
917065.79
Sheet4
Cell Formulas
RangeFormula
A9A9=SUMPRODUCT(A6:I6,--(YEAR(A1:I1)=YEAR(TODAY())))
 
Upvote 0
Solution
I'm seeking help with a formula that will can sum the Blue box values base on the current year.

Example: From Aug 31 - Dec 31 totals: 17065.79. The values after Dec 31 should not be included in the sum. The dates in the red boxes are dynamic and will adjust as the current month passes. Example Aug 31 will display Sep 30 when September arrives.

View attachment 72670
Try this - Assuming Date is in Cell A1 & Blue Cells start Cell F1

Excel Formula:
=SUMIFS(F1:F9,A$1,">="&Date(Year($A$1),1,1),A$1,"<="&Date(Year($A$1),12,31))
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,243
Members
449,075
Latest member
staticfluids

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