VBA to Total column D based on name column A

rspalding

Active Member
Joined
Sep 4, 2009
Messages
295
Office Version
  1. 365
Platform
  1. Windows
Hi and thanks for the help.​

I have a list of names in column A and numbers in column D. I want to total up the numbers in column D after the last entry in column A or D and add the word total next to it in column C. See below please

AlvarezRamiro07/26/20248.000
Total
8.00
BalzanMariana07/26/20248.000
Total
8.00
CardozaRey07/25/202413.250
CardozaRey07/26/202413.500
CardozaRey07/27/202413.250
Total
40.00
ChavezJean07/24/20248.000
ChavezJean07/25/20248.000
ChavezJean07/26/20248.000
DominguezJulio07/25/20248.000
DominguezJulio07/26/20248.000
 
Still trying to help. Can you edit the cell, copy what's inside and paste that here? Or take a screenshot of the formula bar when your cursor is on one of the total cells
 
Upvote 0

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Jeff,

1723735968326.png
1723736022496.png
 

Attachments

  • 1723735894197.png
    1723735894197.png
    6.4 KB · Views: 0
Upvote 0
So, the link you're talking about, is that the green triangle next to each value? If so, it may be telling you that the cell is formatted as TEXT. You can change that to a number.

Easy way is to highlight the numbers, set the format to General or a number, then select DATA > Text to Columns > Finish.
 
Upvote 0
Hi Jeff,

So it works except its adding "Total" to the first line of each name and changing the hours to 0 but still calculating the correct total. I would also like to a grand total at the bottom of the all the name totals.

AlvarezRamiro07/26/20248.00
Total8.0
CardozaRey07/25/2024Total0.0
CardozaRey07/26/202413.50
CardozaRey07/27/202413.25
Total40.0
ChavezJean07/24/2024Total0.0
ChavezJean07/25/20248.00
ChavezJean07/26/20248.00
Total24.0
DominguezJulio07/25/2024Total0.0
DominguezJulio07/26/20248.00
Total16.0

Thanks,

Robert
 
Upvote 0

Forum statistics

Threads
1,223,240
Messages
6,170,951
Members
452,368
Latest member
jayp2104

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