Calculate revenue from list of dates

trent172

New Member
Joined
Jun 4, 2012
Messages
15
Hi,

Using Microsoft Excel for Mac 2021 v16

I am looking to build a simple calculator that can review a list of bookings and calculate the revenue between two dates I select.

Here is the source table:
Screenshot 2023-10-28 at 9.06.06 PM.png


And here is the calculator I want to calculate total revenue in B14 (from accommodation revenue > column D in source table above) between any two dates I select:
Screenshot 2023-10-28 at 9.08.24 PM.png


Any formula help you could share would be greatly appreciated.

Thanks
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Please reload your data using XL2BB. We cannot manipulate data in a picture.
 
Upvote 0
Couldn't get XL2BB to work. Here is the table copy:


ArrivalDepartureNightsAccomm
12/10/2325/10/23
14​
$700​
26-10-238/11/23
14​
$700​
10/9/2323-9-23
14​
$500​
24-9-237/10/23
14​
$500​
8/10/2321/10/23
14​
$500​
8/9/2315/9/23
7​
$400​
16/9/2322/9/23
7​
$400​
Revenue Calculator
From:23-9-23
To:29-9-23
Total revenue:
 
Upvote 0
Ensure Column D has actual numbers and not text.

Sumifs.xlsm
ABCD
1
2ArrivalDepartureNightsAccomm
38-Sep-2315-Sep-237400
410-Sep-2323-Sep-2314500
516-Sep-2322-Sep-237400
624-Sep-237-Oct-2314500
78-Oct-2321-Oct-2314500
812-Oct-2325-Oct-2314700
926-Oct-238-Nov-2314700
10
11
12Revenue Calculator
13From:23-Sep-23
14To:29-Sep-23
15Amount500
7a
Cell Formulas
RangeFormula
B15B15=SUMIFS(D3:D9,B3:B9,">="&B13,B3:B9,"<="&B14)
 
Upvote 0
Ensure Column D has actual numbers and not text.

Sumifs.xlsm
ABCD
1
2ArrivalDepartureNightsAccomm
38-Sep-2315-Sep-237400
410-Sep-2323-Sep-2314500
516-Sep-2322-Sep-237400
624-Sep-237-Oct-2314500
78-Oct-2321-Oct-2314500
812-Oct-2325-Oct-2314700
926-Oct-238-Nov-2314700
10
11
12Revenue Calculator
13From:23-Sep-23
14To:29-Sep-23
15Amount500
7a
Cell Formulas
RangeFormula
B15B15=SUMIFS(D3:D9,B3:B9,">="&B13,B3:B9,"<="&B14)
Thanks Dave for this.

Can the formula calculate "between" dates?

For example if I want revenue between 8-Sep to 9-Sep, it would need to divide that first booking's revenue in the table above and calculate a total revenue of $114.29
 
Upvote 0

Forum statistics

Threads
1,215,092
Messages
6,123,064
Members
449,090
Latest member
fragment

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