LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
Peter Bernadyne
 
Posts: n/a
Default Challenge: Unique Values via Formulas


I was wondering if there was a way to return unique values in a column
from another column which contains duplicates. I already have a number
of macros to do this (and I'm aware of Filtering) but I was wondering if
there was a formulaic solution one might try to implement something like
this within a spreadsheet to keep this light and simple without having
to resort to these other methods. I think there should be a way.

To illustrate, say I have the following in column A:

A
A
B
C
C
D
D
D
D
E
F
F
G
G

The goal would be to return A-G IN CONTIGIUOUS cells in Column B (or
some other column). I should mention that using "helper" columns (such
as those containing the count of the value in column A for offset
purposes) would be okay, of course (as long as it's limited to a few of
them, say in B-D and my results column is D or something like that).

Thus far, I've been thinking along the lines of (for rows 2 and
greater):

Helper column B:

=COUNTIF(A:A,A2) ...[For Cell A2, and similar, copied down]

Results column C:

=OFFSET($A$1,SUM(OFFSET(B2,0,0):OFFSET(B2,(-1*ROW())+1,0)),0)

But this isn't quite doing it.

I'd love to collaborate on this, if anyone is willing.

Thanks,

-Petee


--
Peter Bernadyne
------------------------------------------------------------------------
Peter Bernadyne's Profile: http://www.excelforum.com/member.php...fo&userid=7017
View this thread: http://www.excelforum.com/showthread...hreadid=526791

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
My formulas will not pick up pasted values Richard Keay Excel Worksheet Functions 0 February 16th 06 04:30 PM
Formulas in are turning into values for no reason Steve Excel Worksheet Functions 1 February 4th 06 06:13 PM
create list of unique values from a column with repeated values? Chad Schaben Excel Worksheet Functions 1 July 8th 05 10:25 PM
display values of formulas in Excel Binyaaust Excel Worksheet Functions 1 April 14th 05 12:35 PM
Count number of Unique values Alan Excel Worksheet Functions 4 January 6th 05 08:05 PM


All times are GMT +1. The time now is 11:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"