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

Determining Location of Value in X and Y coordinates.

hreyo25

New Member
Hello I have a matrix set up and I am need help finding the right code that would be able to find a specific cell value and display where in the matrix that value is. Attached is a sample of this problem. I placed the the different names throughout the matrix and in the end would like to determine a score for these value by multiply the X value by the Y value. Any help will be appreciated.

-Cheers
 

Attachments

  • Test.xlsx
    17.5 KB · Views: 5
Hello @hreyo25,
Not sure if you are looking for VBA code that does this, but here is a formula you can use:

In cell B36, put the following array formula and copy down:
=MAX(($E$1:$AH$30=$A36)*$E$31:$AH$31)

In cell C36, put the following array formula and copy down:
=MAX(($E$1:$AH$30=$A36)*$D$1:$D$30)

in cell D36, put the following regular formula and copy down:
=B36*C36

Cheers,
Sajan.
 
Sajan,

When I copy your formulas in I am receiving a VALUE error. What do you think can be causing this?

Thanks
 
Hi @hreyo25,
As Sam pointed out, array formulas are special formulas that need to be entered with Ctrl + Shift + Enter, instead of just the Enter key. You would be able to confirm the array formula by noticing that the formula becomes enclosed in {}

Cheers,
Sajan.
 
Back
Top