+ Reply to Thread
Results 1 to 3 of 3

Creating Parent ID from ID# based on Level number

  1. #1
    Registered User
    Join Date
    08-31-2010
    Location
    Massachusetts
    MS-Off Ver
    Excel 2007
    Posts
    2

    Creating Parent ID from ID# based on Level number

    Hi, I'm new here -

    I have an interesting situation where I need parent id's for a category/sub category spreadsheet that only contains ID#, Category Name and 'Level'. The level column reflects how deep the subcategory is related to the parent, for example a top level category would have a level of '0', if it had 3 subcategories all those would have a level of '1'- however, if the top level category ID is 15, the level id is useless- I need to have the subcategories pull in the parent id# based on what level the category is. I'm working with about 5000 rows so editing by hand isn't an option - is there a handy formula or macro that will straighten this out?

    Attached is a small test sample with Category ID (Col A), Category Name (Col B), Level ID (Col. C) and desired Parent ID (Col. E).

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Creating Parent ID from ID# based on Level number

    Welcome to the Board.

    Based on your sample file:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-31-2010
    Location
    Massachusetts
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Creating Parent ID from ID# based on Level number

    DonkeyOte-

    Perfect! Thanks for your help and quick reply-

    Fitz

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1