+ Reply to Thread
Results 1 to 6 of 6

Need Help Populating Columns Please!

  1. #1
    Registered User
    Join Date
    11-07-2022
    Location
    Birmingham, England
    MS-Off Ver
    Excel 365
    Posts
    3

    Need Help Populating Columns Please!

    Managers Test.xlsxTest1.xlsx

    As you can see from the attachment, I have the columns T1 Manager, T2 Manager and T3 Manager empty in the "Test" doc. T1 through to T3 correspond to seniority of the manager and in turn the seniority of the person in "Invoice Name" which dictates the level of management they report to. So for example a junior employee reports to T1, T2 and T3 management. Whereas a more superior employee will report to T2 and T3 only. I need a solution that will pick loop from T1 through T3 in the "Manager" doc returning text where necessary.

    I look forward to your responses.
    Last edited by BeetleJuice1701; 11-07-2022 at 05:26 PM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Need Help Populating Columns Please!

    Assuming both files are open, you can use this formula in cell D2 of the Test file:

    =VLOOKUP($A2,'[Managers Test.xlsx]Sheet1'!$B$3:$E$5,COLUMNS($C:D),0)&""

    Copy across into E2:F2, then copy the three formulae down as required.

    Hope this helps.

    Pete

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Need Help Populating Columns Please!

    you didn't show expected result but maybe this is what you want

    Invoice Name Area Department T1 Manager T2 Manager T3 Manager
    Daniel Hucker Sainsburys Depots Zone Manager Dan Hucker
    Simon Reid Retail FM Field Operations Zone Fabric Specialist Paul Whiting Robert Mcgeachie Noel Farrell
    Steven Jenkins Retail FM Field Operations Zone Fabric Specialist Paul Whiting Robert Mcgeachie Noel Farrell

  4. #4
    Registered User
    Join Date
    11-07-2022
    Location
    Birmingham, England
    MS-Off Ver
    Excel 365
    Posts
    3

    Re: Need Help Populating Columns Please!

    Hi Sandy, this s exactly what I'm after. Please can you share the solution?

  5. #5
    Registered User
    Join Date
    11-07-2022
    Location
    Birmingham, England
    MS-Off Ver
    Excel 365
    Posts
    3

    Re: Need Help Populating Columns Please!

    Quote Originally Posted by Pete_UK View Post
    Assuming both files are open, you can use this formula in cell D2 of the Test file:

    =VLOOKUP($A2,'[Managers Test.xlsx]Sheet1'!$B$3:$E$5,COLUMNS($C:D),0)&""

    Copy across into E2:F2, then copy the three formulae down as required.

    Hope this helps.

    Pete
    Thanks Pete, I'll try this.

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Need Help Populating Columns Please!

    sure, this is a Power Query solution

    Please Login or Register  to view this content.
    first you'll need to "import" table from Manager Test file to Test1 file, the rest is above
    with Table1 (2) in file Test1 you need to change path to the Manager Test file to your own
    Attached Files Attached Files
    Last edited by sandy666; 11-07-2022 at 09:56 PM. Reason: path updated

+ 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. Populating other columns from unique ID?
    By vlookupPro in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-29-2019, 04:12 PM
  2. Populating columns with if statements
    By doritos5991 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-05-2019, 05:26 PM
  3. Certain Columns Not Populating in ListBox
    By tyrel9 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-14-2018, 07:59 PM
  4. [SOLVED] From columns to Row Populating Workdays
    By kharding15 in forum Excel General
    Replies: 2
    Last Post: 07-01-2015, 08:24 AM
  5. [SOLVED] Populating columns of data according to IDs
    By Eloise1 in forum Excel General
    Replies: 7
    Last Post: 05-27-2015, 09:53 PM
  6. Populating two columns in listbox
    By happyexcelperson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-27-2013, 09:56 AM
  7. Populating columns
    By smiffy47 in forum Excel General
    Replies: 1
    Last Post: 03-14-2012, 09:22 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