Is there a way to create a "counted" column, let's say 0-200 without using a loop? I want column A to have numbers from 0-200.
Is there a way to create a "counted" column, let's say 0-200 without using a loop? I want column A to have numbers from 0-200.
One way:
Please Login or Register to view this content.
Regards, TMS
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
I'd kinda consider that a loop, but nevermind, it works. Thanks!
Why would you consider it a loop? It doesn't have a counter, it doesn't have any loop code: No "For ... Next", "For Each", "Do While" ..., whatever.
hmm.. well, i guess your right
oops, i was i bit quick to judge the code as complete.. When using the code i get:
any suggestions?Please Login or Register to view this content.
No, worked fine for me on an empty sheet. Please post a sample workbook that exhibits the problem.any suggestions?
All it does is put a seed value, 0, in cell A1 and a formula to increment the value by 1 in cells A2:A201. It immediately converts the calculated formulae to values.
Interesting effect though ... I'd like to understand why it's doing that.
Regards, TMS
Very weird.. works on an empty sheet for my aswell.. Afraid i can't post my original document, so i cant reproduce the problem for you. I solved the issue by using some ugly code:
Please Login or Register to view this content.
Clearly, your real life scenario is subtly different to the question you originally asked.
Last edited by TMS; 06-18-2013 at 02:08 PM.
Well actually not.. Making it even more strange
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks