VBE313
Well-known Member
- Joined
- Mar 22, 2019
- Messages
- 686
- Office Version
- 365
- Platform
- Windows
Is there a UDF that someone can think of that can sum the column "A" UNTIL column "B" says "Yes" again and put the formula in column C?
I have seen similar UDFs but I cannot wrap my head around this one.
[TABLE="width: 246"]
<colgroup><col span="3"></colgroup><tbody>[TR]
[TD] [/TD]
[TD]Yes[/TD]
[TD] $ 1.76[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] $ 0.76[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] $ 0.12[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] $ 0.76[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] $ 0.12[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] $ 0.01[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] $ - [/TD]
[TD]Yes[/TD]
[TD] $ 3.28[/TD]
[/TR]
[TR]
[TD] $ - [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] $ 0.76[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] $ 0.12[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] $ 2.28[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] $ 0.12[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] $ 0.01[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] $ - [/TD]
[TD]Yes[/TD]
[TD] $ 1.76[/TD]
[/TR]
[TR]
[TD] $ - [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] $ 0.76[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] $ 0.12[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] $ 0.76[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] $ 0.12[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] $ 0.01[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] $ - [/TD]
[TD]Yes[/TD]
[TD] $ 3.28[/TD]
[/TR]
</tbody>[/TABLE]
I have seen similar UDFs but I cannot wrap my head around this one.
[TABLE="width: 246"]
<colgroup><col span="3"></colgroup><tbody>[TR]
[TD] [/TD]
[TD]Yes[/TD]
[TD] $ 1.76[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] $ 0.76[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] $ 0.12[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] $ 0.76[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] $ 0.12[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] $ 0.01[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] $ - [/TD]
[TD]Yes[/TD]
[TD] $ 3.28[/TD]
[/TR]
[TR]
[TD] $ - [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] $ 0.76[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] $ 0.12[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] $ 2.28[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] $ 0.12[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] $ 0.01[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] $ - [/TD]
[TD]Yes[/TD]
[TD] $ 1.76[/TD]
[/TR]
[TR]
[TD] $ - [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] $ 0.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