MAX/MIN to calculate depending on date range

Eyeope

New Member
Joined
Jan 3, 2017
Messages
11
Spreadsheet link here: https://we.tl/nHJdWgsgx6


I have a spreadsheet where I divide revenue depending on the start and end date, and it will divide revenue by the number of days of the order (from COLUMN S TO COLUMN JO).


It gets very heavy once I have 10,000+ orders and 750+ days.


Is there a way to structure it by month instead, so instead of Column S being 2016-11-01, Column S would be November, and Column T would be December etc.


I've attached my spreadsheet with my logic and formula: =MAX(0,MIN(S$3,$O4)-MAX(S$3,$N4)+1)*$K4/$P4


Many Thanks,


Eyeope
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Forum statistics

Threads
1,191,686
Messages
5,988,067
Members
440,125
Latest member
vincentchu2369

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
Top