Countifs - number of unique values each week

adriandwor

New Member
Joined
Sep 7, 2021
Messages
19
Office Version
  1. 2016
Platform
  1. Windows
Hej everyone,

I'm trying to get some data for how many different days each particular week get sales orders, but I'm having difficulty coming up with the correct Countifs formula: Can anyone help?

So for example week#1/2/3 should yield a value of 1 because there was only one particular day where orders came in. Week number 4 should yield 3 different days, while week 6 there were 2 different days.

I tried to do it by counting unique values in column E for each week, but I keep getting wrong values.

Thank you so much for looking!

in progress 2023 (version 1).xlsx
ABCDEG
1Ugeweekdayskjult weekdayDatoAntal bookingerAntal CC
21søndag101-01-202300
31mandag202-01-202300
41tirsdag303-01-202300
51onsdag404-01-202300
61torsdag505-01-202300
71fredag606-01-202300
81lørdag707-01-202300
91søndag108-01-202300
102mandag209-01-202300
112tirsdag310-01-202300
122onsdag411-01-20231321
132torsdag512-01-202300
142fredag613-01-202300
152lørdag714-01-202300
162søndag115-01-202300
173mandag216-01-202300
183tirsdag317-01-202300
193onsdag418-01-202375
203torsdag519-01-202300
213fredag620-01-202300
223lørdag721-01-202300
233søndag122-01-202300
244mandag223-01-202300
254tirsdag324-01-202399
264onsdag425-01-202312
274torsdag526-01-202300
284fredag627-01-202354
294lørdag728-01-202300
304søndag129-01-202300
315mandag230-01-202300
325tirsdag331-01-2023316
335onsdag401-02-202300
345torsdag502-02-202300
355fredag603-02-202300
365lørdag704-02-202300
375søndag105-02-202300
386mandag206-02-202300
396tirsdag307-02-20232228
406onsdag408-02-202300
416torsdag509-02-202300
426fredag610-02-202343
436lørdag711-02-202300
446søndag112-02-202300
Days
Cell Formulas
RangeFormula
B2:B44B2=TEXT(WEEKDAY([@Dato]), "dddd")
C2:C44C2=WEEKDAY(D2)
E2:E44E2=COUNTIFS('Shipment Report Lines'!D:D, "<"&D3,'Shipment Report Lines'!D:D, ">="&D2)
G2:G44G2=ROUNDDOWN([@[Calculated Antal CC]], 0)
A3:A44A3=ISOWEEKNUM([@Dato])
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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