You'll need to post details of what you're trying to do, and someone may be
able to help you. Excel doesn't have a While function or statement, but you
can use array formulas to analyze each character in a string, which I s'pose
is similar to a while statement.
BTW - looping through each character in a string is only one example, you can
also "loop" through ranges and do some analysis of each cell in the range.