I have to create a macro and I'm stuck on this step.
I have to take the first Employee Number in Column A and first see if there are any other entries in column A with the same Employee Number.
Perform a task based on that.
Then go to the next employee number, and the next, etc.
Anyone know how to perform this task?
"That is just it: you must have the devil in you to succeed in any art."
I have a spreadsheet with the following data. I need to go through it line by line and first find all matching "Pers.no." and then add their corresponsing "Days" column.
And then throw all this data on another sheet with it all grouped together. There is one more IF stmt to be included but that is for later on!
VB Code:
Pers.no. Name Org Key Type Days
53 K#thl##n W#lk#nsh#w TWKS - CENT SU (No absence) 3
63 R#ch#rd W#dd#####n CITY COUNCIL (No absence) 7
68 L#wr#nc# T#### CITY COUNCIL (No absence) 12
"That is just it: you must have the devil in you to succeed in any art."
I understand what your saying, unfortunately this has to be done in a MACRO because there are some other calculations and actions to be performed after it has calculated the days.
"That is just it: you must have the devil in you to succeed in any art."
Long story short, I have to check the "TYPE" category, if the word "Authorized Unpaid Absences" appears in any of that persons rows then I have to subtract 3 from the total of the "Days" column.
Then if the Days total exceeds "3" I have to delete them from the list, otherwise keep it.
I know its confusing.
"That is just it: you must have the devil in you to succeed in any art."
If there's no counter argument it's best to let Excel Sort your range
for the specific column first.
This way all double occurence's are follow each other up.
and your data will be easier to manage.
why can't programmers keep and 31 Oct and 25 dec apart. Why Rating is Useful
for every question you ask provide an answer on another thread.