+15 days in sum if criteria?

Houstonking

New Member
Joined
Jul 12, 2016
Messages
41
Hello i am trying to do sum if using some dates in a table. But the sumif criteria should be that date + 15 days.

eg i am using currently - SUMIF($B$1:$LF$1,LN2,B2:LF2)

$B$1:$LF$1 - has calender days
B2:LF2 - has values

LN2 has different dates.
i want to add 15 days from LN2 date to do sum.


Need help.Thanks
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
ah OK, then you need to use sumifS()

=SUMIFs($B$2:$LF$2, $B$1:$LF$1,">="&LN2,$B$1:$LF$1,"<="&LN2+15)

This works for excel 2010 onwards
 
Upvote 0
yup - got a part from there and edited it and then took your part and got my solution perfect - thanks for your help and love mrexcel.com
 
Upvote 0

Forum statistics

Threads
1,214,905
Messages
6,122,172
Members
449,071
Latest member
cdnMech

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