Find all days between two dates from Range help

BalloutMoe

Board Regular
Joined
Jun 4, 2021
Messages
137
Office Version
  1. 365
Platform
  1. Windows
Hello All, I have this Sheet that reads a csv file and what not, I have the Date ranges in K1 and L1. I am wondering is there a way to find the all the dates equal and between the two dates for each shop location?
I have 10 different shop locations and numerous employees for each. I would like to know if the employee was no there for example on 11/4/21. So loop each store, employee, and date, if not found then print something. Any help would be appreciated. Thank you

Payrollfile.png
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
For the future: MrExcel has a tool called “XL2BB” that lets you post small samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.

Could you use something like this?
(My dates are in d/m/y format)

BalloutMoe.xlsm
ABDKLMNOP
1ShopEmployeeDate24/10/202126/10/2021ShopEmployeeAbsent
2Shop 1Emp 124/10/2021Shop 1Emp 126/10/21
3Shop 1Emp 224/10/2021Shop 1Emp 2 
4Shop 1Emp 125/10/2021Shop 2Emp 324/10/21, 26/10/21
5Shop 1Emp 225/10/2021Shop 2Emp 424/10/21
6Shop 1Emp 226/10/2021 
7Shop 2Emp 325/10/2021 
8Shop 2Emp 425/10/2021 
9Shop 2Emp 426/10/2021 
10Shop 2Emp 427/10/2021 
Sheet1
Cell Formulas
RangeFormula
N1:O5N1=UNIQUE(A1:B10)
P2:P10P2=IF(N2="","",LET(s,SEQUENCE(L$1-K$1+1,,K$1),TEXTJOIN(", ",1,IF(COUNTIFS(A$2:A$10,N2,B$2:B$10,O2,D$2:D$10,s)=0,TEXT(s,"d/m/yy"),""))))
Dynamic array formulas.
 
Upvote 0
Solution
For the future: MrExcel has a tool called “XL2BB” that lets you post small samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.

Could you use something like this?
(My dates are in d/m/y format)

BalloutMoe.xlsm
ABDKLMNOP
1ShopEmployeeDate24/10/202126/10/2021ShopEmployeeAbsent
2Shop 1Emp 124/10/2021Shop 1Emp 126/10/21
3Shop 1Emp 224/10/2021Shop 1Emp 2 
4Shop 1Emp 125/10/2021Shop 2Emp 324/10/21, 26/10/21
5Shop 1Emp 225/10/2021Shop 2Emp 424/10/21
6Shop 1Emp 226/10/2021 
7Shop 2Emp 325/10/2021 
8Shop 2Emp 425/10/2021 
9Shop 2Emp 426/10/2021 
10Shop 2Emp 427/10/2021 
Sheet1
Cell Formulas
RangeFormula
N1:O5N1=UNIQUE(A1:B10)
P2:P10P2=IF(N2="","",LET(s,SEQUENCE(L$1-K$1+1,,K$1),TEXTJOIN(", ",1,IF(COUNTIFS(A$2:A$10,N2,B$2:B$10,O2,D$2:D$10,s)=0,TEXT(s,"d/m/yy"),""))))
Dynamic array formulas.
Thank you for the tip on the way to upload and ask a question. I tried your formula and it works perfectly. Thank you so much for your help
 
Upvote 0
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,575
Members
449,039
Latest member
Arbind kumar

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