• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Maximum Number and Date

Kenshin

Member
Glad Im here again and desperate need s help from you guys, please take a look at the file



tghank you in advanced
 

Attachments

  • Problem.xlsx
    10.7 KB · Views: 14
In cell C11:
=MAX(INDEX(B3:K6,MATCH(C9,A3:A6,0),0))

In cell D11:
=INDEX(A2:K2,MAX(IF(INDEX(B3:K6,MATCH(C9,A3:A6,0),0)=C11,COLUMN(B2:K2))))
or better, especially if your dates aren't sorted left to right:
=MAX(IF(INDEX(B3:K6,MATCH(C9,A3:A6,0),0)=C11,B2:K2))
These last two formulae may need to be entered with Ctrl+Shift+Enter, not just plain Enter, depending on your version of Excel.
 
Last edited:
Sorry @p45cal need help again, I try the formula on my actual workbook and the formula failed to do htheir works
 

Attachments

  • Question.xlsx
    22.5 KB · Views: 4
=INDEX(A5:AG5,MAX(IF(INDEX(C6:AG105,MATCH(B119,B6:B105,0),0)=D120,COLUMN(C5:AG5))))
but better:
=MAX(IF(INDEX(C6:AG105,MATCH(B119,B6:B105,0),0)=D120,C5:AG5))
 
Thats for date? Yes it works but how for maximum number? Still address wrong maximum number
 

Attachments

  • Question.xlsx
    22.5 KB · Views: 9
Oh sorry I misunderstood that the result should be the last number from multiple columns with criteria not maximum number
Still need your help sir how to get the last number and date using criteria

thank you @p45cal
 
Date:
=INDEX(A5:AG5,MAX(IF(ISNUMBER(INDEX(C6:AG105,MATCH(B119,B6:B105,0),0)),COLUMN(C5:AG5))))

Amount:
=INDEX(A6:AG105,MATCH(B119,B6:B105,0),MAX(IF(ISNUMBER(INDEX(C6:AG105,MATCH(B119,B6:B105,0),0)),COLUMN(C5:AG5))))
 
1] Last date [C119] :

=OFFSET(B5,,INDEX(MATCH(2,1/OFFSET(C5,MATCH(B119,B6:B105,0),,,31)),0))

2] Last value [D119] :

=1/LOOKUP(2,1/OFFSET(C5,MATCH(B119,B6:B105,0),,,31))

73668
 
Last edited:
Back
Top