Skip to main content
memecrafter
Inspiring
August 9, 2018
Question

Creating a 7-digit Index

  • August 9, 2018
  • 3 replies
  • 459 views

I'm working on a catalog of 1200 products. Each product has a 7 digit SKU number. At the end of the catalog, I'd like to have an index of those numbers to help customers find the part they need by SKU#. Is there an easy way to do this, or do I have to go from page to page and manually index all the product in the catalog?

Thanks for any help....

    This topic has been closed for replies.

    3 replies

    memecrafter
    Inspiring
    August 27, 2018

    I will post the results here after testing. There is a group of roughly 35 9-digit SKU numbers (1 product line), but I thought I would add these by hand after it was all done.

    Srishti_Bali
    Legend
    August 27, 2018

    Hi there,

    I would like to know if the steps suggested by Peter worked for you, or the issue still persists.

    Kindly update the discussion if you need further assistance with it.

    Thanks,

    Srishti

    Peter Kahrel
    Community Expert
    Community Expert
    August 9, 2018

    1. Create a character style, name it SKU. Add no formatting at all.

    2. Apply the character style to the 7-digit numbers: in the GREP tab of the Find/Change dialog, search \d{7} and in the Change Format field, add your SKU paragraph style.

    3. Use this script to add index markers to whatever the SKU style is applied: http://www.kahrel.plus.com/indesign/index_charstyles.html 

    4. Generate index.

    Question is, are all 7-digit numbers SKU numbers?

    Peter

    Community Expert
    August 27, 2018

    https://forums.adobe.com/people/Peter+Kahrel  wrote

    … in the GREP tab of the Find/Change dialog, search \d{7} …

    Hm.

    That will also find 8-digit, 9-digit, or n-digit numbers where n >= 7 .

    Maybe the pattern below using word boundaries will be more successful:

    \<\d{7}\>

    Regards,
    Uwe