Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default how many duplicates in the one column

i have about 7000 rows with 5 column but one column has some duplicates i
would like to count duplicates as ones and single as ones also
A B
1 Nika Well
2 Nika Well
3 Mikaney
4 Lisa Web
5 Lisa Web

i used formula as
=sumif(IF(FREQUENCY(MATCH(B2:B5,B2:B5,0),MATCH(B2: B5,B2:B5,0))0,1))
IT GIVE ME THE WRON aSNWER because there is space after B2 cell how i can
trim it before use the Match help me any one

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default how many duplicates in the one column

Please note that this is an array formula. press CTRL+SHIFT+ENTER to enter
the formula. If successful in 'Formula Bar' you can notice the curly braces
at both ends like "{=<formula}"

=SUM(IF(FREQUENCY(MATCH(TRIM(B2:B5),TRIM(B2:B5),0) ,
MATCH(TRIM(B2:B5),TRIM(B2:B5),0))0,1))

If this post helps click Yes
---------------
Jacob Skaria


"J Walia" wrote:

i have about 7000 rows with 5 column but one column has some duplicates i
would like to count duplicates as ones and single as ones also
A B
1 Nika Well
2 Nika Well
3 Mikaney
4 Lisa Web
5 Lisa Web

i used formula as
=sumif(IF(FREQUENCY(MATCH(B2:B5,B2:B5,0),MATCH(B2: B5,B2:B5,0))0,1))
IT GIVE ME THE WRON aSNWER because there is space after B2 cell how i can
trim it before use the Match help me any one

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default how many duplicates in the one column

=SUMPRODUCT((A1:A5<"")/COUNTIF(A1:A5,A1:A5&""))


"J Walia" wrote:

i have about 7000 rows with 5 column but one column has some duplicates i
would like to count duplicates as ones and single as ones also
A B
1 Nika Well
2 Nika Well
3 Mikaney
4 Lisa Web
5 Lisa Web

i used formula as
=sumif(IF(FREQUENCY(MATCH(B2:B5,B2:B5,0),MATCH(B2: B5,B2:B5,0))0,1))
IT GIVE ME THE WRON aSNWER because there is space after B2 cell how i can
trim it before use the Match help me any one

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default how many duplicates in the one column

=SUM(IF(FREQUENCY(MATCH(TRIM(B2:B5),TRIM(B2:B5),0 ),
MATCH(TRIM(B2:B5),TRIM(B2:B5),0))0,1))


That'll count empty cells.

--
Biff
Microsoft Excel MVP


"Jacob Skaria" wrote in message
...
Please note that this is an array formula. press CTRL+SHIFT+ENTER to enter
the formula. If successful in 'Formula Bar' you can notice the curly
braces
at both ends like "{=<formula}"

=SUM(IF(FREQUENCY(MATCH(TRIM(B2:B5),TRIM(B2:B5),0) ,
MATCH(TRIM(B2:B5),TRIM(B2:B5),0))0,1))

If this post helps click Yes
---------------
Jacob Skaria


"J Walia" wrote:

i have about 7000 rows with 5 column but one column has some duplicates i
would like to count duplicates as ones and single as ones also
A B
1 Nika Well
2 Nika Well
3 Mikaney
4 Lisa Web
5 Lisa Web

i used formula as
=sumif(IF(FREQUENCY(MATCH(B2:B5,B2:B5,0),MATCH(B2: B5,B2:B5,0))0,1))
IT GIVE ME THE WRON aSNWER because there is space after B2 cell how i can
trim it before use the Match help me any one



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default how many duplicates in the one column

i have about 7000 rows
=SUMPRODUCT((A1:A5<"")/COUNTIF(A1:A5,A1:A5&""))


Array entered** :

=SUM(IF(FREQUENCY(IF(A1:A7000<"",MATCH(A1:A7000,A 1:A7000,0)),ROW(A1:A7000)-ROW(A1)+1),1))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

The array formula is significantly more efficient on a range that size.

AVG calc time on 7000 rows:

SUMPRODUCT = 2.88 secs
FREQUENCY = 0.09 secs


--
Biff
Microsoft Excel MVP


"Teethless mama" wrote in message
...
=SUMPRODUCT((A1:A5<"")/COUNTIF(A1:A5,A1:A5&""))


"J Walia" wrote:

i have about 7000 rows with 5 column but one column has some duplicates i
would like to count duplicates as ones and single as ones also
A B
1 Nika Well
2 Nika Well
3 Mikaney
4 Lisa Web
5 Lisa Web

i used formula as
=sumif(IF(FREQUENCY(MATCH(B2:B5,B2:B5,0),MATCH(B2: B5,B2:B5,0))0,1))
IT GIVE ME THE WRON aSNWER because there is space after B2 cell how i can
trim it before use the Match help me any one





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default how many duplicates in the one column

Biff, I think you have missed the point which OP is raising.

"there is space after B2 cell how i can trim it before use the Match"

If this post helps click Yes
---------------
Jacob Skaria


"T. Valko" wrote:

i have about 7000 rows

=SUMPRODUCT((A1:A5<"")/COUNTIF(A1:A5,A1:A5&""))


Array entered** :

=SUM(IF(FREQUENCY(IF(A1:A7000<"",MATCH(A1:A7000,A 1:A7000,0)),ROW(A1:A7000)-ROW(A1)+1),1))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

The array formula is significantly more efficient on a range that size.

AVG calc time on 7000 rows:

SUMPRODUCT = 2.88 secs
FREQUENCY = 0.09 secs


--
Biff
Microsoft Excel MVP


"Teethless mama" wrote in message
...
=SUMPRODUCT((A1:A5<"")/COUNTIF(A1:A5,A1:A5&""))


"J Walia" wrote:

i have about 7000 rows with 5 column but one column has some duplicates i
would like to count duplicates as ones and single as ones also
A B
1 Nika Well
2 Nika Well
3 Mikaney
4 Lisa Web
5 Lisa Web

i used formula as
=sumif(IF(FREQUENCY(MATCH(B2:B5,B2:B5,0),MATCH(B2: B5,B2:B5,0))0,1))
IT GIVE ME THE WRON aSNWER because there is space after B2 cell how i can
trim it before use the Match help me any one



.

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default how many duplicates in the one column

Biff, I think you have missed the point which OP is raising.

No, that was already answered. I was making a suggestion based on the
generic count of uniques formula TM posted with regards to "big" ranges.

--
Biff
Microsoft Excel MVP


"Jacob Skaria" wrote in message
...
Biff, I think you have missed the point which OP is raising.

"there is space after B2 cell how i can trim it before use the Match"

If this post helps click Yes
---------------
Jacob Skaria


"T. Valko" wrote:

i have about 7000 rows
=SUMPRODUCT((A1:A5<"")/COUNTIF(A1:A5,A1:A5&""))


Array entered** :

=SUM(IF(FREQUENCY(IF(A1:A7000<"",MATCH(A1:A7000,A 1:A7000,0)),ROW(A1:A7000)-ROW(A1)+1),1))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the
SHIFT
key then hit ENTER.

The array formula is significantly more efficient on a range that size.

AVG calc time on 7000 rows:

SUMPRODUCT = 2.88 secs
FREQUENCY = 0.09 secs


--
Biff
Microsoft Excel MVP


"Teethless mama" wrote in
message
...
=SUMPRODUCT((A1:A5<"")/COUNTIF(A1:A5,A1:A5&""))


"J Walia" wrote:

i have about 7000 rows with 5 column but one column has some
duplicates i
would like to count duplicates as ones and single as ones also
A B
1 Nika Well
2 Nika Well
3 Mikaney
4 Lisa Web
5 Lisa Web

i used formula as
=sumif(IF(FREQUENCY(MATCH(B2:B5,B2:B5,0),MATCH(B2: B5,B2:B5,0))0,1))
IT GIVE ME THE WRON aSNWER because there is space after B2 cell how i
can
trim it before use the Match help me any one



.



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
How can I get rid of duplicates in a column? trainer07 Excel Discussion (Misc queries) 2 March 5th 09 09:01 PM
compare data in column A with column B to find duplicates George Excel Discussion (Misc queries) 8 February 6th 09 03:53 PM
How to find duplicates within same column Frank Beltre New Users to Excel 2 September 6th 07 09:12 PM
Duplicates in column browie Excel Discussion (Misc queries) 5 August 21st 05 11:50 PM
Duplicates in 1 column Delaina Excel Discussion (Misc queries) 3 July 20th 05 04:33 PM


All times are GMT +1. The time now is 02:46 PM.

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

About Us

"It's about Microsoft Excel"