HELP CALCULATING PRO RATA AMOUNT BETWEEN DATE RANGES

B3ady

New Member
Joined
Apr 10, 2022
Messages
1
Office Version
  1. 365
Platform
  1. MacOS
Hey all,

Looking for some help with the below data set.

I'm looking to calculate a pro rata amount for the impression delivery in Column C, showing what it would deliver between the date ranges in Rows 1 and 2, using the start and end dates in Columns A and B. Have marked an x where the data would go for the example dates

This is assuming the impressions would be served at an equal daily delivery.

Any help would be greatly appreciated!

Cheers!


1649622936255.png
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hi,

Assuming the days for ranges are Not End Date inclusive (e.g. 4/21/2022 to 5/4/2022 is 13 days), otherwise formula can be adjusted to suit.
Also assuming you Don't want decimal/fraction results, otherwise Remove or Change the ROUND function to suit:

Book3.xlsx
ABCDEFGHI
14/11/20224/18/20224/25/20225/2/20225/9/20225/16/2022
24/17/20224/24/20225/1/20225/8/20225/15/20225/22/2022
3
44/21/20225/4/2022945609029095750917414547800
54/25/20225/4/2022328423700255440772983000
64/25/20225/4/2022423423400329329394094100
Sheet1094
Cell Formulas
RangeFormula
D4:I6D4=ROUND(MAX(0,MIN(E$1,$B4)-MAX($A4,D$1))*$C4/($B4-$A4),0)
 
Upvote 0

Forum statistics

Threads
1,215,480
Messages
6,125,047
Members
449,206
Latest member
Healthydogs

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