With worksheet functions...
A1 = your text string: 23411268 - 23411270
B1 =LEFT(A1,FIND(" ",A1)-1)+0
C1 =MID(A1,FIND("-",A1)+2,LEN(A1))+0
A3 =IF(MAX($A$2:A2)=$C$1,"",MAX($A$2:A2,$B$1-1)+1)
...copy cell A3 down until the values stop appearing.
With worksheet functions...
A1 = your text string: 23411268 - 23411270
B1 =LEFT(A1,FIND(" ",A1)-1)+0
C1 =MID(A1,FIND("-",A1)+2,LEN(A1))+0
A3 =IF(MAX($A$2:A2)=$C$1,"",MAX($A$2:A2,$B$1-1)+1)
...copy cell A3 down until the values stop appearing.
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
?None of us is as good as all of us? - Ray Kroc
?Actually, I *am* a rocket scientist.? - JB (little ones count!)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks