+ Reply to Thread
Results 1 to 5 of 5

look up references

  1. #1
    Registered User
    Join Date
    01-05-2011
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    8

    look up references

    i am facing problem in getting data.
    In the attachment, if the current date matches with any of the date in the matrix then it should give me value whichever in the first column and same row(a/b/c/d/e). with 2 columns I am able to use vlookup and get the result but in matrix iam not able to get the result. how to proceed
    Attached Files Attached Files
    Last edited by ajkiran; 01-06-2011 at 12:32 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: look up references

    Try:

    =IFERROR(INDEX(A1:A5,SUMPRODUCT((B1:L5=TODAY())*(ROW(B1:L5)))),"Date Not Found")
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    01-05-2011
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: look up references

    Quote Originally Posted by NBVC View Post
    Try:

    =IFERROR(INDEX(A1:A5,SUMPRODUCT((B1:L5=TODAY())*(ROW(B1:L5)))),"Date Not Found")
    THERE IS A small error if the matrix starts from A1 then results are ok but if new row is inserted as row 1 then results change.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: look up references

    Try:

    =INDEX(A1:A5,SUMPRODUCT((B1:L5=TODAY())*((ROW(B1:L5)-ROW(B1)+1))))

  5. #5
    Registered User
    Join Date
    01-05-2011
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: look up references

    thanks, working well

+ 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