I apologize up front, I know this is a question that was asked awhile ago but I couldn’t find it in the archives.
I have a workbook that has 13 sheets (Jan, Feb…Dec & Total). Col A in each sheet has a last names and col B has first names, the rest of the cols have payroll data. The Total sheet has all of the employee names, the same headings across the top as the monthly sheets. To do what I want the formula would be something like
{=SUM(IF(Jan!$A$1:$A$200= A2 ,IF(Jan!$B$1:$B$200= B2 ,Jan!$D$1:$D$200,0),0))+SUM(IF(Feb!$A$1:$A$200=A2,IF(Feb!$B$1:$B$200=B2,Feb!$D$1:$D$200,0),0))……etc
( A2 = person’s last name B2 = person’s first name)
I need a macro that will give me YTD totals for each employee for each col. (Col D = Time worked, E=Total Wage etc.)
Thanks for any help you can offer.