+ Reply to Thread
Results 1 to 2 of 2

Check multiple columns and return value

  1. #1
    Registered User
    Join Date
    11-27-2010
    Location
    london,england
    MS-Off Ver
    Excel 2003
    Posts
    1

    Check multiple columns and return value

    i have data in my excel in below manner

    L M N O P
    -------------------------------------------------------
    IO OVERALL PHYSICAL_READ READ SQL1
    IO OVERALL PHYSICAL_WRITE WRITE SQL2
    IO OVERALL PHYSICAL_READ AVG_READ SQL3
    IO OVERALL PHYSICAL_WRITE AVG_WRITE SQL4
    IO TABLESPACE_TOP PHYSICAL_READ READ SQL5
    IO TABLESPACE_TOP PHYSICAL_READ AVG_READ SQL6
    IO TABLESPACE_TOP PHYSICAL_WRITE WRITE SQL7
    IO TABLESPACE_TOP PHYSICAL_WRITE AVG_WRITE SQL8
    WAIT TOP_WAIT EVENT SQL9
    WAIT EVENT SQL10

    the E cell shouldcheck the data in A,B,C,D and compare against the above value and give the result of Q.


    I tried then index and match function but i could compare it again two columns only.


    Example VALUE of column B,C,D,
    IO PHYSICAL_WRITE WRITE

    The formula in E that i tried is
    =INDEX($P$1:$P$9,MATCH(1,($B1=$L1:$L9)*($D$1=$O$1:$O$9),0))

    but the above can compare only again 2 column ,when i try 3 columns it give me error

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Check multiple columns and return value

    Hi,

    It's not clear - at least to me - exactly what result your after. Can you add the results manually with a note as to how you arrive at them if it's not obvious and then upload the workbook or at least the relevant parts of it.

    Rgds
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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