Counting an locating consecutive scores.

Marvo

Board Regular
Joined
Nov 27, 2023
Messages
195
Office Version
  1. 2021
Platform
  1. Windows
Hi. I have a workbook that contains football scores in Columns L & M. There are over 5,000 results. Would it be possible to have a formula to locate consecutive results? The reason I ask is I have been asked when was the last occurrence of 3 consecutive goalless games. I can't think of a way to do this except manually which is very time consuming. I did try one formula I saw elsewhere but I got the message "Excel ran out of resources".

Many thanks.

Cobblers.xlsm
LM
1FA
202
314
431
522
621
713
843
963
1023
1151
1215
1321
1406
1540
ALL
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Just as an add-on, I was thinking, maybe it might be easier to merge the cells so that a score would show in one cell as 0-0? That may be easier to find?
 
Upvote 0
Its okay, I've managed to do this myself. For anybody interested.

Step 1: Merged the cells
Step 2: Placed 0-0 in Cell CU2
Step 3: In Cell CR2 =IF(CQ2=$CU$2,1,0)
Step 4: In Cell CR3 =IF(CQ3=$CU$2,1+CR2,0) copied down.

Then used the filter. Turns out it had only happened once in 127 years.

I'm sure there was an easier way but have to say, quite proud of myself.
 
Upvote 0
Solution

Forum statistics

Threads
1,225,637
Messages
6,186,135
Members
453,340
Latest member
Stu61

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