Return Single Instance of Numeric Values from a Column

  • Thread starter Sam via OfficeKB.com
  • Start date
S

Sam via OfficeKB.com

Hi All,

Column "P" contains a list of values that may appear more than once. I would
like to have only ONE instance of each value returned from Column "P" (Rows 2:
40) to Column "E" (Rows 50:88) in ascending order without blank Rows from
where the duplicates would have been.

Thanks
Sam
 
R

Rowan

From the Data menu select Filter > Advanced Filter. Select Copy to Another
Location. Select P1:p40 as the list Range. Enter E50 as Copy To Range. Check
Unique Records Only. Click OK.

Then select Range E50:E88 or whatever is last row and select Data > Sort.

Hope this helds
Rowan
 
A

Aladin Akyurek

Q2:

=RANK(P2,$P$2:$P$40)

Q3, copied down:

=IF(ISNUMBER(MATCH(P3,$P$2:p2,0)),"",RANK(P3,$P$2:$P$40))

R1:

=MAX($R$2:$R$40)

R2, copied down:

=IF(N(Q2),RANK(Q2,$Q$2:$Q$40),"")

E50, copied down:

=IF(ROWS($E$50:E50)<=$R$1,INDEX($P$2:$P$40,MATCH(ROWS($E$50:E50),$R$2:$R$40,0)),"")
 
S

Sam via OfficeKB.com

Hi Aladin,

Thank you very much for your assistance: your Formulae provided the desired
results.

Cheers,
Sam

Aladin said:
Q2:

=RANK(P2,$P$2:$P$40)

Q3, copied down:

=IF(ISNUMBER(MATCH(P3,$P$2:p2,0)),"",RANK(P3,$P$2:$P$40))

R1:

=MAX($R$2:$R$40)

R2, copied down:

=IF(N(Q2),RANK(Q2,$Q$2:$Q$40),"")

E50, copied down:

=IF(ROWS($E$50:E50)<=$R$1,INDEX($P$2:$P$40,MATCH(ROWS($E$50:E50),$R$2:$R$40,0)),"")


Aladin said:
Q2:

=RANK(P2,$P$2:$P$40)

Q3, copied down:

=IF(ISNUMBER(MATCH(P3,$P$2:p2,0)),"",RANK(P3,$P$2:$P$40))

R1:

=MAX($R$2:$R$40)

R2, copied down:

=IF(N(Q2),RANK(Q2,$Q$2:$Q$40),"")

E50, copied down:

=IF(ROWS($E$50:E50)<=$R$1,INDEX($P$2:$P$40,MATCH(ROWS($E$50:E50),$R$2:$R$40,0)),"")
[quoted text clipped - 5 lines]
Thanks
Sam
 
S

Sam via OfficeKB.com

Hi Rowan,

Thank you for your solution. As the values frequently change I've gone with
Aladin's Formulae solution.

Cheers,
Sam
From the Data menu select Filter > Advanced Filter. Select Copy to Another
Location. Select P1:p40 as the list Range. Enter E50 as Copy To Range. Check
Unique Records Only. Click OK.

Then select Range E50:E88 or whatever is last row and select Data > Sort.

Hope this helds
Rowan
[quoted text clipped - 5 lines]
Thanks
Sam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top