Good Morning,
I was wondering if anyone could guide me in the right direction with a formula. I need a formula that sums multiple cells based off certain criteria.
I need the sum of "cost" for each employee based on county. For example below I have John's name in column (A) several times however John could work in numerous counties within a month's time frame. How can I get the total cost (E) for John per County?
(A)Employee: John,(D) Hours: 40, (E) Cost: $150, (F) County: Clay, (L) Gross: $5706; (M) Per Hour: $36.91
(A) Employee: Sue,(D) Hours:10, (E) Cost $40, (F) County: Clinton, (L) Gross: $3481, (M) Per Hour: $34.81
(A) Employee: Bob, (D) Hours: 20, (E) Cost: $90, (F) County: Clay, (L) Gross: $4144, (M) Per Hour: $36.24
(A) Employee: John, (D) Hours:12, (E) Cost: $50, (F) County: Clay, (L) Gross: $3914, (M) Per Hour: $34.91
(A) Employee: John, (D) Hours: 34, (E) Cost: $115, (F) County: Clinton, (L) Gross: $5014, (M) Per Hour: $36.03
Formula I prefer however seems a little more complicated:
(aware it won't pull the same outcome for numbers)
Gross ( L) divided by the total number of hours each employee (sum of D based on employee name in column A) multiplied by the hours per county (F) for that specific person (A). For example: John's gross is $14,634 (Sum of "L" based off name in column A) divided by his 86 total hours (sum of D based off name in column A) = $170.16, then that number multiplied by 52 (sum of the hours he worked for that specific county "F") = $8,848.47
Sorry if this doesn't make sense
Bookmarks