I have a sheet of data I need to subtotal. The issue is that the subtotal criteria is mixed in one column.
Example:
[TABLE="width: 500"]
<TBODY>[TR]
[TD]Column A
[/TD]
[TD]Column B
[/TD]
[TD]Column C
[/TD]
[/TR]
[TR]
[TD]Name 1
[/TD]
[TD][/TD]
[TD]35.00
[/TD]
[/TR]
[TR]
[TD]Shift Type
[/TD]
[TD]10.00
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Shift Type
[/TD]
[TD]12.00
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Shift Type
[/TD]
[TD]13.00
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Name 2
[/TD]
[TD][/TD]
[TD]20.00
[/TD]
[/TR]
[TR]
[TD]Shift Type
[/TD]
[TD]10.00
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Shift Type
[/TD]
[TD]10.00
[/TD]
[TD][/TD]
[/TR]
</TBODY>[/TABLE]
I need a formula that will subtotal column B based on when the NAME in column one changes, but column A has the name and shift type in the same column and it's not always 3 lines under the name it could be 6 for one person and 2 for another. So Column C is what I need the end result to be. I will take any direction or help you can give me.
Thanks
Diane
Example:
[TABLE="width: 500"]
<TBODY>[TR]
[TD]Column A
[/TD]
[TD]Column B
[/TD]
[TD]Column C
[/TD]
[/TR]
[TR]
[TD]Name 1
[/TD]
[TD][/TD]
[TD]35.00
[/TD]
[/TR]
[TR]
[TD]Shift Type
[/TD]
[TD]10.00
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Shift Type
[/TD]
[TD]12.00
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Shift Type
[/TD]
[TD]13.00
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Name 2
[/TD]
[TD][/TD]
[TD]20.00
[/TD]
[/TR]
[TR]
[TD]Shift Type
[/TD]
[TD]10.00
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Shift Type
[/TD]
[TD]10.00
[/TD]
[TD][/TD]
[/TR]
</TBODY>[/TABLE]
I need a formula that will subtotal column B based on when the NAME in column one changes, but column A has the name and shift type in the same column and it's not always 3 lines under the name it could be 6 for one person and 2 for another. So Column C is what I need the end result to be. I will take any direction or help you can give me.
Thanks
Diane
Last edited: