+ Reply to Thread
Results 1 to 3 of 3

Function for searching the upper parent in a company structure.

  1. #1
    Registered User
    Join Date
    12-22-2021
    Location
    A'dam
    MS-Off Ver
    Office16
    Posts
    2

    Function for searching the upper parent in a company structure.

    Hi all,

    First of all, thank you for reading this. And hopefully one of you can help me out.

    I've have an export of an company structure and would like to know an formula which can find the direct entity parent in the company structure. The layout of the export is as follows;
    Entity 1 is the mother, all other entities have different locations within the company structure. You can find the upper parent by moving one cell to the left in which the entity is located and move up to the first non blank cell/entity, see attachment.




    I'm looking for an formula which can retrieve the direct upper parent. I would like to plug the formula in column J behind each entity, this would be beneficial for future purposes. I would like the formula to register the column the entity is in and find the upper parent by moving 1 cell to the left and retrieve the first non blank cell above. So for example Entity 7; That the formula registers the entity is in cell F7, moves to cell E7 and goes up to the first non black cell which is E6 and returns Entity 6. For Entity 13; That the formula registers the entity is in cell B13, moves to cell A13 and goes up to the first non black cell which is A1 in this case will return Entity 1.

    Maybe the above way of solving the issue is very redundant and feel free to suggest an more simple solution.

    Already my big thanks for anyone willing to help me out.

    Gr Koetel
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-11-2021
    Location
    Netherlands
    MS-Off Ver
    365
    Posts
    1,505

    Re: Function for searching the upper parent in a company structure.

    Met udf

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-22-2021
    Location
    A'dam
    MS-Off Ver
    Office16
    Posts
    2

    Re: Function for searching the upper parent in a company structure.

    HI Jec,

    It works perfectly, thank you so much!

    Have a nice weekend

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 12-10-2020, 06:28 PM
  2. Searching for company names that are different between two sheets
    By CliffyBiro in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 10-09-2020, 03:26 AM
  3. Replies: 1
    Last Post: 04-15-2020, 03:40 PM
  4. Formula Structure Error When Combining IF Function with VLOOKUP Function
    By EverClever in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-16-2017, 03:11 PM
  5. [SOLVED] Automatically copy individual company rows into separate company sheet
    By rajeshn_in in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-24-2016, 03:24 AM
  6. Searching for Upper Cast Text in string - Any Suggestions?
    By randysiems in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 02-11-2013, 03:58 PM
  7. Searching a cell value in another sheet and copying parent value which it belongs to
    By Pankaj Sonawane in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-16-2010, 08:37 AM

Tags for this Thread

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