+ Reply to Thread
Results 1 to 3 of 3

Look up Values in different columns and return a value from a set column in the same array

  1. #1
    Forum Contributor Grimace's Avatar
    Join Date
    05-04-2009
    Location
    Gold Coast, Australia
    MS-Off Ver
    Excel 2013 and Office 365 Plus
    Posts
    380

    Look up Values in different columns and return a value from a set column in the same array

    Hi All

    I have a small challenge. In the attached sheet I am looking to use the data in the top table to return values into the cells C29 to D53.

    If the team plays in the game (that is appears in either Column E, G, J or L) , I would like to simply write "Play" in column C (highlighted Yellow)

    If the team has duty on the match, I would like to write "Duty" in column D in the yellow area beside that game number.

    All others are to remain blank.

    I have given an example by using conditional formatting, where the team is highlighted as either play or duty by chekcing against the value in cell B25. I just want to present this same info in a list format.

    I am assuming it will be a MATCH type function, but am not too familiar with how they work.

    Thanks in advance.
    Attached Files Attached Files
    Last edited by Grimace; 10-28-2012 at 09:53 PM.

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Look up Values in different columns and return a value from a set column in the same a

    Try,

    C29,

    Please Login or Register  to view this content.
    D29,

    =IF(OR(COUNT(1/(VLOOKUP(B29,D$3:H$21,5,0)=B$25)),COUNT(1/(VLOOKUP(B29,I$3:M$21,5,0)=B$25))),"Duty","")

    Then copy down.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Forum Contributor Grimace's Avatar
    Join Date
    05-04-2009
    Location
    Gold Coast, Australia
    MS-Off Ver
    Excel 2013 and Office 365 Plus
    Posts
    380

    Re: Look up Values in different columns and return a value from a set column in the same a

    Perfect .... exactly what i was after !!

    Thanks so much

+ 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