MIN&MAX works for 18/19 but not 19/20

DLAN

New Member
Joined
Jun 19, 2020
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I have a spreadsheet that for each item calculates the number of days that fall within the financial year and then the cost that would relate to it.

The formula is:
=I10*((MAX(MIN($Q$1,H10)-MAX($P$1,G10)+1,0))/365)

Where:-
P1: first date in the current financial year being reported - 01/04/2019
Q1: last date in the current financial year being reported - 31/03/2020

Column G: Commencement date of contract
Column H: Termination date of contract
Column I: Annual Rent

The annoying thing is that this worked for 18/19 and it works for 20/21 but I just can't figure out why it won't work for 19/20. It seems to be counting an extra day but I don't understand why or what to do. Any help would really be appreciated. Thanks.
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Welcome to the Board!
I just can't figure out why it won't work for 19/20. It seems to be counting an extra day but I don't understand why
Because 2020 has 366 days, not 365 (it is a Leap Year).
So for the 19/20 year, you may need to change the "365" in your formula to "366".
 
Upvote 0

Forum statistics

Threads
1,215,013
Messages
6,122,690
Members
449,092
Latest member
snoom82

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