Winning streak that reset when broken Google Sheets

Gigiwan

New Member
Joined
Mar 31, 2021
Messages
47
Office Version
  1. 2016
Platform
  1. Windows
Hi
I managed to create a formula with someone's else help but the problem is that formula start counting from 4 where it supposed to start counting from 1 or 0 in first cell ( attached photo of my table) then it keep on counting until streak is broken by another character "anything else than win"
Formula used:
=ARRAYFORMULA(MAX(IF(B4:B38<>"",ROW(B4:B38),0))-MAX(IF((B4:B38<>"")*(B4:B38<>"Win"),ROW(B4:B38),0)))
How can i fix it?
 

Attachments

  • quantity.PNG
    quantity.PNG
    12.7 KB · Views: 37

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Hi & welcome to MrExcel.
Is this for Excel or Google Sheets?
 
Upvote 0
If you are trying to get the current win streak try
Excel Formula:
=ARRAYFORMULA(MAX(IF(B4:B38<>"",ROW(B4:B38)-ROW(B4)+1,0))-MAX(IF((B4:B38<>"")*(B4:B38<>"Win"),ROW(B4:B38)-ROW(B4)+1,0)))
 
Upvote 0
Solution
If you are trying to get the current win streak try
Excel Formula:
=ARRAYFORMULA(MAX(IF(B4:B38<>"",ROW(B4:B38)-ROW(B4)+1,0))-MAX(IF((B4:B38<>"")*(B4:B38<>"Win"),ROW(B4:B38)-ROW(B4)+1,0)))
Apologies for not acknowledging the sub forums, but thanks for your cooperation and your understanding that I'm a Rookie :).

The formula you have wrote work flawlessly as needed!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
I don't use Sheets, so not sure I can help with that.
 
Upvote 0

Forum statistics

Threads
1,223,573
Messages
6,173,133
Members
452,501
Latest member
musallam

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