SUMIF Question

midwestmarinemom

New Member
Joined
Sep 14, 2011
Messages
1
I am trying to format a timesheet. I've successfully formatted in/out, in/out for a day and the regular, overtime calculations based on hours worked in a 40 hour week. These hours are often split by different locations (G/L codes). I have learned how to sum conditionally, but I'd like the next column to say what pay code (G/L code) it is that I'm summing. Is that possible. Example:
Hrs Worked (column O) G/L Code (column P).
My conditional sum statement says: sumif((P7:P12),U7,(O7:O13)) (I manually typed each G/L code in column U)
U7 is the column I have listed the G/L codes in, and we have many - 1,000 +
P7:P12 = G/L Code O7:012= Hours worked
My question, instead of a column with 1,00+ G/L codes(column U), can I say look at the data in column P (G/L code), and if it's = to ( something denoting a particular G/L code), then sum the numbers in column O (hours worked) and in the next column label the G/L code you just summed in the column next to the summing result, what does the total represent? I hope this makes sense and I'm grateful for any assistance provided.
Thanks!
 
Last edited:

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,224,548
Messages
6,179,451
Members
452,915
Latest member
hannnahheileen

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