inactiveUser462638
New Member
- Joined
- Jun 13, 2020
- Messages
- 13
- Office Version
- 2016
- Platform
- Windows
Hello Excel Champs!
Please help me to find the right formula for calculating the cost/month/day based on a range.
I have data like that:
And I have to generate in a new sheet the cost/month based on a date range and to check if this is an Inflow or an Outflow:
So I have to generate into the January column the total amount of Inflow items/Outflow Items on that month but because I have a Starting Date and an End Date I have to split the amount/day for each item and then to sum the others Inflow/Outflow items that are in the January month (01/01/2020-31/01/2020).
Do you have any idea how I can calculate that?
Thank you!
Please help me to find the right formula for calculating the cost/month/day based on a range.
I have data like that:
P&L.xlsx | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | Inflow/Outflow | Element Type | Element Description | Starting date | End Date | Vendor / Customer | Gross Amount | Paying Entity | ||
2 | Outflow | HR Cost | Phil | 27-Jan | 16-Aug | Bob | 100.00 | … | ||
3 | Inflow | BAU | GB | 15/09/2019 | 15/02/2020 | GB | 25 | … | ||
4 | Inflow | BAU | GB2 | 11/09/2019 | 15/01/2020 | GB | 1500 | …. | ||
P&L Elements |
And I have to generate in a new sheet the cost/month based on a date range and to check if this is an Inflow or an Outflow:
P&L.xlsx | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | |||
2 | P&L Overview | January | February | March | April | May | June | July | August | September | October | November | December | January2 | February3 | ||
3 | Inflow | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||
4 | Outflow | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||
5 | Gross Profit | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||
P&L Report |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B3:O3 | B3 | =SUMIFS('P&L Elements'!$G:$G,'P&L Elements'!$A:$A,"Inflow",'P&L Elements'!$D:$D,'P&L Report'!B2) |
B4:O4 | B4 | =SUMIFS('P&L Elements'!$G:$G,'P&L Elements'!$A:$A,"Outflow",'P&L Elements'!$D:$D,'P&L Report'!B2) |
B5:O5 | B5 | =B3-B4 |
So I have to generate into the January column the total amount of Inflow items/Outflow Items on that month but because I have a Starting Date and an End Date I have to split the amount/day for each item and then to sum the others Inflow/Outflow items that are in the January month (01/01/2020-31/01/2020).
Do you have any idea how I can calculate that?
Thank you!
Last edited by a moderator: