How do I display x,y coordinates without displaying duplicate x,y coordinates?

arthurz11

Board Regular
Joined
Nov 9, 2007
Messages
158
Office Version
  1. 2021
Platform
  1. Windows
Picture1.png
 
Glad we could help & thanks for the feedback.
FWIW a slightly shorter version
Excel Formula:
=LET(f,FILTER(A2:J2,A2:J2<>""),s,SEQUENCE(COLUMNS(f)/2,,0),u,UNIQUE(INDEX(f,,s*2+{1,2})),ss,SEQUENCE(,COUNT(u),0),INDEX(u,INT(ss/2)+1,MOD(ss,2)+1))
 
Upvote 0

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Glad we could help & thanks for the feedback.
FWIW a slightly shorter version
Excel Formula:
=LET(f,FILTER(A2:J2,A2:J2<>""),s,SEQUENCE(COLUMNS(f)/2,,0),u,UNIQUE(INDEX(f,,s*2+{1,2})),ss,SEQUENCE(,COUNT(u),0),INDEX(u,INT(ss/2)+1,MOD(ss,2)+1))
FYI, The formula worked great! HOWEVER, I encountered where there were no data (x,y coordinate) at all. The results was #CALC. So what do I add at the end of this formula so it gives me a blank instead #CALC? Please help again. =LET(f,FILTER(A2:J2,A2:J2<>""),s,SEQUENCE(COLUMNS(f)/2,,0),u,UNIQUE(INDEX(f,,s*2+{1,2})),ss,SEQUENCE(COUNT(u),,0),TRANSPOSE(INDEX(u,INT(ss/2)+1,MOD(ss,2)+1)))
 
Upvote 0
How about
Excel Formula:
=LET(f,FILTER(A2:J2,A2:J2<>""),s,SEQUENCE(COLUMNS(f)/2,,0),u,UNIQUE(INDEX(f,,s*2+{1,2})),ss,SEQUENCE(,COUNT(u),0),IFERROR(INDEX(u,INT(ss/2)+1,MOD(ss,2)+1),""))
 
Upvote 0
How about
Excel Formula:
=LET(f,FILTER(A2:J2,A2:J2<>""),s,SEQUENCE(COLUMNS(f)/2,,0),u,UNIQUE(INDEX(f,,s*2+{1,2})),ss,SEQUENCE(,COUNT(u),0),IFERROR(INDEX(u,INT(ss/2)+1,MOD(ss,2)+1),""))
Thank you soo much for your help. I know that the formula is for one row and it work great! Reference to Post #1. How would I write the formula in cell L2 to check for duplicates for the entire range A2:J5? Just in case there are duplicates of x,y coordinates on another row? For example if cell I5 is -2 and cell J5 is -7, this will be an x,y coordinates of -2,-7 in row four and not just in row one. The formula in L5 of row four will not recognize -2,-7 as a duplicate from row one so -2,-7 will be displayed twice, in row one and on row four.
 
Upvote 0
As this is a different question it needs a new thread. Thanks
 
Upvote 0

Forum statistics

Threads
1,221,487
Messages
6,160,110
Members
451,619
Latest member
KunalGandhi

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top