Forum Discussion
Match/Index referencing incorrect row
- May 27, 2025
Thank you, that is very helpful.
The Lift score in S66 has formula =F68.
Cell F68 contains the value 90, but it is formatted as Text. So the XLOOKUP formula in S68 does not look for the number 90 but for the text value "90". This causes the error.
If you format F68 as General or as Number, then press F2 and Enter to force Excel to reevaluate the cell, the formula in S68 will return 46 and that in S69 will return 10.
The formula is trying to answer three questions and return the correct response based on the answer of the question.
Q1 - is the subject male or female
Q2 - is the subject in a combat position
Q3 - is the subject under a profile
If the subject is male, not in a combat role, and does not have a profile, return the values from cells L70:L74
If the subject is male, in a combat role, and does not have a profile, return the values from cells M70:M74
If the subject is male, is either combat or not, and does have a profile, return the values from cells O70:O74
If the subject is female, not in a combat role, and does not have a profile, return the values from cells N70:N74
If the subject is female, in a combat role, and does not have a profile, return the values from cells M70:M74
If the subject is female, is either combat or not, and does have a profile, return the values from cells P70:P74
The scores are pulled into the table above, the formula; "=IF($D$68="YES", "0", IF($G$64="Male", IF($G$65="Yes", IF($G$66="Yes", $O$70, $M$70), IF($G$66="No", $M$70, $L$70)), IF($G$65="Yes", IF($G$66="Yes", $P$70, $M$70), $N$70)))" is referenced in the table below:
It works well for the most part, it is not properly recognizing the profile portion as the AE should show either a 59 or a 60.
This is extremely confusing. Did you mean G64:G66 instead of Q1:Q3?
Could you attach a version with results that are incorrect in your opinion?