Total Revenue according certain periods

ricafonyat

New Member
Joined
May 1, 2017
Messages
29
Office Version
  1. 365
Platform
  1. Windows
Dear friends,

Let me know if you can help me with this problem:

My objective is to calculate the total monthly revenue in cells H2:S2 (yellow) respecting the start and end dates.


ItemPriceQtyBeginning DateEnding DateJan - 2025Feb - 2025Mar - 2025Apr - 2025May - 2025Jun - 2025Jul - 2025Aug - 2025Sep - 2025Oct - 2025Nov - 2025Dec - 2025
Banana60,001Jan - 2025May - 2025Total Revenue =>60,00100,0060,0060,0060,0018,0043,0043,0025,0035,0035,000,00
Apple40,001Feb - 2025Feb - 2025
Grape18,001Jun - 2025Aug - 2025Banana60,0060,0060,0060,0060,00
Orange25,001Jul - 2025Sep - 2025Apple40,00
pineapple 35,001Oct - 2025Nov - 2025Grape18,0018,0018,00
Orange25,0025,0025,00
pineapple 35,0035,00


Thanks in advance!
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
How about
Excel Formula:
=SUMIFS($B:$B,$D:$D,"<="&EOMONTH(H1,-1)+1,$E:$E,">="&EOMONTH(H1,-1)+1)
 
Upvote 1
Try this:

Book1
ABCDEFGHIJKLMNOPQRS
1ItemPriceQtyBeginning DateEnding DateJan-2025Feb-2025Mar-2025Apr-2025May-2025Jun-2025Jul-2025Aug-2025Sep-2025Oct-2025Nov-2025Dec-2025
2Banana601Jan-2025May-2025Total Revenue =>601006060601843432535350
3Apple401Feb-2025Feb-2025
4Grape181Jun-2025Aug-2025Banana6060606060
5Orange251Jul-2025Sep-2025Apple40
6pineapple 351Oct-2025Nov-2025Grape181818
7Orange252525
8pineapple 3535
Sheet1
Cell Formulas
RangeFormula
H2:S2H2=SUMIFS($B$2:$B$6,$D$2:$D$6,"<="&H1,$E$2:$E$6,">"&EOMONTH(H1,-1))
 
Upvote 1
Try this:

Book1
ABCDEFGHIJKLMNOPQRS
1ItemPriceQtyBeginning DateEnding DateJan-2025Feb-2025Mar-2025Apr-2025May-2025Jun-2025Jul-2025Aug-2025Sep-2025Oct-2025Nov-2025Dec-2025
2Banana601Jan-2025May-2025Total Revenue =>601006060601843432535350
3Apple401Feb-2025Feb-2025
4Grape181Jun-2025Aug-2025Banana6060606060
5Orange251Jul-2025Sep-2025Apple40
6pineapple 351Oct-2025Nov-2025Grape181818
7Orange252525
8pineapple 3535
Sheet1
Cell Formulas
RangeFormula
H2:S2H2=SUMIFS($B$2:$B$6,$D$2:$D$6,"<="&H1,$E$2:$E$6,">"&EOMONTH(H1,-1))

It's almost 100% ok.
However, we have to consider the quantities entered in column C in the result.
If, for example, there are 2 bananas, the Total Revenue should be 120 and not 60.
In other words, it would be a sumproduct of two ranges.
 
Upvote 0
Try change to:

Excel Formula:
=SUMPRODUCT($B$2:$B$6*$C$2:$C$6*($D$2:$D$6<=H1)*($E$2:$E$6>EOMONTH(H1,-1)))
 
Upvote 1
Solution

Forum statistics

Threads
1,223,881
Messages
6,175,159
Members
452,615
Latest member
bogeys2birdies

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