• 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.

How to use "If" "and" function to match two dates

Bear

Member
Hi guys

I want to use a formula to dig out a data, the criteria are required to match two dates. I drafted a formula by using if and functions, but it doesn't work. anyone can help me to fine-tune the formula. A sample file is attached.

Thank you.
 

Attachments

  • testing.xlsx
    10.3 KB · Views: 12
Instead of using IF. Try using below construct. INDEX(Return Range,Aggregate(15,6,ROW(Range)/(Conditon1)/(Condition2),1))

In your case something like...
In J3: Copy arcoss
=IFERROR(INDEX(C$3:C$6,AGGREGATE(15,6,ROW($3:$6)/($A$3:$A$6=$H3)/($B$3:$B$6=$I3),1)-2),"")
 
Chihiro & bosco_yip

Thank you for your help. I have learnt something new from here again. It's cool!
 
Back
Top