Rolling Total for Each Warehouse Inventory

petrodude

New Member
Joined
Mar 8, 2024
Messages
11
Office Version
  1. 365
Platform
  1. Windows
  2. Web
Help! I'm stuck.

I am trying to create a rolling total for each of my 13 warehouses' on hand inventory at the end of each month in Column I

The idea is that if, for a row,

Item = Item

Month – 1 = Month
(Month "0" is the starting inventory at the beginning of the year, Month "1" is January, etc)

Whs = Whs

Then, SUM Net Inventory Cells

Else, ‘’


Here are some screenshots of sample data:
Data filtered for Whs "300" and Item
1709911642688.png


Data Filtered just for Item
1709911879540.png


Thank you in advance!
 
Check this

I edited it many times

Excel Formula:
=IFS(C2=0,"",True,SUMIFS($G$1:G2,$B$1:B2,"<="&B2-1,$C$1:C2,C2,$D$1:D2,D2))
1712345646864.png

It appears that the net inventory is lagging behind by 1 month when using this formula?


1712345959357.png

when using =
Excel Formula:
=IFS(C2=0,"",True,SUMIFS($G$1:G2,$B$1:B2,"<="&B2-1,$C$1:C2,C2,$D$1:D2,D2))
i get this error message
 
Upvote 0
One more try

Excel Formula:
=IFS(B2=0,"",True,SUMIFS($G$1:G2,$B$1:B2,"<="&(B2-1),$C$1:C2,C2,$D$1:D2,D2))
 
Upvote 0

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
My mistake

Check this -

Book1
ABCDEFGH
1YearMonthWhsItemInOutMonthNet
220230300156169 
3202313001561108-10762
Sheet1
Cell Formulas
RangeFormula
H2:H3H2=IFS(B2=0,"",TRUE,SUMIFS($G$1:G2,$B$1:B2,"<="&B2,$C$1:C2,C2,$D$1:D2,D2))
Eureka! It appears to be working now.

This is amazing. Thank you so so much!
 
Upvote 0
Finally after a series of Trial and Error on my part :unsure: :p

Glad to help you and thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,216,126
Messages
6,129,020
Members
449,480
Latest member
yesitisasport

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