Which printed page is it on?

steve case

Well-known Member
Joined
Apr 10, 2002
Messages
820
I have a long list of items that prints on down many pages. I need a routine to tell me what page a particular item appears on.

This is so I can tell or E-mail someone, your item is on page so and so.

There's way too many for a simple ctrl-F find.

A good solution would be my item in column A and a formula in Column B that yielded the page number.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
StACase,

Is there a way to search for an item in Excel's Print Preview?

If you use Find to locate the item, highlight the row, then Format, Cells, Patterns, RED color - then do File, Print Preview, to manually locate the RED row, by pressing the 'Next' button, to find the page number.

Have a great day,
Stan
 
Upvote 0
Define a name as follows :-

Name : pge

Refers to : =IF(ISNA(MATCH(ROW(),GET.DOCUMENT(64),1)),1,MATCH(ROW(),GET.DOCUMENT(64),1)+1)

Then just use : =pge


PS
Here's a macro to add the name :-

Code:
Sub Add_Name()
ActiveWorkbook.Names.Add Name:="pge", RefersToR1C1:="=IF(ISNA(MATCH(ROW(),GET.DOCUMENT(64),1)),1,MATCH(ROW(),GET.DOCUMENT(64),1)+1)"
End Sub


Note : the formula calculation might be quite slow, and if the pagebreaks change the formula will not automatically recalculate.
 
Upvote 0
Thanks for the replies.

I asked this question for someone else, and I will have him try it out on Monday.
 
Upvote 0
The user on who's behalf I asked the question sent me a short E-Mail this morning:

Steve,

It worked.

Thank you,
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,256
Members
448,557
Latest member
richa mishra

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