Monthly totals from list with date ranges

adamlucasmiller

New Member
Joined
Aug 28, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a list of bookings from accounts and would like to select a month, year, and account name (B2, B3, B4) and see the total revenue from that account for the selected month/year in D2. What is the best way to go about this?

Sample spreadsheet link: Test Spreadsheet
 

Attachments

  • Screenshot 2023-08-28 113317.png
    Screenshot 2023-08-28 113317.png
    41.7 KB · Views: 12

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Does this give you the totals you need?
I based the SUMIFS total on the calculated end of month date. So, the "income" for the first month of the start to end date will show the income for that month, but it will be zero for the last month.
for example: for your provided data
3/2022 totals will include $1998 for the first and following months, but
the totals for 3/2023 will exclude $1998 for unit 115 (since it was reported in 3/2022). I assumed you do not want to count the rent twice.
Anyway, test this an see it gives you the totals you need.
The formula includes the case for "All" being selected.

RentTotals.xlsx
ABCDEFGHIJ
1
2Month3Revenue
3Year2024Room Nights
4AccountBindelUnits
5Annual Total$5,778.00
6
7
8
9
10
11
12
13Sentral AgentAccountUnit NumberProductDate BookedStart Date of BookingEnd Date of BookingMTM After Lease End?Average Daily RateMonthly Rent
14Bindel115LIVE UF3/21/20223/20/2023$66.60$1,998.00
15Bindel231LIVE UF12/30/20224/29/2024$63.00$1,890.00
16Bindel102LIVE UF3/21/20227/16/2024$66.60$1,998.00
17Bindel520LIVE UF12/30/20224/29/2024$63.00$1,890.00
18AMBCD Travel218LIVE UF7/24/20238/24/2023$88.00$2,640.00
19AMNCH419DF8/3/20239/3/2023$146.67$4,400.00
20AMNCH217DF8/3/20239/3/2023$146.67$4,400.00
21AMNCH113DF8/3/20239/3/2023$146.67$4,400.00
Sheet1
Cell Formulas
RangeFormula
B5B5=IF(B4="All",SUMIFS(J14:J1000,F14:F1000,"<="&EOMONTH(DATE(B3,B2,1),0),G14:G1000,">="&EOMONTH(DATE(B3,B2,1),0)),SUMIFS(J14:J1000,B14:B1000,"="&B4,F14:F1000,"<="&EOMONTH(DATE(B3,B2,1),0),G14:G1000,">="&EOMONTH(DATE(B3,B2,1),0)))
Cells with Data Validation
CellAllowCriteria
B2ListAll,1,2,3,4,5,6,7,8,9,10,11,12
B3ListAll,2021,2022,2023,2024,2025,2026,2027,2028
B4ListBindel,BCH Travel,NCH,All
 
Upvote 0

Forum statistics

Threads
1,215,148
Messages
6,123,301
Members
449,095
Latest member
Chestertim

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