I have a data set that has long rows of cells that contain any number between 1-5. I need to locate the first occurence in each row whereby the number "2" occurs, but only when the following 17 adjacent cells also contain the number 2 (to make a total of 18 consecutive 1's in a row). I have been very stuck on this. Any help would be greatly appreciated!
I have attached a sample of the type of data I am looking at.
Cheers,
JSB
Perhaps:
Note array entry requirement. If Array has been confirmed correctly the above formula will appear encased within { } [these can not be added manually]AHS2: =MIN(IF(COUNTIF(OFFSET($B2,0,COLUMN($B2:$AGZ2)-COLUMN($B2),1,18),2)=18,$B$1:$AGZ$1)) confirmed with CTRL + SHIFT + ENTER copied down to AHS33
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
Hey,
Look good. Thanks heaps!
J
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks