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

Find specific value and return adjacent cell value

Andoni

New Member
Dear Forumers,

I am trying to find a formula that will find 1) a specific value and 2) retrun the adjacent cell value.

I have allready managed to find the specfic value which is the MAX value in a range but depending on 2 criterias =MAX(IF(A2:A12=J7;IF(B2:B12=K5;D2:D12)))

Now I need the formula to give me as an output the value of the cell on the right.

I attached you the example.

Thank you!
 

Attachments

  • Example - Find specific value and return adjacent cell value.xlsx
    15.2 KB · Views: 13
Are you looking for this, see attached.
 

Attachments

  • Example - Find specific value and return adjacent cell value (1).xlsx
    15.4 KB · Views: 13
Are you looking for this, see attached.

This solution is great!

However I was wondering if it would be possible to come up to the final result directly without having to find the spectific value (the max) on a separate cell before.

Please find attached the updated xls. template

Thank!!
 

Attachments

  • Copy of Example - Find specific value and return adjacent cell value.xlsx
    14.4 KB · Views: 6
Hi ,

I am not sure what you want ; see if this is OK.

Narayan

=INDEX($C$3:$C$13,MATCH(MAX(($A$3:$A$13 = $G2) * ($B$3:$B$13 = H$1) * ($D$3:$D$13)),($A$3:$A$13 = $G2) * ($B$3:$B$13 = H$1) * ($D$3:$D$13),0))

Interesting formula Sir, liked the approach how you incorporate lookup_value and lookup_array. Awesome.
 
Back
Top