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

Hlookup help.

Adnan Halai

New Member
Hello Expert,

Greetings for the day.

Due to multiple lookup criteria, can someone please help me to bring Percentage in Attached file. I cannot add helper column or Row in Database tab as that will be auto-generated from other file.

Request if anyone can help me to figure out correct formula.

Many Thanks in Advance.

Regards
Adnan Halai
 

Attachments

  • Vlookup Query.xlsx
    28.8 KB · Views: 9
Hi ,

So that I will know better, you can specify the required values in C4:C7 .

Which version of Excel you have?

David
 
Try......

1] Please select dropdown list in B1 and A3 as per required.

2] In B4, formula copy across and down :

=INDEX(INDEX(database!$B$2:$E$57,,MATCH($B$1,database!$B$1:$E$1,0)+MATCH(B$3,$B$3:$C$3,0)-1),MATCH($A$3,database!$A$2:$A$57,0)+($A$3<>"OVERALL")+MATCH($A4,$A$4:$A$7,0))

3] Please see attachment

Regards
Bosco
 

Attachments

  • Vlookup Query.xlsx
    28.9 KB · Views: 10
Try......

1] Please select dropdown list in B1 and A3 as per required.

2] In B4, formula copy across and down :

=INDEX(INDEX(database!$B$2:$E$57,,MATCH($B$1,database!$B$1:$E$1,0)+MATCH(B$3,$B$3:$C$3,0)-1),MATCH($A$3,database!$A$2:$A$57,0)+($A$3<>"OVERALL")+MATCH($A4,$A$4:$A$7,0))

3] Please see attachment

Regards
Bosco
Hi Bosco,

Loving your work mate, I tried for 15 mins but couldn't get this formula, could you please explain what are you doing with so many matches, appreciate it.

Thanks, Manny
 
Hi Bosco,

Loving your work mate, I tried for 15 mins but couldn't get this formula, could you please explain what are you doing with so many matches, appreciate it.

Thanks, Manny
Hi Manny,

=INDEX(INDEX(database!$B$2:$E$57,,MATCH($B$1,database!$B$1:$E$1,0)+MATCH(B$3,$B$3:$C$3,0)-1),MATCH($A$3,database!$A$2:$A$57,0)+($A$3<>"OVERALL")+MATCH($A4,$A$4:$A$7,0))

This red color highlighted part, to return the Lookup Range in respect of 2 criteria of "Date" and "Total"

and,

=INDEX(INDEX(database!$B$2:$E$57,,MATCH($B$1,database!$B$1:$E$1,0)+MATCH(B$3,$B$3:$C$3,0)-1),MATCH($A$3,database!$A$2:$A$57,0)+($A$3<>"OVERALL")+MATCH($A4,$A$4:$A$7,0))

This red color highlighted part, to return the Match Position no. in respect of 3 criteria in A3; check cell A3 not equal "OVERALL" and cell A4.

Try highlight the red area and pressing F9 to further investigate.
Regards
Bosco
 
Hi Bosco,

Perfect solution !

Allow once with a function INDEX,

=INDEX(database!$B$1:$E$57,MATCH($A$3,database!$A$1:$A$57,0)+($A$3<>"OVERALL")+MATCH($A4,$A$4:$A$7,0),MATCH($B$1,database!$B$1:$E$1,0)+MATCH(B$3,$B$3:$C$3,0)-1)

David
 
Back
Top