+ Reply to Thread
Results 1 to 5 of 5

Lookup with conditionals for different ranges

  1. #1
    Registered User
    Join Date
    06-06-2013
    Location
    FL,USA
    MS-Off Ver
    Excel 2007 for MAC
    Posts
    8

    Lookup with conditionals for different ranges

    Dear Reader,

    I have got the following situation:
    ExcelForum-PROBLEM.xlsx

    And what I want to do is to create a function that will look for and output the "PLACE" for the first appearance of "0.2" in column "VALUE", but only in the range where DATE 1 and DATE 2 are the same. I need to be able to drag this function so the process can be repeated with every different date.


    The result I am looking for is this one:
    ExcelForum-SOLUTION.xlsx





    Kind Regards,
    Diego.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,051

    Re: Lookup with conditionals for different ranges

    Hi and welcome to the forum

    Try this, copied down...
    =COUNTIFS($A$2:$A$28,E2,$C$2:$C$28,0.4)
    I get different answers you what you gave though?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    06-06-2013
    Location
    FL,USA
    MS-Off Ver
    Excel 2007 for MAC
    Posts
    8

    Re: Lookup with conditionals for different ranges

    Hi DIBBINS!

    Thank you for your response, and it almost worked. The thing is that instead of returning the number of times the number appears on that range,
    I need a function to tell me the POSITION of the number in the range, hence the difference in the results, do you know how I could do this?

    For that reason I placed the "Place " column, so the function can return the "Place" (or position) for the first time the 0.4 appears on the range.


    Best Regards,
    Diego O.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,051

    Re: Lookup with conditionals for different ranges

    OK, try this array formula...
    =INDEX($A$1:$D$28,MATCH(F2&0.4,$A$1:$A$28&$C$1:$C$28,0),4)
    ...confirmed by pressing CTRL-SHIFT-ENTER to activate the array. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL-SHIFT-ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

  5. #5
    Registered User
    Join Date
    06-06-2013
    Location
    FL,USA
    MS-Off Ver
    Excel 2007 for MAC
    Posts
    8

    Re: Lookup with conditionals for different ranges

    Thank you so much Dibbins!

    It worked exactly how I needed and expected it to!

    Kind Regards,
    Diego O.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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