+ Reply to Thread
Results 1 to 6 of 6

Thread: VLookup

  1. #1
    Registered User
    Join Date
    08-31-2011
    Location
    Sheffield, England
    MS-Off Ver
    Excel 2010
    Posts
    6

    VLookup

    Hi there everybody

    I am hoping somebody can help me with this one. I have pondered it for a while and am sure excel has a function to do it. See attached file: example_table.xlsx

    What I need is a formula in C19, D19, E19, etc,,, that looks at table A and puts in the cells the zone name in which the alias appears in. It must find every zone the alias appears in and put each one in a new column, after the previous one, as shown in Table B.

    Is there a formula which can do this? N.B table B is actually on a different worksheet within the same book.

    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    1,958

    Re: VLookup

    In cell C19 try:

    =IF(COLUMN()-2>COUNTIF($B$3:$E$14,$B19),"",INDEX($A:$A,LARGE(IF($B$3:$E$14=$B19,ROW($B$3:$E$14),0),COUNTIF($B$3:$ E$14,$B19)-(COLUMN()-3))))

    This is an array formula and must be entered using Ctrl-Shift-Enter, not just Enter. Once entered you can copy it across and down in the normal way.

  3. #3
    Registered User
    Join Date
    08-31-2011
    Location
    Sheffield, England
    MS-Off Ver
    Excel 2010
    Posts
    6

    Thumbs up Re: VLookup

    OK that works on that sheet.

    Now I need a bit of help using that formula on the data set in the current circumstances.

    See The workbook provided in its current form. (sample_workbook[1].xlsx).

    Can you please advise how I would populate the zone columns using the formula you have provided. Ignore all the #REF! cells.
    Last edited by willm; 01-17-2012 at 09:18 PM.

  4. #4
    Registered User
    Join Date
    08-31-2011
    Location
    Sheffield, England
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: VLookup

    Ignore this workbook, uploaded in error
    Last edited by willm; 01-17-2012 at 09:21 PM.

  5. #5
    Registered User
    Join Date
    08-31-2011
    Location
    Sheffield, England
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: VLookup

    This is the correct workboook
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    1,958

    Re: VLookup

    No problem. In cell K2 of the port allocation sheet put the formula:

    =IF(COLUMN()-10>COUNTIF(ZONES_RELN1!$B$1:$O$1000,$C2),"",INDEX(ZONES_RELN1!$A:$A,LARGE(IF(ZONES_RELN1!$B$1:$O$100 0=$C2,ROW(ZONES_RELN1!$B$1:$O$1000),0),COUNTIF(ZONES_RELN1!$B$1:$O$1000,$C2)-(COLUMN()-11))))

    It's still an array formula, so Ctrl-Shift-Enter to enter it.

+ 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.2.0