Execute formula if date range is between 2 cells

Drwats0n

New Member
Joined
Dec 10, 2015
Messages
46
Hey guys. what do i add in this formula if i want to execute this formula below if date range is between C2 and D2

C2 = 1 March 22
D2 = 31 March 22

=SUM(IFS(Summary!C424:C454<Summary!C$468,(Summary!C424:C454*0.6%)/360,Summary!C424:C454>Summary!C$468,(Summary!C$468*0.6%/360+(Summary!C424:C454-Summary!C468)*0.8%/360)))
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
=IF(and(C2>=44621,D2<=44651,SUM(IFS(Summary!C424:C454<Summary!C$468,(Summary!C424:C454*0.6%)/360,Summary!C424:C454>Summary!C$468,(Summary!C$468*0.6%/360+(Summary!C424:C454-Summary!C468)*0.8%/360))),"")
 
Upvote 0
I don't think the previous formula will work for you, if you are trying to check the dates that are located in column A, like in your previous question here: Replace criteria range in countifs to be based on 2 cells date

The question really is where are the date(s) that you are trying to compare to the dates in cell C2 and D2?

I would find it more helpful if you showed us what your data looks like, and just tell us what you are trying to return?
 
Upvote 0
Hi Joe, thanks for the reply again. similar to my previous question, i want to avoid manually changing the dates column in the formula whenever i have new dates added to the row.
I want the existing formula to calculate the interest cost between start and end March by only updating C2 and D2. Thank you for looking.
 

Attachments

  • Formula 1.PNG
    Formula 1.PNG
    20.3 KB · Views: 4
  • Formula 2.PNG
    Formula 2.PNG
    16.5 KB · Views: 5
Upvote 0

Forum statistics

Threads
1,215,344
Messages
6,124,407
Members
449,157
Latest member
mytux

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