Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default count how long it will takes for a number to repeat

I need help creating a equation to count how long it takes for a number to repeat. For example:

1 2 3 4 5 6 7 8 1

so it takes 7 calls for number 1 to repeat.

thanks

EggHeadCafe - Software Developer Portal of Choice
XML/XSL VB Tester
http://www.eggheadcafe.com/tutorials...vb-tester.aspx
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default count how long it will takes for a number to repeat

it takes 7 calls for number 1 to repeat.
it takes 8 calls for number 1 to repeat.


Try this array formula** :

=IF(COUNTIF(A1:K1,1)1,SMALL(IF(A1:K1=1,COLUMN(A1: K1)),2)-COLUMN(A1)+1-MATCH(1,A1:K1,0),"")

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER

--
Biff
Microsoft Excel MVP


<sierra spiegel wrote in message
...
I need help creating a equation to count how long it takes for a number to
repeat. For example:

1 2 3 4 5 6 7 8 1

so it takes 7 calls for number 1 to repeat.

thanks

EggHeadCafe - Software Developer Portal of Choice
XML/XSL VB Tester
http://www.eggheadcafe.com/tutorials...vb-tester.aspx



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Code takes to long Oggy Excel Discussion (Misc queries) 1 March 30th 08 10:56 PM
VLookup takes too long DTTODGG Excel Worksheet Functions 4 March 20th 08 09:57 PM
how to count the number of cells it takes to reach a certain sum Oshtruck user Excel Worksheet Functions 1 August 24th 07 05:32 PM
Clearing cells takes long, long time unclemuffin Excel Discussion (Misc queries) 9 August 17th 07 02:22 AM
Recalculation takes too long - help!!!! JulieD Excel Worksheet Functions 0 October 29th 04 09:39 AM


All times are GMT +1. The time now is 03:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"