newexceluser1
New Member
- Joined
- Oct 12, 2018
- Messages
- 3
Hello,
I am currently looking for a way to exclude a referenced Cell from an Excel formula but I'm fairly new to Excel. The function I am currently using is used to generate a referenced Cell based on "duplicated" information in the Cell (IE. If A1 has "Text", and A4 has "Text", C3 will generate "A4" as text) within the range. Here's a summary of what I'm trying to do as well as where the issue lies:
Expected
Cell A2 has "Test" text inputted
Cell A4 has "Test" text inputted
Cell C2 searches through range A2:A300 for any cells that contain the same text and then spits out the referenced Cell as text (NOT the contents of the referenced cell)
Cell C2 generates "$A$4", desired result
Cell C4 generates "$A$4", not desired result (should be $A$2)
Here is the function being used: =CELL("address",INDEX($A$2:$A$300,MATCH(A2,$A$2:$A$300,1)))
The byproduct of using this function is that the referenced Cell that is generated always seems to be the last "duplicate" within the range, but this is fine.
Example
A2 = Test
C2 = A$2$
A2 = Test
A4 = Test
C2 = A$4$
A2 = Test
A4 = Test
A8 = Test
C2 = A$8$
Is the function/formula I am looking for possible? Any help or guidance would be greatly appreciated.
I am currently looking for a way to exclude a referenced Cell from an Excel formula but I'm fairly new to Excel. The function I am currently using is used to generate a referenced Cell based on "duplicated" information in the Cell (IE. If A1 has "Text", and A4 has "Text", C3 will generate "A4" as text) within the range. Here's a summary of what I'm trying to do as well as where the issue lies:
Expected
Cell A2 has "Test" text inputted
Cell A4 has "Test" text inputted
Cell C2 searches through range A2:A300 for any cells that contain the same text and then spits out the referenced Cell as text (NOT the contents of the referenced cell)
Cell C2 generates "$A$4", desired result
Cell C4 generates "$A$4", not desired result (should be $A$2)
Here is the function being used: =CELL("address",INDEX($A$2:$A$300,MATCH(A2,$A$2:$A$300,1)))
The byproduct of using this function is that the referenced Cell that is generated always seems to be the last "duplicate" within the range, but this is fine.
Example
A2 = Test
C2 = A$2$
A2 = Test
A4 = Test
C2 = A$4$
A2 = Test
A4 = Test
A8 = Test
C2 = A$8$
Is the function/formula I am looking for possible? Any help or guidance would be greatly appreciated.