• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Macro to automate page count

Hi Ninjas and friends,
Is there some way to ask Excel to automate page count on a worksheet?

For instance

If I type 250 in a specific cell

Is there anyway, run a Macro whereby I can get from top to bottom.....
Page 1
Page 2
Page 3
Page 4....

till

Page 250.

Please help!
 
Hi Luke
Sorry if question was a bit vague.

I need a Macro that can run a count of numbers from one cell to another in a progressive manner.

If I type in Cell b2 = 250

Need a Macro that can run from Cell C2 to C251 with numbers 1 - 250 or including a "text" Page 1 to Page 250.

For instance , Cell c3 would be "Page 2"
Cell c4 would be "Page 3"
 
Prinz Jaymes,

I don't think you need a macro for this. Please see the formula-based approach in the attached. It is currently set up to go up to 1000, but could be expanded if needed by simply dragging the formula.

Hope that helps.

Regards,
Ken
 

Attachments

  • PrinzJaymes_Chandoo_KenU.xlsx
    22 KB · Views: 3
By the way, anyway I can get it to start Page 1 from a different row.
So far, its only mimicking the row number.
Need to be able to make it start from any cell.
 
If you type Page 1 into a cell, right-click the bottom-right corner and drag down. Select Fill Series, and boom! Handy trick for other type of progression as well (days/months/years/etc)
upload_2014-8-27_15-18-39.png
 
Back
Top