Formula for last 6 months data and future 6 months

krk1002

New Member
Joined
Jul 24, 2018
Messages
1
smDDTZ1
Looking for a formula in B4 to
give total of values in Row 4 for past 6 months and future 6 months
using current date in A1 and months in Row 3.
Given today's date, that would mean Q4:AB4.

https://imgur.com/a/smDDTZ1
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Try the below formula ... Adjust the range as per your file format C3:AV3

=SUMIFS(C4:AV4,C3:AV3,">="&EDATE(A1,-6),C3:AV3,"<="&EDATE(A1,6))
 
Upvote 0

Excel 2010
ABPQRSTUVWXYZAAABAC
17/24/2018
2Total
3Month1/1/20182/1/20183/1/20184/1/20185/1/20186/1/20187/1/20188/1/20189/1/201810/1/201811/1/201812/1/20181/1/20192/1/2019
4Value2375375100100200300225150375100100200300225150
Sheet7
Cell Formulas
RangeFormula
B4=SUMIFS($P$4:$AC$4,$P$3:$AC$3,">="&EOMONTH($A$1,-6)+1,P$3:$AC$3,"<="&EOMONTH($A$1,6))
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,242
Members
452,623
Latest member
russelllowellpercy

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