0

I have an array of 250 elements "myArray (1 to 250)". Is there a built-in excel for mac function that can give me a reverse number list? For example if I wanted to loop through the array from the last number to the first (250 to 1), the last number could have a pointer as the 1st item processed in my loop ie. 250 is the 1st processed, 249 is the second processed, 248 is the third, etc? My goal is using a built-in function vs creating a logic loop.

1
  • In VBA for PC, For X = 250 to 1 Step -1 Commented Feb 2, 2016 at 1:51

1 Answer 1

1

Is there a special requirement in VBA / MAC that precludes negative Step counters?

If not, just do something like:

For X = Ubound(myArray) to Lbound(myArray) Step -1
    Do Something
Next X
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.