Excel VBA Attendance Monthly Report By Customer

zaki1979

New Member
Joined
Jun 7, 2022
Messages
20
Office Version
  1. 2019
Platform
  1. Windows
Dear Experts,

I would like to create a Macro which will create a customized Monthly Attendance Report By Customer

The Report Should be look like as mentioned below:

For Example, Let's Say we have in our database 2 Clients Jack and Jimmy.
we have 3 records of attendance who belongs to Client Jack (Which means there 3 different Employees who attended in different Jack's site) and
4 records of attendance who belongs to Jimmy (Which means there 4 different Employees who attended in his site)

REPORT DESIGN
New Microsoft Excel Worksheet.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAH
51. JACK
6N° MAT.NOMS ET POST NOMSEQUIPESITEFONCTION12345678910111213141516171819202122232425262728PRESTÉ
7201132DIEYI VALABCHICAGO 4GUARDEPPPPPPPPPMMPPPPPPPPPPPPPPPPP28
8201506MABIKA MABIKABCHICAGO 4GUARDEPPEEE5
9201535NGANDU KAYEMBEACHICAGO 4GUARDEPPPPPPPPPPPPPPPPPPPPPPPPPPPP28
10
112. JIMMY
12N° MAT.NOMS ET POST NOMSEQUIPESITEFONCTION12345678910111213141516171819202122232425262728PRESTÉ
13201133BWALIA BANZAACHICAGO 10GUARDEPPPPPPPPPPPPPPPPPPPPPPPPPPPP28
14201134LOKANGE EYALEACHICAGO 10GUARDEPPAPP4
15201136TSHUZA KADINDABCHICAGO 10GUARDEPPP3
16201576MPIA ISESEBCHICAGO 10GUARDEPPPPPPPPPPPPPPPPPP18
Sheet1


Attendance Databse or Dataset

my project.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJ
1
2DATABASEPPRESENT
3AABSENCE
4MMALADE
5RREPOT
6
7MATRICULENOMÉQUIPEFONCTIONCLIENTSITEREMARQUESUNIQUE_ID01020304050607080910111213141516171819202122232425262728
8201101MIDO MIWUMBUAGUARDECLIENT 1SITE ARAS201101_8PPPPPPPPPPPPPPPPPP
9201102AKANGA ALONDOAGUARDECLIENT 2SITE BRAS201102_9PPPPPPPPPPPPPPPPPPPPPPMMMMPP
10201103INGANGE EYENGABGUARDECLIENT 3SITE CRAS201103_10PPPPPPPAAPPPPPPPPPPPPPPPPPPP
11201101MIDO MIWUMBUAGUARDECLIENT 4SITE DTRANSFERT #101201101_11PPPAAPPPRP
12201104TEST 1ABGUARDECLIENT 5SITE ERAS201104_12PP
13201105TEST 2AGUARDECLIENT 1SITE ARAS201105_13PP
14201106TEST 3AGUARDECLIENT 7SITE FRAS201106_14PPP
15201107TEST 4AGUARDECLIENT 8SITE GRAS201107_15PPPAAAPPPP
16201107TEST 4AGUARDECLIENT 2SITE BRAS201107_16RPPRAAAPA
17201132DIEYI VALABGUARDEJACKCHICAGO 4RAS201132_17PPPPPPPPPMMPPPPPPPPPPPPPPPPP
18201506MABIKA MABIKABGUARDEJACKCHICAGO 4RAS201506_18PPEEE
19201535NGANDU KAYEMBEAGUARDEJACKCHICAGO 4RAS201535_19PPPPPPPPPPPPPPPPPPPPPPPPPPPP
20201133BWALIA BANZAAGUARDEJIMMYCHICAGO 10RAS201133_20PPPPPPPPPPPPPPPPPPPPPPPPPPPP
21201134LOKANGE EYALEAGUARDEJIMMYCHICAGO 10TRANSFER TO ANOTHER SITE201134_21PPAPP
22201136TSHUZA KADINDABGUARDEJIMMYCHICAGO 10TRANSFER TO ANOTHER SITE201136_22PPP
23201576MPIA ISESEBGUARDEJIMMYCHICAGO 10TRANSFER TO ANOTHER SITE201576_23PPPPPPPPPPPPPPPPPP
MASTER DATA
Cell Formulas
RangeFormula
H8:H23H8=A8&"_"&ROW()
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I8:AJ30Cell Value="R"textNO
I8:AJ30Cell Value="M"textNO
I8:AJ30Cell Value="A"textNO
I8:AJ30Cell Value="P"textNO
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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