Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-05-2018, 04:48 AM
sfarad sfarad is offline Calculate recurring instances between cell count - using trigger - URGENT HELP Windows 10 Calculate recurring instances between cell count - using trigger - URGENT HELP Office 2013
Novice
Calculate recurring instances between cell count - using trigger - URGENT HELP
 
Join Date: Jul 2018
Posts: 1
sfarad is on a distinguished road
Default Calculate recurring instances between cell count - using trigger - URGENT HELP

Hi guys,

Probably my best shot here to finish successfully my graduation with a study I am doing that I am now TOTALLY STUCK. Please read slowly as I will do my best to explain my needs:

In the Excel attached there are 27008 rows of random numbers from 0-36 (column B).


Each range of numbers is categorized as following:
0 = Color 2 1-6 = Color 3 7-12 = Color 4 13-18 = Color 1 19-24 = Color 5 25-30 = Color 6 31-36 = Color 7

What I need, in the first place, is to count is the number of sequences that only 2 random numbers of the same color appear one after another. Per example: Rows 2-3 4-5 20-24 23-24 etc.....
This is the easy part.
The "trigger" to stop counting would be a sequence where 3 or more numbers of the same color appear one after another. Per example: Rows 134-136.

So in the case that we take a sequence from row 2 to row 136 - the formula would count exactly 17 times that a group of 2 numbers of the same color appeared one after another until a group of 3 numbers of the same color one after another showed up and than the count stops and restarts.

The ultimate question of the study would be: out of 27008 rows, the longest sequence that 2 numbers of the same color appeared one after another until a 3 numbers one after another showed up is............. X


How do I achieve this? Really I have consulted my professors, computer engineers and many others, with 0 SUCCESS.
Please help me. Since I am no Excel programmer feel free to edit my excel and send back.

@@@THANK YOU SO MUCH@@@
Attached Files
File Type: xlsx Cell count.xlsx (454.1 KB, 9 views)
Reply With Quote
  #2  
Old 07-05-2018, 04:05 PM
macropod's Avatar
macropod macropod is offline Calculate recurring instances between cell count - using trigger - URGENT HELP Windows 7 64bit Calculate recurring instances between cell count - using trigger - URGENT HELP Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Cross-posted at: https://www.mrexcel.com/forum/excel-...g-trigger.html
For cross-posting etiquette, please read: http://www.excelguru.ca/content.php?184
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 07-07-2018, 07:59 AM
p45cal's Avatar
p45cal p45cal is offline Calculate recurring instances between cell count - using trigger - URGENT HELP Windows 10 Calculate recurring instances between cell count - using trigger - URGENT HELP Office 2016
Expert
 
Join Date: Apr 2014
Posts: 867
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

In the attached see columns H:I.
It goes wrong when it finds 4 (or more) in a row, it thinks they're two triplets next to each other.
The max is 40, there's only one, lying between triplet at row 6612 above, and triplet at row 6857 below.



Any use?
Attached Files
File Type: xlsx msofficeforums39538Cell count.xlsx (485.3 KB, 7 views)
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculate recurring instances between cell count - using trigger - URGENT HELP How to trigger a macro on cell *selection* Larry_1 Excel Programming 6 12-24-2017 11:09 AM
Calculate recurring instances between cell count - using trigger - URGENT HELP Cell drop down boxes URGENT otuatail Excel 2 02-26-2015 09:51 AM
Calculate recurring instances between cell count - using trigger - URGENT HELP trying to use vlookup to calculate several different situations in one cell heastlund Excel 3 11-21-2013 12:38 PM
Hyperlink in cell to trigger pop up text box Carpie Excel Programming 0 08-13-2013 10:33 AM
Calculate recurring instances between cell count - using trigger - URGENT HELP A recurring word count macro? bpanda Word VBA 1 06-11-2013 07:17 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:08 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft