Which printed page is it on?

steve case

Well-known Member
Joined
Apr 10, 2002
Messages
815
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

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Joined
Jul 30, 2006
Messages
3,656
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

Boller

Banned
Joined
Apr 11, 2006
Messages
2,328
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

steve case

Well-known Member
Joined
Apr 10, 2002
Messages
815
Thanks for the replies.

I asked this question for someone else, and I will have him try it out on Monday.
 
Upvote 0

steve case

Well-known Member
Joined
Apr 10, 2002
Messages
815
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,190,743
Messages
5,982,703
Members
439,790
Latest member
jonaust

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
Top