Attendance for pickup & drop

avicric

Board Regular
Joined
Apr 24, 2017
Messages
59
Office Version
  1. 2019
Platform
  1. Windows
Hi All,

I need help with this....here where I am stuck...

Goal : attendance count

data I have is for pickup & drop service...so a person may do pickup & drop or only pickup or only drop....

is there a way to get the attendance for about 300+ people...

Thanks for taking the time to help....
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Do you have a workbook already created with the data ? If so, post it on a website like DropBox.com or similar so it can be reviewed.

If you don't have a workbook already you'll need to describe in clearer detail what it is you envision.

From you initial description it sounds like you are wanting something like :

1684594934721.png



How do you envision working with the above if this is what you are speaking of ?
 
Upvote 0
Do you have a workbook already created with the data ? If so, post it on a website like DropBox.com or similar so it can be reviewed.

If you don't have a workbook already you'll need to describe in clearer detail what it is you envision.

From you initial description it sounds like you are wanting something like :

View attachment 91982


How do you envision working with the above if this is what you are speaking of ?
No Sir... what you posted that information I know to get
my bad should have posted an image at least

here's what I need.... below is a sample data I need to get the attendance for each person for each date...as you there are two columns I need to refer for name and two columns to refer for date....
pickupdroppickup
date
drop
date
KalpeshKalpesh19-05-2320-05-23
NadirShan19-05-2320-05-23
AliHussain19-05-2320-05-23
ShanTalib19-05-2320-05-23
Hussaingautam19-05-2320-05-23
TalibNadir19-05-2320-05-23
gautamAli19-05-2320-05-23
NadirKalpesh19-05-2320-05-23
AliNadir19-05-2320-05-23
ShanAli19-05-2320-05-23
TalibAli20-05-2320-05-23
AliAli20-05-2320-05-23
KalpeshKalpesh20-05-2320-05-23
AliNadir20-05-2320-05-23
ShanAli20-05-2320-05-23
HussainShan20-05-2320-05-23
TalibHussain20-05-2320-05-23
gautamgautam20-05-2320-05-23
TalibAli20-05-2320-05-23
AliAli20-05-2320-05-23
KalpeshKalpesh20-05-2320-05-23
 
Upvote 0
I believe what you are seeking is a means to 'transpose the data' from existing layout to multi-column layout. Regretfully someone else will need to assist with that
formula.

Best wishes.
 
Upvote 0
I believe what you are seeking is a means to 'transpose the data' from existing layout to multi-column layout. Regretfully someone else will need to assist with that
formula.

Best wishes.
Thank you for trying
 
Upvote 0
Maybe try this Power Query Solution at "UI/beginners level"

Given this data:
Book1
DEFG
2pickupdroppickup datedrop date
3KalpeshKalpesh19-05 2320-05 23
4NadirShan19-05 2320-05 23
5AliHussain19-05 2320-05 23
6ShanTalib19-05 2320-05 23
7Hussaingautam19-05 2320-05 23
8TalibNadir19-05 2320-05 23
9gautamAli19-05 2320-05 23
10NadirKalpesh19-05 2320-05 23
11AliNadir19-05 2320-05 23
12ShanAli19-05 2320-05 23
13TalibAli20-05 2320-05 23
14AliAli20-05 2320-05 23
15KalpeshKalpesh20-05 2320-05 23
16AliNadir20-05 2320-05 23
17ShanAli20-05 2320-05 23
18HussainShan20-05 2320-05 23
19TalibHussain20-05 2320-05 23
20gautamgautam20-05 2320-05 23
21TalibAli20-05 2320-05 23
22AliAli20-05 2320-05 23
23KalpeshKalpesh20-05 2320-05 23
Sheet1


With this PQ :
Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"pickup", type text}, {"drop", type text}, {"pickup date", type date}, {"drop date", type date}}),
    #"Added Index" = Table.AddIndexColumn(#"Changed Type", "Index", 1, 1, Int64.Type),
    #"Merged Columns" = Table.CombineColumns(Table.TransformColumnTypes(#"Added Index", {{"pickup date", type text}}, "nl-BE"),{"pickup", "pickup date"},Combiner.CombineTextByDelimiter("|", QuoteStyle.None),"Pickup"),
    #"Merged Columns1" = Table.CombineColumns(Table.TransformColumnTypes(#"Merged Columns", {{"drop date", type text}}, "nl-BE"),{"drop", "drop date"},Combiner.CombineTextByDelimiter("|", QuoteStyle.None),"Drop"),
    #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(#"Merged Columns1", {"Index"}, "Attribute", "Value"),
    #"Split Column by Delimiter" = Table.SplitColumn(#"Unpivoted Other Columns", "Value", Splitter.SplitTextByEachDelimiter({"|"}, QuoteStyle.Csv, false), {"Name", "Date"}),
    #"Changed Type1" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"Name", type text}, {"Date", type date}})
in
    #"Changed Type1"

This pivot is possible:
Count of IndexColumn Labels
Row LabelsDropPickupGrand Total
Ali7512
19/05/202322
20/05/20237310
gautam224
19/05/202311
20/05/2023213
Hussain224
19/05/202311
20/05/2023213
Kalpesh437
19/05/202311
20/05/2023426
Nadir325
19/05/202322
20/05/202333
Shan235
19/05/202322
20/05/2023213
Talib145
19/05/202311
20/05/2023134
Grand Total212142
 
Upvote 0
Maybe try this Power Query Solution at "UI/beginners level"

Given this data:
Book1
DEFG
2pickupdroppickup datedrop date
3KalpeshKalpesh19-05 2320-05 23
4NadirShan19-05 2320-05 23
5AliHussain19-05 2320-05 23
6ShanTalib19-05 2320-05 23
7Hussaingautam19-05 2320-05 23
8TalibNadir19-05 2320-05 23
9gautamAli19-05 2320-05 23
10NadirKalpesh19-05 2320-05 23
11AliNadir19-05 2320-05 23
12ShanAli19-05 2320-05 23
13TalibAli20-05 2320-05 23
14AliAli20-05 2320-05 23
15KalpeshKalpesh20-05 2320-05 23
16AliNadir20-05 2320-05 23
17ShanAli20-05 2320-05 23
18HussainShan20-05 2320-05 23
19TalibHussain20-05 2320-05 23
20gautamgautam20-05 2320-05 23
21TalibAli20-05 2320-05 23
22AliAli20-05 2320-05 23
23KalpeshKalpesh20-05 2320-05 23
Sheet1


With this PQ :
Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"pickup", type text}, {"drop", type text}, {"pickup date", type date}, {"drop date", type date}}),
    #"Added Index" = Table.AddIndexColumn(#"Changed Type", "Index", 1, 1, Int64.Type),
    #"Merged Columns" = Table.CombineColumns(Table.TransformColumnTypes(#"Added Index", {{"pickup date", type text}}, "nl-BE"),{"pickup", "pickup date"},Combiner.CombineTextByDelimiter("|", QuoteStyle.None),"Pickup"),
    #"Merged Columns1" = Table.CombineColumns(Table.TransformColumnTypes(#"Merged Columns", {{"drop date", type text}}, "nl-BE"),{"drop", "drop date"},Combiner.CombineTextByDelimiter("|", QuoteStyle.None),"Drop"),
    #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(#"Merged Columns1", {"Index"}, "Attribute", "Value"),
    #"Split Column by Delimiter" = Table.SplitColumn(#"Unpivoted Other Columns", "Value", Splitter.SplitTextByEachDelimiter({"|"}, QuoteStyle.Csv, false), {"Name", "Date"}),
    #"Changed Type1" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"Name", type text}, {"Date", type date}})
in
    #"Changed Type1"

This pivot is possible:
Count of IndexColumn Labels
Row LabelsDropPickupGrand Total
Ali7512
19/05/202322
20/05/20237310
gautam224
19/05/202311
20/05/2023213
Hussain224
19/05/202311
20/05/2023213
Kalpesh437
19/05/202311
20/05/2023426
Nadir325
19/05/202322
20/05/202333
Shan235
19/05/202322
20/05/2023213
Talib145
19/05/202311
20/05/2023134
Grand Total212142
Thanks Grah....
I am able to get the counts what I am looking to get is the information if a person is present/worked on a particular date....

my problem is Ali ( the rep/agent) name can be populated in pickup or drop or both the fields and similarly the date....

what I am trying to say that a person/agent can only do pickup or he may only do drop.........or both on any given day......
if I am able to get this data from the system will not have to rely on manual data....

Thanking you in advance...
 
Upvote 0
Thanks Grah....
I am able to get the counts what I am looking to get is the information if a person is present/worked on a particular date....

my problem is Ali ( the rep/agent) name can be populated in pickup or drop or both the fields and similarly the date....

what I am trying to say that a person/agent can only do pickup or he may only do drop.........or both on any given day......
if I am able to get this data from the system will not have to rely on manual data....

Thanking you in advance...
Hi All,
Got something working....
You will need a calendar table also need to create relationship between the pick & drop date(active/inactive)
Measure:=
IF( CALCULATE( COUNTROWS('YourMainTable'), ALLEXCEPT('YourMainTable', 'YourMainTable'[pickup], 'YourMainTable'[drop]), FILTER( VALUES('YourCalendarTable'[Date]), CONTAINS('YourMainTable', 'YourMainTable'[pickupdate], 'YourCalendarTable'[Date]) && CONTAINS('YourMainTable', 'YourMainTable'[dropdate], 'YourCalendarTable'[Date]) ) ) > 0, 1, Blank())

Phew
 
Upvote 0
Solution

Forum statistics

Threads
1,223,339
Messages
6,171,533
Members
452,409
Latest member
brychu

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