Solved

Excel VBA Loop to count and number rows

Posted on 2014-11-18
1
199 Views
Last Modified: 2014-11-18
I am trying to put together some VBA code to number a spreadsheet rows until a change in a date in an adjacent column makes the numbering start over again.

The attached file shows the basics for it....

Looping may not be the way to go, it is slow and tedious..... If someone has a better way I would be more than happy to review....
Row-Count.xlsx
0
Comment
Question by:DougDodge
1 Comment
 
LVL 24

Accepted Solution

by:
Phillip Burton earned 500 total points
ID: 40450139
Does it have to be VBA code?

Why not (if "Count" starts In cell C2).

=if(b2<>b1,1,c1+1)

And copy that down,
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

I recently resolved a client's Office 2013 installation problem and wanted to offer an observation that may help you with troubleshooting similar issues. The client ordered three Dell Optiplex system units with the Windows 7 downgrade option inst…
Companies keep a much closer eye on costs today, so changing to new Technology – Microsoft Office 365 is the smartest move to take.
This video walks the viewer through the process of creating envelopes and labels, with multiple names and addresses. Navigate to the “Start Mail Merge” button in the Mailings tab: Follow the step-by-step process until asked to find the address doc…
XMind Plus helps organize all details/aspects of any project from large to small in an orderly and concise manner. If you are working on a complex project, use this micro tutorial to show you how to make a basic flow chart. The software is free when…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now