[TABLE="width: 500"]
<tbody>[TR]
[TD]Name (Column AD)[/TD]
[TD]Category (AE)[/TD]
[TD]Total Hrs (AF)[/TD]
[TD]Pay Rate (AG)[/TD]
[TD]Wage (AH)[/TD]
[/TR]
[TR]
[TD]John Doe 1[/TD]
[TD]TT Field[/TD]
[TD]12.5[/TD]
[TD][TABLE="width: 72"]
<tbody>[TR]
[TD]$104.55/hr[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 69"]
<tbody>[TR]
[TD="align: right"]$1,306.88[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]John Doe 2[/TD]
[TD]TT Field[/TD]
[TD]4[/TD]
[TD][TABLE="width: 72"]
<tbody>[TR]
[TD]$104.55/hr[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 69"]
<tbody>[TR]
[TD="align: right"]$418.20[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]John Doe 3[/TD]
[TD]Field[/TD]
[TD]15[/TD]
[TD][TABLE="width: 72"]
<tbody>[TR]
[TD="width: 72"]$34.85/hr[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 69"]
<tbody>[TR]
[TD="class: xl66, width: 69, align: right"]$522.75[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]John Doe 4[/TD]
[TD]Field[/TD]
[TD]37[/TD]
[TD][TABLE="width: 72"]
<tbody>[TR]
[TD="width: 72"]$34.85/hr[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 69"]
<tbody>[TR]
[TD="class: xl66, width: 69, align: right"]$1,289.45[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]John Doe 5[/TD]
[TD]Field[/TD]
[TD]8[/TD]
[TD][TABLE="width: 72"]
<tbody>[TR]
[TD="width: 72"]$30.70/hr[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 69"]
<tbody>[TR]
[TD="class: xl66, width: 69, align: right"]$245.60[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]John Doe 6[/TD]
[TD]Field[/TD]
[TD]15[/TD]
[TD][TABLE="width: 72"]
<tbody>[TR]
[TD="width: 72"]$27.95/hr[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 69"]
<tbody>[TR]
[TD="class: xl66, width: 69, align: right"]$419.25[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]John Doe 7[/TD]
[TD]Field[/TD]
[TD][TABLE="width: 72"]
<tbody>[TR]
[TD="width: 72"]$34.85/hr[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 72"]
<tbody>[TR]
[TD="width: 72"]$34.85/hr[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 69"]
<tbody>[TR]
[TD="class: xl66, width: 69, align: right"]$1,289.45[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
Bit stumped here. I'm not sure what I've been having issues with, but after this morning, I just deleted all my vba and started from scratch. I'm not sure if it's because the data I'm searching has a"/hr" and it's causing issues with finding it, but either way, I'm lost here.
I'm looking for a way to program a command button that can do the following.
* Search Column AG (pay rate) in range AG5:AG148 for all similar entries, and then add the number of hours in AF (Total Hrs Column) for all similar pay rates. There can be up to 168 different pay rates that could be in this column, so we would need to come up with a way that can search for identicals.
- For example, there might be 20 people with the same pay rate, so I'm looking to easily add the total hours for each unique pay rate.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Name (Column AD)[/TD]
[TD]Category (AE)[/TD]
[TD]Total Hrs (AF)[/TD]
[TD]Pay Rate (AG)[/TD]
[TD]Wage (AH)[/TD]
[/TR]
[TR]
[TD]John Doe 1[/TD]
[TD]TT Field[/TD]
[TD]12.5[/TD]
[TD][TABLE="width: 72"]
<tbody>[TR]
[TD]$104.55/hr[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 69"]
<tbody>[TR]
[TD="align: right"]$1,306.88[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]John Doe 2[/TD]
[TD]TT Field[/TD]
[TD]4[/TD]
[TD][TABLE="width: 72"]
<tbody>[TR]
[TD]$104.55/hr[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 69"]
<tbody>[TR]
[TD="align: right"]$418.20[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]John Doe 3[/TD]
[TD]Field[/TD]
[TD]15[/TD]
[TD][TABLE="width: 72"]
<tbody>[TR]
[TD="width: 72"]$34.85/hr[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 69"]
<tbody>[TR]
[TD="class: xl66, width: 69, align: right"]$522.75[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]John Doe 4[/TD]
[TD]Field[/TD]
[TD]37[/TD]
[TD][TABLE="width: 72"]
<tbody>[TR]
[TD="width: 72"]$34.85/hr[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 69"]
<tbody>[TR]
[TD="class: xl66, width: 69, align: right"]$1,289.45[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]John Doe 5[/TD]
[TD]Field[/TD]
[TD]8[/TD]
[TD][TABLE="width: 72"]
<tbody>[TR]
[TD="width: 72"]$30.70/hr[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 69"]
<tbody>[TR]
[TD="class: xl66, width: 69, align: right"]$245.60[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]John Doe 6[/TD]
[TD]Field[/TD]
[TD]15[/TD]
[TD][TABLE="width: 72"]
<tbody>[TR]
[TD="width: 72"]$27.95/hr[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 69"]
<tbody>[TR]
[TD="class: xl66, width: 69, align: right"]$419.25[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]John Doe 7[/TD]
[TD]Field[/TD]
[TD][TABLE="width: 72"]
<tbody>[TR]
[TD="width: 72"]37
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 72"]
<tbody>[TR]
[TD]$34.85/hr[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 69"]
<tbody>[TR]
[TD="class: xl66, align: right"]$1,289.45
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
So in this example, the outcome I'm looking for is basically the sum of all unique pay rates. (My workbook is empty after column AI. So we can output any data anywhere after that)
- pay rate 104.55 has 16.5
- Pay rate 34.85 has 89 hours
- pay rate 30.70 has 8 hours
- pay rate 27.95 has 15 hours
My workflow is this..
I get a CSV export from my payroll that looks quite a bit like the example tables above. Then I would take the information from there, copy it into another sheet I use, and count all the hours. Looking to streamline this and be a bit more efficient, because right now I'm using a calculator.. and it takes FOREVER! It'd be really nice if I could just copy and paste it into my range on my sheet, and click a button to auto sum all of the unique pay rates. It would save me several hours a week.
I would really appreciate any help from this!
<tbody>[TR]
[TD]Name (Column AD)[/TD]
[TD]Category (AE)[/TD]
[TD]Total Hrs (AF)[/TD]
[TD]Pay Rate (AG)[/TD]
[TD]Wage (AH)[/TD]
[/TR]
[TR]
[TD]John Doe 1[/TD]
[TD]TT Field[/TD]
[TD]12.5[/TD]
[TD][TABLE="width: 72"]
<tbody>[TR]
[TD]$104.55/hr[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 69"]
<tbody>[TR]
[TD="align: right"]$1,306.88[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]John Doe 2[/TD]
[TD]TT Field[/TD]
[TD]4[/TD]
[TD][TABLE="width: 72"]
<tbody>[TR]
[TD]$104.55/hr[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 69"]
<tbody>[TR]
[TD="align: right"]$418.20[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]John Doe 3[/TD]
[TD]Field[/TD]
[TD]15[/TD]
[TD][TABLE="width: 72"]
<tbody>[TR]
[TD="width: 72"]$34.85/hr[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 69"]
<tbody>[TR]
[TD="class: xl66, width: 69, align: right"]$522.75[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]John Doe 4[/TD]
[TD]Field[/TD]
[TD]37[/TD]
[TD][TABLE="width: 72"]
<tbody>[TR]
[TD="width: 72"]$34.85/hr[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 69"]
<tbody>[TR]
[TD="class: xl66, width: 69, align: right"]$1,289.45[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]John Doe 5[/TD]
[TD]Field[/TD]
[TD]8[/TD]
[TD][TABLE="width: 72"]
<tbody>[TR]
[TD="width: 72"]$30.70/hr[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 69"]
<tbody>[TR]
[TD="class: xl66, width: 69, align: right"]$245.60[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]John Doe 6[/TD]
[TD]Field[/TD]
[TD]15[/TD]
[TD][TABLE="width: 72"]
<tbody>[TR]
[TD="width: 72"]$27.95/hr[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 69"]
<tbody>[TR]
[TD="class: xl66, width: 69, align: right"]$419.25[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]John Doe 7[/TD]
[TD]Field[/TD]
[TD][TABLE="width: 72"]
<tbody>[TR]
[TD="width: 72"]$34.85/hr[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 72"]
<tbody>[TR]
[TD="width: 72"]$34.85/hr[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 69"]
<tbody>[TR]
[TD="class: xl66, width: 69, align: right"]$1,289.45[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
Bit stumped here. I'm not sure what I've been having issues with, but after this morning, I just deleted all my vba and started from scratch. I'm not sure if it's because the data I'm searching has a"/hr" and it's causing issues with finding it, but either way, I'm lost here.
I'm looking for a way to program a command button that can do the following.
* Search Column AG (pay rate) in range AG5:AG148 for all similar entries, and then add the number of hours in AF (Total Hrs Column) for all similar pay rates. There can be up to 168 different pay rates that could be in this column, so we would need to come up with a way that can search for identicals.
- For example, there might be 20 people with the same pay rate, so I'm looking to easily add the total hours for each unique pay rate.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Name (Column AD)[/TD]
[TD]Category (AE)[/TD]
[TD]Total Hrs (AF)[/TD]
[TD]Pay Rate (AG)[/TD]
[TD]Wage (AH)[/TD]
[/TR]
[TR]
[TD]John Doe 1[/TD]
[TD]TT Field[/TD]
[TD]12.5[/TD]
[TD][TABLE="width: 72"]
<tbody>[TR]
[TD]$104.55/hr[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 69"]
<tbody>[TR]
[TD="align: right"]$1,306.88[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]John Doe 2[/TD]
[TD]TT Field[/TD]
[TD]4[/TD]
[TD][TABLE="width: 72"]
<tbody>[TR]
[TD]$104.55/hr[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 69"]
<tbody>[TR]
[TD="align: right"]$418.20[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]John Doe 3[/TD]
[TD]Field[/TD]
[TD]15[/TD]
[TD][TABLE="width: 72"]
<tbody>[TR]
[TD="width: 72"]$34.85/hr[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 69"]
<tbody>[TR]
[TD="class: xl66, width: 69, align: right"]$522.75[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]John Doe 4[/TD]
[TD]Field[/TD]
[TD]37[/TD]
[TD][TABLE="width: 72"]
<tbody>[TR]
[TD="width: 72"]$34.85/hr[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 69"]
<tbody>[TR]
[TD="class: xl66, width: 69, align: right"]$1,289.45[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]John Doe 5[/TD]
[TD]Field[/TD]
[TD]8[/TD]
[TD][TABLE="width: 72"]
<tbody>[TR]
[TD="width: 72"]$30.70/hr[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 69"]
<tbody>[TR]
[TD="class: xl66, width: 69, align: right"]$245.60[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]John Doe 6[/TD]
[TD]Field[/TD]
[TD]15[/TD]
[TD][TABLE="width: 72"]
<tbody>[TR]
[TD="width: 72"]$27.95/hr[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 69"]
<tbody>[TR]
[TD="class: xl66, width: 69, align: right"]$419.25[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
[TR]
[TD]John Doe 7[/TD]
[TD]Field[/TD]
[TD][TABLE="width: 72"]
<tbody>[TR]
[TD="width: 72"]37
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 72"]
<tbody>[TR]
[TD]$34.85/hr[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 69"]
<tbody>[TR]
[TD="class: xl66, align: right"]$1,289.45
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
So in this example, the outcome I'm looking for is basically the sum of all unique pay rates. (My workbook is empty after column AI. So we can output any data anywhere after that)
- pay rate 104.55 has 16.5
- Pay rate 34.85 has 89 hours
- pay rate 30.70 has 8 hours
- pay rate 27.95 has 15 hours
My workflow is this..
I get a CSV export from my payroll that looks quite a bit like the example tables above. Then I would take the information from there, copy it into another sheet I use, and count all the hours. Looking to streamline this and be a bit more efficient, because right now I'm using a calculator.. and it takes FOREVER! It'd be really nice if I could just copy and paste it into my range on my sheet, and click a button to auto sum all of the unique pay rates. It would save me several hours a week.
I would really appreciate any help from this!