Calculate Weekly movements

Shp1

New Member
Joined
Jan 17, 2024
Messages
21
Office Version
  1. 365
Platform
  1. Windows
HI Guys,

Quick question.. I am looking to work out the following:

Week 1#
Number of orders remaining in Shipping Station QueueHow many orders outstanding that week
Number of orders received from warehouse
Number of orders shipped to customers
Number of Faulty items returned to warehouse


The data set is coming from another excel spreadsheet and looks something like this:

Order NoDate order received from warehouseDate item shipped to customerDate faulty item Returned to WarehousePosition
106/01/2025 Warehouse
206/01/2025 Shipping station
307/01/202509/01/2025 Courier
408/01/202507/01/2025 Customer - Complete
508/01/202517/01/202508/01/2025Returned - Faulty
608/01/2025 Warehouse
709/01/2025 Shipping station
809/01/202513/01/2025 Courier
910/01/202513/01/2025 Customer - Complete
1013/01/202515/01/202513/01/2025Returned - Faulty
1113/01/2025 Warehouse
1214/01/2025 Shipping station
1315/01/202517/01/2025 Courier
1415/01/202517/01/2025 Customer - Complete
1515/01/202517/01/202515/01/2025Returned - Faulty
1616/01/2025 Warehouse
1716/01/2025 Shipping station
1817/01/202520/01/2025 Courier
1917/01/202521/01/2025 Customer - Complete
2017/01/202521/01/202517/01/2025Returned - Faulty


Any idea on how I could do this?
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
how do you define week1 ???

countifs()
count the number of dates between your week in column Date item shipped to customer, Date order received from warehouse in your range
count the number of dates between your week in column Date faulty item Returned to Warehouse, Date order received from warehouse in your range
count the number in Position with shipping station and blank dates in other columns and Date order received from warehouse in your range
 
Upvote 0
So week 1 would be 6-10 Jan 2025 and week 2 would be 13-17 Jan 2025 and so on and so forth
 
Upvote 0
probably ned a table of dates for week 1
OR rather thand week1 use dates
or poss =WEEKNUM(b2,2)-1 in a helper column or mybe a filter()

with a helper
BUT need a definition for some of the criteria

Number of orders remaining in Shipping Station Queue
=COUNTIFS($F$2:$F$21,1,$E$2:$E$21,"shipping station")

Number of orders received from warehouse - how is that defined ??

again
Number of orders shipped to customers
is that
Courier
Customer - Complete
does that also include those returned

WHAT ARE your expected results and WHY

Book2
ABCDEFGHI
1Order NoDate order received from warehouseDate item shipped to customerDate faulty item Returned to WarehousePositionWeek numberWeek 1#
211/6/25Warehouse1Number of orders remaining in Shipping Station Queue2
321/6/25Shipping station1Number of orders received from warehouse2
431/7/251/9/25Courier1Number of orders shipped to customers2
541/8/251/7/25Customer - Complete1Number of Faulty items returned to warehouse1
651/8/251/17/251/8/25Returned - Faulty1
761/8/25Warehouse1
871/9/25Shipping station1
981/9/251/13/25Courier16-10 Jan 2025
1091/10/251/13/25Customer - Complete1week 1#VALUE!#VALUE!
11101/13/251/15/251/13/25Returned - Faulty2Tue 07/01/202522
12111/13/25Warehouse2Wed 08/01/202522
13121/14/25Shipping station2Thu 09/01/202522
14131/15/251/17/25Courier2Fri 10/01/202522
15141/15/251/17/25Customer - Complete2Sat 11/01/202522
16151/15/251/17/251/15/25Returned - Faulty2Sun 12/01/202522
17161/16/25Warehouse2Mon 13/01/20253
18171/16/25Shipping station2Tue 14/01/20253
19181/17/251/20/25Courier2
20191/17/251/21/25Customer - Complete2
21201/17/251/21/251/17/25Returned - Faulty2
Sheet1
Cell Formulas
RangeFormula
H2H2=COUNTIFS($F$2:$F$21,1,$E$2:$E$21,"shipping station")
H3H3=COUNTIFS($F$2:$F$21,1,$E$2:$E$21,"warehouse")
H4H4=COUNTIFS($F$2:$F$21,1,$E$2:$E$21,"customer - complete")
H5H5=COUNTIFS($F$2:$F$21,1,$E$2:$E$21,"returned - faulty")
I10:I16I10=ISOWEEKNUM(G10)
H10:H18H10=WEEKNUM(G10,2)
F2:F21F2=IF(B2="","",WEEKNUM(B2,2)-1)
 
Upvote 0
Thanks - Basically I need to track how many orders are being received from our warehouse and what the output is from the shipping team. There is also the added complexity that items are checked before shipping and if they are faulty then these are sent back to the warehouse for a replacement. I also wanted to know how many orders we've got left to process from the weeks before. Trying to work out how much is being processed in each week. Hope this helps explain the exercise.
 
Upvote 0
sorry not really - i understand what you are trying to do - BUT its more about the interpretation of the data you provided
based on the info you have given
what are the expected results and WHY ???
then we can work out the countifs() or maybe some other function

forexample
I need to track how many orders are being received from our warehouse
How many is that based on the data you provided ?
There is also the added complexity that items are checked before shipping and if they are faulty then these are sent back to the warehouse for a replacement
so do we count the number with a items with a "position" of warehouse and also add the returned - Faulty
as a total count
OR what
 
Upvote 0
How many is that based on the data you provided ?
Yes

Based on the data I provided the answers should be:


Week 1#
Number of orders remaining in Shipping Station Queue 1 (Counting orders which state "Shipping Station" in the position column within the selected date range)
Number of orders received from warehouse 1 (counting number of orders received within the selected date range)
Number of orders shipped to customers 1 (Counting number of orders shipped within the selected date range)
Number of Faulty items returned to warehouse 1 (Counting order which state "Faulty - returned" in the position column within the selected date range)
 
Upvote 0
thanks for that
see I previously posted the counts based on position
H2 H2 =COUNTIFS($F$2:$F$21,1,$E$2:$E$21,"shipping station")
H3 H3 =COUNTIFS($F$2:$F$21,1,$E$2:$E$21,"warehouse")
H4 H4 =COUNTIFS($F$2:$F$21,1,$E$2:$E$21,"customer - complete")
H5 H5 =COUNTIFS($F$2:$F$21,1,$E$2:$E$21,"returned - faulty")
However ,
you say week 1 ,
week 1 would be 6-10 Jan 2025
so 1st result
Number of orders remaining in Shipping Station Queue1 (Counting orders which state "Shipping Station" in the position column within the selected date range)

is 1 - i count 2
so why do you have 1
Book2
ABCDEF
1Order NoDate order received from warehouseDate item shipped to customerDate faulty item Returned to WarehousePositionWeek number
211/6/25Warehouse1
321/6/25Shipping station1
431/7/251/9/25Courier1
541/8/251/7/25Customer - Complete1
651/8/251/17/251/8/25Returned - Faulty1
761/8/25Warehouse1
871/9/25Shipping station1
981/9/251/13/25Courier1
1091/10/251/13/25Customer - Complete1
11101/13/251/15/251/13/25Returned - Faulty2
12111/13/25Warehouse2
13121/14/25Shipping station2
14131/15/251/17/25Courier2
15141/15/251/17/25Customer - Complete2
16151/15/251/17/251/15/25Returned - Faulty2
17161/16/25Warehouse2
18171/16/25Shipping station2
19181/17/251/20/25Courier2
20191/17/251/21/25Customer - Complete2
21201/17/251/21/251/17/25Returned - Faulty2
Sheet1
Cell Formulas
RangeFormula
F2:F21F2=IF(B2="","",WEEKNUM(B2,2)-1)


Number of orders received from warehouse1 (counting number of orders received within the selected date range)
why 1 ? , again i have 2 with Warehouse in position

Book2
ABCDEF
1Order NoDate order received from warehouseDate item shipped to customerDate faulty item Returned to WarehousePositionWeek number
211/6/25Warehouse1
321/6/25Shipping station1
431/7/251/9/25Courier1
541/8/251/7/25Customer - Complete1
651/8/251/17/251/8/25Returned - Faulty1
761/8/25Warehouse1
871/9/25Shipping station1
981/9/251/13/25Courier1
1091/10/251/13/25Customer - Complete1
11101/13/251/15/251/13/25Returned - Faulty2
12111/13/25Warehouse2
13121/14/25Shipping station2
14131/15/251/17/25Courier2
15141/15/251/17/25Customer - Complete2
16151/15/251/17/251/15/25Returned - Faulty2
17161/16/25Warehouse2
18171/16/25Shipping station2
19181/17/251/20/25Courier2
20191/17/251/21/25Customer - Complete2
21201/17/251/21/251/17/25Returned - Faulty2
Sheet1
Cell Formulas
RangeFormula
F2:F21F2=IF(B2="","",WEEKNUM(B2,2)-1)



Number of orders shipped to customers1 (Counting number of orders shipped within the selected date range)
What is the criteria for this

and finally
Number of Faulty items returned to warehouse1 (Counting order which state "Faulty - returned" in the position column within the selected date range)

I count 1 using
=COUNTIFS($F$2:$F$21,1,$E$2:$E$21,"returned - faulty")

as mentioned and shown in previous posts
 
Upvote 0
so why do you have 1
Sorry, you're right it is 2!

why 1 ? , again i have 2 with Warehouse in position
Again, apologies it is 2..
What is the criteria for this
The date that the item was shipped to the customer. Looking for a value based on the number of times a particular date was entered within the date range.
I count 1 using
=COUNTIFS($F$2:$F$21,1,$E$2:$E$21,"returned - faulty")
Understood.. thanks!

I think I need a coffee haha!
 
Upvote 0
ok,
so you now have 3 countifs() which work as you have described and posted in my post number 4 - all based on a helper column for weeknumber and the entry in the position column
H2 H2 =COUNTIFS($F$2:$F$21,1,$E$2:$E$21,"shipping station")
H3 H3 =COUNTIFS($F$2:$F$21,1,$E$2:$E$21,"warehouse")

H5 H5 =COUNTIFS($F$2:$F$21,1,$E$2:$E$21,"returned - faulty")

so now for
The date that the item was shipped to the customer. Looking for a value based on the number of times a particular date was entered within the date range.
Dont see what criteria to use here
How defined Shipped to customer ?
Based on the entries in Postion column
is it ONLY
"Customer - Complete" and so the result is 2
OR does it include "courier " - so thats another 2

so what do you want to count in "postion" column for this count ?
 
Upvote 0

Forum statistics

Threads
1,225,743
Messages
6,186,778
Members
453,371
Latest member
HMX180

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