Show Page Number via formula

JamesWalkerJr

New Member
Joined
Oct 14, 2003
Messages
2
Is it possible to include the page number in a formula?

e.g.

="Mytext "&(page.number.here)

I don't want to use a macro, just the standard formula bar.

Thanks,
James Walker, Jr.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
While I don't know of any such "page" formula, it certainly is possile to show a page number. Highlight your spreadsheet, then click on File, Print Area, Set Print Area. For a simple spreadsheet, with no frozen panes, you should have about 51 or so lines for your first page. In my example, I got 51 rows for the first page. For this case, the formula to use is:

=INT(rowNumber/51 + 0.02)

For different values of the number of rows for the first page, you will have to change the second term ofthe formula, 0.02, until you confirm that the row number at the end of a page does, indeed, correspond to that page, and not the next one. For this purpose, it is easiest to go to the lst row in the last whole page, and use =rowNumber/51 (51, or 52, or whatever number of rows your first page has) to deduce the actual value of this term. One may, also, use a Tools/Goal Seek approach. In the present case, this method gave 0.019607844 as the necessary value, but I used the 0.02 value successfully, at least up to page 10.
 
Upvote 0

Forum statistics

Threads
1,214,650
Messages
6,120,736
Members
448,988
Latest member
BB_Unlv

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top