Row Reference by Page Number and Alphabetical Order.

nitrammada

Board Regular
Joined
Oct 10, 2018
Messages
78
Office Version
  1. 365
Platform
  1. Windows
Hi Folks,
I'm looking for assistance for line referencing and would appreciate any help given. Each row of data in my report requires a row reference in this format
1/A for row 1 and
1/B for row 2 and so on. 1 being the page number and "A" being the first alphabetical reference for the first row.

So for page 2 I need the row reference to start again at "A" but for page 2 the reference needs to looke like
2/A
2/B
etc
If there are more than 26 rows 2/AA, 2/AB is fine.

I have been trying to use VBA to reference the page count using the HPageBreaks with the pgbr.Location command but it's a bit beyond me to be honest.
If any one can assist with some vba code, I would be most grateful.
Thanks in advance.

Below is what I'm trying to achieve, I hope this makes sense.
1619213046592.png
 
Thanks ! Easy just using some Excel basics like here a beginner level formula …​
 
Upvote 0

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().

Forum statistics

Threads
1,213,551
Messages
6,114,268
Members
448,558
Latest member
aivin

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