• 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 a value in a table

eirini

New Member
Hi!

I want to lookup a value in a table, and get the row and column of its position.

Is it possibe to use a formula for this?

thank you!!
 
For getting row use:
=LARGE(IF($D$12=$D$7:$H$9,ROW($D$7:$D$9)-ROW($D$7)+1),1)
For getting column use:
=LARGE(IF($D$12=$D$7:$H$9,COLUMN($D$7:$H$7)-COLUMN($D$7)+1),1)

Both are array formula so must enter with Ctrl+Shift+Enter.
(I assume there will not be any duplicate value in your table)

Regards,
 
  • Like
Reactions: GFC
A non array solution for the column number =SUMPRODUCT(COLUMN(D7:H9)*(D7:H9="b4"))-COLUMN(D7:H9)+1
The same for the row just replace " column" with " row"
 
Back
Top