Technology Get the latest on technology, electronics and software…

Excel help

Thread Tools
 
Old Dec 3, 2009 | 12:17 PM
  #1  
hornyleprechaun's Avatar
Thread Starter
Bent = #1
 
Joined: Dec 2001
Posts: 13,473
Likes: 25
From: Marietta, GA
Excel help

<table>
<tr><td>Column A</td></tr>
<tr><td>A</td></tr>
<tr><td>B</td></tr>
<tr><td>C</td></tr>
<tr><td>C</td></tr>
<tr><td>C</td></tr>
<tr><td>B</td></tr>
<tr><td>B</td></tr>
</table>

I want another column to list the values from Column A, but only once (A,B,C). Is there a formula that will go down the column and only list the values once. I want to avoid using a macro if possible.
Reply
Old Dec 3, 2009 | 12:30 PM
  #2  
stogie1020's Avatar
Needs more Lemon Pledge
 
Joined: Mar 2005
Posts: 52,768
Likes: 2,000
From: Phoenix, AZ
:ibanachosticwrtitesavbscript:
Reply
Old Dec 3, 2009 | 12:36 PM
  #3  
rza49311's Avatar
Drifting
iTrader: (1)
 
Joined: Feb 2006
Posts: 3,072
Likes: 8
From: Southern VA
Originally Posted by stogie1020
:ibanachosticwrtitesavbscript:
+1

you could use the concatenate function if column A's number of rows is static..

=CONCATENATE(A1,",",A2,",",A3,",",A4)

Last edited by rza49311; Dec 3, 2009 at 12:39 PM.
Reply
Old Dec 3, 2009 | 12:37 PM
  #4  
hornyleprechaun's Avatar
Thread Starter
Bent = #1
 
Joined: Dec 2001
Posts: 13,473
Likes: 25
From: Marietta, GA
I can do it in VB, but this isn't for me, so I'd like to keep it away from VB. I think the only way to do it is VB though.
Reply
Old Dec 3, 2009 | 12:39 PM
  #5  
hornyleprechaun's Avatar
Thread Starter
Bent = #1
 
Joined: Dec 2001
Posts: 13,473
Likes: 25
From: Marietta, GA
List won't be static.. and the rows will be added randomly (A,C,B,B,C,C)
Reply
Old Dec 3, 2009 | 12:41 PM
  #6  
Anachostic's Avatar
Safety Car
 
Joined: Jul 2007
Posts: 4,845
Likes: 145
I see a lot of mentioning of using Advanced Filter. Does this have to be real-time updating?
Reply
Old Dec 3, 2009 | 12:55 PM
  #7  
hornyleprechaun's Avatar
Thread Starter
Bent = #1
 
Joined: Dec 2001
Posts: 13,473
Likes: 25
From: Marietta, GA
Worksheet 2 will be linked to Worksheet 1. Worksheet 1 will contain the list of Column A, while Worksheet 2 will just need A,B,C listed even if A appears 50 times.
Reply
Old Dec 3, 2009 | 01:31 PM
  #8  
svtmike's Avatar
Team Owner
20 Year Member
Liked
Loved
Community Favorite
 
Joined: Oct 2003
Posts: 37,701
Likes: 3,897
From: Chicago
Excel 2007 has this built in. Data ribbon, Data Tools section, "Remove Duplicates".
Reply
Old Dec 3, 2009 | 02:35 PM
  #9  
Anachostic's Avatar
Safety Car
 
Joined: Jul 2007
Posts: 4,845
Likes: 145
Not much help, but this would be trivial in Access. SQL has the DISTINCT keyword to do just what you want. It's a shame Excel doesn't have something similar.
Reply
Old Dec 3, 2009 | 02:42 PM
  #10  
hornyleprechaun's Avatar
Thread Starter
Bent = #1
 
Joined: Dec 2001
Posts: 13,473
Likes: 25
From: Marietta, GA
Originally Posted by svtmike
Excel 2007 has this built in. Data ribbon, Data Tools section, "Remove Duplicates".
Not what I need, but thanks.

Originally Posted by Anachostic
Not much help, but this would be trivial in Access. SQL has the DISTINCT keyword to do just what you want. It's a shame Excel doesn't have something similar.
Yeah wish it were in Access.
Reply
Old Dec 3, 2009 | 02:48 PM
  #11  
svtmike's Avatar
Team Owner
20 Year Member
Liked
Loved
Community Favorite
 
Joined: Oct 2003
Posts: 37,701
Likes: 3,897
From: Chicago
Originally Posted by hornyleprechaun
Not what I need, but thanks.
Pivot table?
Reply
Old Dec 3, 2009 | 03:09 PM
  #12  
hornyleprechaun's Avatar
Thread Starter
Bent = #1
 
Joined: Dec 2001
Posts: 13,473
Likes: 25
From: Marietta, GA
Originally Posted by svtmike
Pivot table?
No..
Reply
Old Dec 3, 2009 | 03:15 PM
  #13  
Anachostic's Avatar
Safety Car
 
Joined: Jul 2007
Posts: 4,845
Likes: 145
Excel 2007?

I've been playing around trying to use a linked datasource back to the existing file and using MS Query to get a distinct list of values from Sheet1. Yeah, it worked, but when I closed and reopened the file it couldn't reconnect the datasource. Might be because I saved as Excel 2003. I'm also not sure what would happen if the file was moved from its original location.

Might be something for you to try out.
Reply
Old Dec 3, 2009 | 03:16 PM
  #14  
hornyleprechaun's Avatar
Thread Starter
Bent = #1
 
Joined: Dec 2001
Posts: 13,473
Likes: 25
From: Marietta, GA
Figured it out woooo

=IFERROR(IF(OR(G3="",G3=21000),"",SMALL(F3:F2579,C OUNTIF(F3:F2579,"<="&G3)+1)),"")

Don't know what the hell it means, but it works.
Reply
Old Dec 3, 2009 | 03:22 PM
  #15  
Anachostic's Avatar
Safety Car
 
Joined: Jul 2007
Posts: 4,845
Likes: 145
:headExplodes:

Last edited by Anachostic; Dec 3, 2009 at 03:23 PM. Reason: gross
Reply
Old Dec 3, 2009 | 03:30 PM
  #16  
hornyleprechaun's Avatar
Thread Starter
Bent = #1
 
Joined: Dec 2001
Posts: 13,473
Likes: 25
From: Marietta, GA
O don't worry I have no idea what that function does but it was on one of the tabs in the file.. I played around with it and now it works. Even after some research I still don't know what it does.

Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Yumcha
Automotive News
70
Dec 7, 2020 05:39 PM
Yumcha
Automotive News
4
Aug 15, 2019 12:58 PM
08_UA7_Gr33k
Member Cars for Sale
13
Feb 11, 2016 02:17 PM
InFaMouSLink
Car Parts for Sale
6
Oct 27, 2015 06:52 PM
08_UA7_Gr33k
Member Cars for Sale
1
Sep 27, 2015 01:56 PM




All times are GMT -5. The time now is 12:32 PM.