+ Reply to Thread
Results 1 to 13 of 13

H & V Lookup multiple criteria

Hybrid View

  1. #1
    Registered User
    Join Date
    12-30-2011
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    49

    H & V Lookup multiple criteria

    Please could someone help with a formula I require.

    Example:

    First range from A1 to C3

    Person - 30/12/2011 - 06/01/2012
    22999 - TRUE - FALSE
    33388 - FALSE - TRUE

    Second range from A1 to C3

    Person - 30/12/2011 - 06/01/2012
    22999 - 100 - 200
    33388 - 200 - 100

    So I want to say if person "22999" is "TRUE" for W/E 30/12/2011. Return Zero. BUT If person was FALSE for W/E 30/12/2011 return corresponding value from second range.

    Let me know if you need further info

    Thanks!!

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,078

    Re: H & V Lookup multiple criteria

    Assuming second range is in Sheet2
    try
    =IF(B2="TRUE",0,VLOOKUP(A2,Sheet2!A2:C3,3,FALSE)
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    12-30-2011
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    49

    Re: H & V Lookup multiple criteria

    Thanks for your reply Special-K

    Theres three sheets. Ill attach an example
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    12-30-2011
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    49

    Re: H & V Lookup multiple criteria

    Should point out that the formula in cell E11 of above attachment should also consider the name and not just the month.

    Also I'm not sure if it makes a difference ideally I would want the formula to reference Cell A11 and not B11

    Any help appreciated. Thanks.

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: H & V Lookup multiple criteria

    Hi Nubian,

    See the attached file and let me know if this helps

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    Attached Files Attached Files
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  6. #6
    Registered User
    Join Date
    12-30-2011
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    49

    Re: H & V Lookup multiple criteria

    Beautifully Genius!!! Thanks a lot dilipandey!!!!

  7. #7
    Registered User
    Join Date
    12-30-2011
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    49

    Re: H & V Lookup multiple criteria

    Should point out that the formula in cell E11 of above attachment should also consider the name and not just the month.

    Also I'm not sure if it makes a difference ideally I would want the formula to reference Cell A11 and not B11

    Any help appreciated. Thanks.

  8. #8
    Registered User
    Join Date
    12-30-2011
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    49

    Re: H & V Lookup multiple criteria

    Could you work it from SRN column A. I have duplicate names in source?

  9. #9
    Registered User
    Join Date
    12-30-2011
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    49

    Re: H & V Lookup multiple criteria

    Thought it was me - but it works when i moved all references to that cell

    Thanks again.

  10. #10
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: H & V Lookup multiple criteria

    Try this...

    =IF(NOT(VLOOKUP(A11,A$6:N$8,MATCH(C11,A$6:N$6,0),0)),VLOOKUP(A11,A$1:N$3,MATCH(C11,A$1:N$1,0),0))

    copy down..
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  11. #11
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: H & V Lookup multiple criteria

    You are welcome Nubian...

    Cheers

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  12. #12
    Registered User
    Join Date
    12-30-2011
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    49

    Re: H & V Lookup multiple criteria

    Hi DILIpandey. Thanks again. As discussed Ive added the example. Many thanks
    Attached Files Attached Files

  13. #13
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: H & V Lookup multiple criteria

    Hi Nubian,

    I did not found True /False in your data, like it was it your example before. Please explain a little.. thx

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

+ 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