Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 51
Default Count duplicate cell values per month

Hi experts

I need to look down column Q, R, S and T and find duplicate values for the
same month and in a new cell just put a number of times they are duplicated
on the same row

ill explain, i.e.

Q R S T
Part 1 Part 2 Part3 Part 4
30.00 30.00 0.00 0.00

So in rows Q - T 30.00 appers twice, so id like cell U e.g. to report the
number 2

I hope that makes sense

Thanks

Derek
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default Count duplicate cell values per month

This will count duplicates for you:
=SUMPRODUCT((A2:A78<"")/COUNTIF(A2:A78,A2:A78&"")*(A2:A78<""))
(starts counting in row 2; assumes title or label is in row 1)


=COUNT(1/FREQUENCY(A1:A400,A1:A400))
(does same as function above)


=SUM(IF(A2:A400<"",1/COUNTIF(A2:A400,A2:A400)))
(does same as function above; must be entered with Ctrl+Shift+Enter...not
just enter)



Regards,
Ryan---

--
RyGuy


"Derek" wrote:

Hi experts

I need to look down column Q, R, S and T and find duplicate values for the
same month and in a new cell just put a number of times they are duplicated
on the same row

ill explain, i.e.

Q R S T
Part 1 Part 2 Part3 Part 4
30.00 30.00 0.00 0.00

So in rows Q - T 30.00 appers twice, so id like cell U e.g. to report the
number 2

I hope that makes sense

Thanks

Derek

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Count duplicate cell values per month

No need for checking the blanks twice

=SUMPRODUCT((A2:A78<"")/COUNTIF(A2:A78,A2:A78&""))

will suffice


don't know if that's what the OP is asking though. He probably needs to
explain a bit more


--


Regards,


Peo Sjoblom


"ryguy7272" wrote in message
...
This will count duplicates for you:
=SUMPRODUCT((A2:A78<"")/COUNTIF(A2:A78,A2:A78&"")*(A2:A78<""))
(starts counting in row 2; assumes title or label is in row 1)


=COUNT(1/FREQUENCY(A1:A400,A1:A400))
(does same as function above)


=SUM(IF(A2:A400<"",1/COUNTIF(A2:A400,A2:A400)))
(does same as function above; must be entered with Ctrl+Shift+Enter...not
just enter)



Regards,
Ryan---

--
RyGuy


"Derek" wrote:

Hi experts

I need to look down column Q, R, S and T and find duplicate values for
the
same month and in a new cell just put a number of times they are
duplicated
on the same row

ill explain, i.e.

Q R S T
Part 1 Part 2 Part3 Part 4
30.00 30.00 0.00 0.00

So in rows Q - T 30.00 appers twice, so id like cell U e.g. to report the
number 2

I hope that makes sense

Thanks

Derek



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Count duplicate cell values per month

So, I guess that means you want to exclude 0s?

What result do you want if no value is duplicated?

This array formula** will return a blank if there are no duplicates
(excludes 0s):

=IF(MAX(FREQUENCY(IF(Q2:T2<0,Q2:T2),Q2:T2))<2,"", MAX(FREQUENCY(IF(Q2:T2<0,Q2:T2),Q2:T2)))


--
Biff
Microsoft Excel MVP


"Derek" wrote in message
...
Hi experts

I need to look down column Q, R, S and T and find duplicate values for the
same month and in a new cell just put a number of times they are
duplicated
on the same row

ill explain, i.e.

Q R S T
Part 1 Part 2 Part3 Part 4
30.00 30.00 0.00 0.00

So in rows Q - T 30.00 appers twice, so id like cell U e.g. to report the
number 2

I hope that makes sense

Thanks

Derek



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Count duplicate cell values per month

P.S.

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
So, I guess that means you want to exclude 0s?

What result do you want if no value is duplicated?

This array formula** will return a blank if there are no duplicates
(excludes 0s):

=IF(MAX(FREQUENCY(IF(Q2:T2<0,Q2:T2),Q2:T2))<2,"", MAX(FREQUENCY(IF(Q2:T2<0,Q2:T2),Q2:T2)))


--
Biff
Microsoft Excel MVP


"Derek" wrote in message
...
Hi experts

I need to look down column Q, R, S and T and find duplicate values for
the
same month and in a new cell just put a number of times they are
duplicated
on the same row

ill explain, i.e.

Q R S T
Part 1 Part 2 Part3 Part 4
30.00 30.00 0.00 0.00

So in rows Q - T 30.00 appers twice, so id like cell U e.g. to report the
number 2

I hope that makes sense

Thanks

Derek







  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Count duplicate cell values per month

Improvement:

Slightly shorter. Still array entered** :

=LOOKUP(MAX(FREQUENCY(IF(Q2:T2<0,Q2:T2),Q2:T2)),{ 0;2;3;4},{"";2;3;4})

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
P.S.

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
So, I guess that means you want to exclude 0s?

What result do you want if no value is duplicated?

This array formula** will return a blank if there are no duplicates
(excludes 0s):

=IF(MAX(FREQUENCY(IF(Q2:T2<0,Q2:T2),Q2:T2))<2,"", MAX(FREQUENCY(IF(Q2:T2<0,Q2:T2),Q2:T2)))


--
Biff
Microsoft Excel MVP


"Derek" wrote in message
...
Hi experts

I need to look down column Q, R, S and T and find duplicate values for
the
same month and in a new cell just put a number of times they are
duplicated
on the same row

ill explain, i.e.

Q R S T
Part 1 Part 2 Part3 Part 4
30.00 30.00 0.00 0.00

So in rows Q - T 30.00 appers twice, so id like cell U e.g. to report
the
number 2

I hope that makes sense

Thanks

Derek







  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 51
Default Count duplicate cell values per month

Wow, thank you so much for your replies, they work just fine, thanks again

Derek

"T. Valko" wrote:

Improvement:

Slightly shorter. Still array entered** :

=LOOKUP(MAX(FREQUENCY(IF(Q2:T2<0,Q2:T2),Q2:T2)),{ 0;2;3;4},{"";2;3;4})

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
P.S.

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
So, I guess that means you want to exclude 0s?

What result do you want if no value is duplicated?

This array formula** will return a blank if there are no duplicates
(excludes 0s):

=IF(MAX(FREQUENCY(IF(Q2:T2<0,Q2:T2),Q2:T2))<2,"", MAX(FREQUENCY(IF(Q2:T2<0,Q2:T2),Q2:T2)))


--
Biff
Microsoft Excel MVP


"Derek" wrote in message
...
Hi experts

I need to look down column Q, R, S and T and find duplicate values for
the
same month and in a new cell just put a number of times they are
duplicated
on the same row

ill explain, i.e.

Q R S T
Part 1 Part 2 Part3 Part 4
30.00 30.00 0.00 0.00

So in rows Q - T 30.00 appers twice, so id like cell U e.g. to report
the
number 2

I hope that makes sense

Thanks

Derek







  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Count duplicate cell values per month

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Derek" wrote in message
...
Wow, thank you so much for your replies, they work just fine, thanks again

Derek

"T. Valko" wrote:

Improvement:

Slightly shorter. Still array entered** :

=LOOKUP(MAX(FREQUENCY(IF(Q2:T2<0,Q2:T2),Q2:T2)),{ 0;2;3;4},{"";2;3;4})

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
P.S.

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
So, I guess that means you want to exclude 0s?

What result do you want if no value is duplicated?

This array formula** will return a blank if there are no duplicates
(excludes 0s):

=IF(MAX(FREQUENCY(IF(Q2:T2<0,Q2:T2),Q2:T2))<2,"", MAX(FREQUENCY(IF(Q2:T2<0,Q2:T2),Q2:T2)))


--
Biff
Microsoft Excel MVP


"Derek" wrote in message
...
Hi experts

I need to look down column Q, R, S and T and find duplicate values
for
the
same month and in a new cell just put a number of times they are
duplicated
on the same row

ill explain, i.e.

Q R S T
Part 1 Part 2 Part3 Part 4
30.00 30.00 0.00 0.00

So in rows Q - T 30.00 appers twice, so id like cell U e.g. to report
the
number 2

I hope that makes sense

Thanks

Derek









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
Warning while entering duplicate values in a cell Raj Mazumdar Excel Discussion (Misc queries) 2 February 28th 06 11:05 PM
Why do my cell values/words duplicate themselves over and over? stevow84 Excel Discussion (Misc queries) 1 January 31st 06 09:44 PM
Preventing user entering duplicate values in a cell range Thomas Peters Excel Worksheet Functions 1 November 30th 05 08:00 PM
Count on multiple values with duplicate rows Carla Excel Worksheet Functions 1 November 22nd 05 09:25 PM
How do I do count calculations ignoring duplicate values Robin Faulkner Excel Discussion (Misc queries) 1 March 31st 05 03:01 PM


All times are GMT +1. The time now is 05:32 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"