PC Review


Reply
Thread Tools Rate Thread

Count Uniques in Column, put result in next blank cell and continueuntil last row

 
 
S Himmelrich
Guest
Posts: n/a
 
      15th Jan 2008
The subject seems to be easy, but I'm not finding any helpful code
that provides insight to doing this. Can anyone help me out on this
one?
 
Reply With Quote
 
 
 
 
merjet
Guest
Posts: n/a
 
      15th Jan 2008
You could describe your problem better. An example
would probably help. Maybe the menu Data | Filter |
Advanced Filter | Unique Records Only can get you
started.

Hth,
Merjet

 
Reply With Quote
 
ryguy7272
Guest
Posts: n/a
 
      15th Jan 2008
Easy one:
=SUMPRODUCT((A2:A78<>"")/(COUNTIF(A2:A78,A2:A78&"")))

=SUM(IF(FREQUENCY(IF(LEN(A2:A971)>0,MATCH(A2:A971,A2:A971,0),""),IF(LEN(A2:A971)>0,MATCH(A2:A971,A2:A971,0),""))>0,1))
Note: this is entered with Ctrl+Shift+Enter

=COUNT(1/FREQUENCY(A1:A400,A1:A400))

=SUM(--(FREQUENCY(IF(A2:A2677<>"",MATCH(A2:A2677,A2:A2677,0)),ROW(INDIRECT("1:"&ROWS(A2:A2677))))>0))
Note: this is entered with Ctrl+Shift+Enter


Regards,
Ryan--




--
RyGuy


"S Himmelrich" wrote:

> The subject seems to be easy, but I'm not finding any helpful code
> that provides insight to doing this. Can anyone help me out on this
> one?
>

 
Reply With Quote
 
S Himmelrich
Guest
Posts: n/a
 
      15th Jan 2008
Let my try again.....for clarification:

Column A (now)

A
A
A
N
N
N
N
[blank cell] result should be "2" -> keep going
A
A
J
L
F
F
F
[blank cell] result should be "4"-> keep going until you get to the
end of the spreadsheet.

 
Reply With Quote
 
S Himmelrich
Guest
Posts: n/a
 
      15th Jan 2008
Your first example with changes to the range work. Correct result,
however I need to put this in a macro that starts at C1 and loops
through each row and places the calculation that now works on the next
blank cell in that row and continue until the macro is and the end of
the column with no more data........I know this is simple, but I've
had a especially difficult time finding something on this one.

On Jan 15, 11:48*am, ryguy7272 <ryguy7...@discussions.microsoft.com>
wrote:
> Easy one:
> =SUMPRODUCT((A2:A78<>"")/(COUNTIF(A2:A78,A2:A78&"")))
>
> =SUM(IF(FREQUENCY(IF(LEN(A2:A971)>0,MATCH(A2:A971,A2:A971,0),""),IF(LEN(A2:*A971)>0,MATCH(A2:A971,A2:A971,0),""))>0,1))
> Note: *this is entered with Ctrl+Shift+Enter
>
> =COUNT(1/FREQUENCY(A1:A400,A1:A400))
>
> =SUM(--(FREQUENCY(IF(A2:A2677<>"",MATCH(A2:A2677,A2:A2677,0)),ROW(INDIRECT(*"1:"&ROWS(A2:A2677))))>0))
> Note: *this is entered with Ctrl+Shift+Enter
>
> Regards,
> Ryan--
>
> --
> RyGuy
>
>
>
> "S Himmelrich" wrote:
> > The subject seems to be easy, but I'm not finding any helpful code
> > that provides insight to doing this. Can anyone help me out on this
> > one?- Hide quoted text -

>
> - Show quoted text -


 
Reply With Quote
 
S Himmelrich
Guest
Posts: n/a
 
      15th Jan 2008
On Jan 15, 11:43*am, merjet <mer...@comcast.net> wrote:
> You could describe your problem better. An example
> would probably help. Maybe the menu Data | Filter |
> Advanced Filter | Unique Records Only can get you
> started.
>
> Hth,
> Merjet


A macro that does this:

Let my try again.....for clarification:

Column A (now)


A
A
A
N
N
N
N
[blank cell] result should be "2" -> keep going
A
A
J
L
F
F
F
[blank cell] result should be "4"-> keep going until you get to the
end of the spreadsheet.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count Uniques in Col H, Result in Blank Cell, For Each Next Loop ryguy7272 Microsoft Excel Programming 4 11th Nov 2008 03:43 PM
Count Uniques in Column G Until Change in Column C, then Restart C ryguy7272 Microsoft Excel Programming 5 7th Nov 2008 11:11 AM
count uniques in same column, post in blank cell, repeat until end ofspreadsheet S Himmelrich Microsoft Excel Programming 2 15th Jan 2008 07:31 PM
Count blank cell in a column shantanu Microsoft Excel Programming 2 5th Apr 2007 04:28 AM
Count Uniques within a list based on value of cell... =?Utf-8?B?TWVhdExpZ2h0bmluZw==?= Microsoft Excel Misc 3 20th Mar 2006 05:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:37 PM.