+ Reply to Thread
Results 1 to 4 of 4

Multiple conditions to get data

  1. #1
    Registered User
    Join Date
    11-29-2011
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Question Multiple conditions to get data

    Hello,

    I need a formula to get data based on 2 conditions. One condition is date and another is a lookup value. I have attached a spreadsheet with my requirement. Can you please look into it and advise how can I get the required data.

    Regards,
    Mandeep
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,306

    Re: Multiple conditions to get data

    Hi mrd4u and welcome to the forum,

    Put this in B2 and Pull Down
    =INDEX(Data!$C$2:$G$14,MATCH(B$1,Data!$B$2:$B$14,0),MATCH($A2,Data!$C$1:$G$1,0))
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    11-29-2011
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Multiple conditions to get data

    fabulous...thats gr8
    thanks a lot.....it solved my issue

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,716

    Re: Multiple conditions to get data

    This worked for me in your example.

    =HLOOKUP($A2,Data!$C$1:$G$14,MATCH(Route_Details!$B$1,Data!$B$1:$B$14,0),FALSE)

    Alan
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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