Hi, below is my excel sheet , can we write a power query to find number of session( start to End)
Expected result for below excel is 2 , if suppose A12 had End Session the count to be 3.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Start session [/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]...[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]...[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]...[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]End Session
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Start session[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]...[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]...[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]End Session[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]Start session[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]...[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I do have a huge data in working excel (taking lot of time using vba script ). please help to find a solution.
Thanks in advance,
Sunil
Expected result for below excel is 2 , if suppose A12 had End Session the count to be 3.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Start session [/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]...[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]...[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]...[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]End Session
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Start session[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]...[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]...[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]End Session[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]Start session[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]...[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]13[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I do have a huge data in working excel (taking lot of time using vba script ). please help to find a solution.
Thanks in advance,
Sunil