Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 247
Default Count x2 Appearance of Numeric Value in any Row

Hi All,

I have a dynamic named range "Data" that spans 8 columns and many rows.
"Data" houses non sequenced numeric values (not ascending or descending order)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 897
Default Count x2 Appearance of Numeric Value in any Row

If your range was named "myData", this formula would count the number
of times the number 1 appears in the range.

=IF(COUNTIF(myData,1)1,"Dupes!","No Dupes")

And this formula (entered as an array w/ Ctrl-Shift-Enter), will let
you know if there are any dupes at all:

=IF(COUNTA(myData)=SUM(1/COUNTIF(myData,myData)),"All Unique","Some
dupes")

Does this help?

--JP


On Mar 31, 1:40*pm, "Sam via OfficeKB.com" <u4102@uwe wrote:
Hi All,

I have a dynamic named range "Data" that spans 8 columns and many rows.
"Data" houses non sequenced numeric values (not ascending or descending order)


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 897
Default Count x2 Appearance of Numeric Value in any Row

I guess I should have paid attention to the part where you mentioned
the name of the range was "Data".

=IF(COUNTIF(Data,1)1,"Dupes!","No Dupes")

Array (Ctrl-Shift-Enter):
=IF(COUNTA(Data)=SUM(1/COUNTIF(Data,Data)),"All Unique","Some dupes")


--JP


On Mar 31, 2:01*pm, JP wrote:
If your range was named "myData", this formula would count the number
of times the number 1 appears in the range.

=IF(COUNTIF(myData,1)1,"Dupes!","No Dupes")

And this formula (entered as an array w/ Ctrl-Shift-Enter), will let
you know if there are any dupes at all:

=IF(COUNTA(myData)=SUM(1/COUNTIF(myData,myData)),"All Unique","Some
dupes")

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 247
Default Count x2 Appearance of Numeric Value in any Row

Hi JP,

I kept checking for replies yesterday but nothing showed up? Thank you very
much for your reply and assistance.

Not looking for duplicates as such but rather a summed count of a particular
number that appears twice and only twice in a row but can have multiple x2
appearances within my dynamic range.

Just a brief recap:
I would like to find the summed count of a specific (but variable) numeric
value that appears only twice (x2) in any row; the numeric value can appear
in any column. Would very much appreciate a formula using the dynamic named
range "Data" as opposed to the A1 notation style of cell referencing.

The criterion in this instance is "0" zero.

Sample Data Layout (using 5 columns, 8 rows):
0 89 0 100 0
216 100 205 70 220
0 216 218 0 206
343 99 250 323 256
234 0 211 99 214
219 134 235 500 243
205 0 0 150 214
99 0 250 0 0

Expected Results:
Looking for criterion "0": a summed count of 2 should be returned.
Rows 3 and 7 meet the criteria: explicit x2 appearance of zero (0) in any row.


Further help appreciated, if possible.

Cheers,
Sam

JP wrote:
If your range was named "myData", this formula would count the number
of times the number 1 appears in the range.


=IF(COUNTIF(myData,1)1,"Dupes!","No Dupes")


And this formula (entered as an array w/ Ctrl-Shift-Enter), will let
you know if there are any dupes at all:


=IF(COUNTA(myData)=SUM(1/COUNTIF(myData,myData)),"All Unique","Some
dupes")


Does this help?

Not looking for duplicates as such, please see above.

--JP


--
Message posted via http://www.officekb.com

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Count x2 Appearance of Numeric Value in any Row

Try this:

=SUMPRODUCT(--(MMULT((ISNUMBER(data))*(data=0),{1;1;1;1;1})=2))

That's based on your sample using 5 columns. For your real data with 8
columns change:

{1;1;1;1;1}

to:

{1;1;1;1;1;1;1;1}

Note this is limited to ~5400 rows of data.


--
Biff
Microsoft Excel MVP


"Sam via OfficeKB.com" <u4102@uwe wrote in message
news:8208d647695af@uwe...
Hi JP,

I kept checking for replies yesterday but nothing showed up? Thank you
very
much for your reply and assistance.

Not looking for duplicates as such but rather a summed count of a
particular
number that appears twice and only twice in a row but can have multiple x2
appearances within my dynamic range.

Just a brief recap:
I would like to find the summed count of a specific (but variable) numeric
value that appears only twice (x2) in any row; the numeric value can
appear
in any column. Would very much appreciate a formula using the dynamic
named
range "Data" as opposed to the A1 notation style of cell referencing.

The criterion in this instance is "0" zero.

Sample Data Layout (using 5 columns, 8 rows):
0 89 0 100 0
216 100 205 70 220
0 216 218 0 206
343 99 250 323 256
234 0 211 99 214
219 134 235 500 243
205 0 0 150 214
99 0 250 0 0

Expected Results:
Looking for criterion "0": a summed count of 2 should be returned.
Rows 3 and 7 meet the criteria: explicit x2 appearance of zero (0) in any
row.


Further help appreciated, if possible.

Cheers,
Sam

JP wrote:
If your range was named "myData", this formula would count the number
of times the number 1 appears in the range.


=IF(COUNTIF(myData,1)1,"Dupes!","No Dupes")


And this formula (entered as an array w/ Ctrl-Shift-Enter), will let
you know if there are any dupes at all:


=IF(COUNTA(myData)=SUM(1/COUNTIF(myData,myData)),"All Unique","Some
dupes")


Does this help?

Not looking for duplicates as such, please see above.

--JP


--
Message posted via http://www.officekb.com





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 247
Default Count x2 Appearance of Numeric Value in any Row

Hi Biff,

Thank you very much for your time and assistance. That's worked Great!

Cheers,
Sam

T. Valko wrote:
Try this:


=SUMPRODUCT(--(MMULT((ISNUMBER(data))*(data=0),{1;1;1;1;1})=2))


That's based on your sample using 5 columns. For your real data with 8
columns change:


{1;1;1;1;1}


to:


{1;1;1;1;1;1;1;1}


Note this is limited to ~5400 rows of data.


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200804/1

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Count x2 Appearance of Numeric Value in any Row

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Sam via OfficeKB.com" <u4102@uwe wrote in message
news:820c7bc651493@uwe...
Hi Biff,

Thank you very much for your time and assistance. That's worked Great!

Cheers,
Sam

T. Valko wrote:
Try this:


=SUMPRODUCT(--(MMULT((ISNUMBER(data))*(data=0),{1;1;1;1;1})=2))


That's based on your sample using 5 columns. For your real data with 8
columns change:


{1;1;1;1;1}


to:


{1;1;1;1;1;1;1;1}


Note this is limited to ~5400 rows of data.


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200804/1



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 897
Default Count x2 Appearance of Numeric Value in any Row

Thanks Biff. How is Excel 2007 treating you?

--JP


On Apr 1, 2:28*pm, "T. Valko" wrote:
Try this:

=SUMPRODUCT(--(MMULT((ISNUMBER(data))*(data=0),{1;1;1;1;1})=2))

That's based on your sample using 5 columns. For your real data with 8
columns change:

{1;1;1;1;1}

to:

{1;1;1;1;1;1;1;1}

Note this is limited to ~5400 rows of data.

--
Biff
Microsoft Excel MVP

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Count x2 Appearance of Numeric Value in any Row

How is Excel 2007 treating you?

I'm not real impressed with it and hardly ever use it.

There are a few new features that are positive but almost everything else is
not "as easy" as it was in previous versions (IMHO).


--
Biff
Microsoft Excel MVP


"JP" wrote in message
...
Thanks Biff. How is Excel 2007 treating you?

--JP


On Apr 1, 2:28 pm, "T. Valko" wrote:
Try this:

=SUMPRODUCT(--(MMULT((ISNUMBER(data))*(data=0),{1;1;1;1;1})=2))

That's based on your sample using 5 columns. For your real data with 8
columns change:

{1;1;1;1;1}

to:

{1;1;1;1;1;1;1;1}

Note this is limited to ~5400 rows of data.

--
Biff
Microsoft Excel MVP



Reply
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
Count Numeric Value with condition Tendresse Excel Discussion (Misc queries) 5 March 13th 08 02:33 AM
Count the number of appearance within a cell Lucy Excel Worksheet Functions 13 March 9th 08 08:56 PM
Count & Sum Consecutive (2x) appearance of Specific Numeric Values Sam via OfficeKB.com Excel Worksheet Functions 2 February 5th 07 02:44 PM
Count Intervals of 1 Numeric value in a Row and Return Count down Column Sam via OfficeKB.com Excel Worksheet Functions 8 October 4th 05 04:37 PM
Count Intervals of 2 Numeric values in same Row and Return Count across Row Sam via OfficeKB.com Excel Worksheet Functions 12 September 24th 05 10:58 PM


All times are GMT +1. The time now is 07:25 AM.

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"