A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Formular for the SECOND highest frequency



 
 
Thread Tools Display Modes
  #1  
Old March 27th, 2009, 01:13 AM posted to microsoft.public.excel.newusers
wilchong via OfficeKB.com
external usenet poster
 
Posts: 94
Default Formular for the SECOND highest frequency

Dear sir,
I have an excel formular which involve 5 cells, A1, B1, C1, D1 and E1. The
value in cell from A1 to E1 is 2, 6, 2, 2 and 6.
In the cell of H1, I place an Excel formular, MODE(A1:E1) and the result
shown "2", which mean "2" is the value that occurs the most frequently in my
data set.

My question is that I want to know is there other excel formular which can
shown the SECOND highest frequency ? In my example, "6" is the value that
occurs the SECOND most frequently.

I hope you can advice me on this. Many thanks,
Wilchong

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

  #2  
Old March 27th, 2009, 03:49 AM posted to microsoft.public.excel.newusers
T. Valko
external usenet poster
 
Posts: 15,759
Default Formular for the SECOND highest frequency

One way...

Array entered** :

=MODE(IF(A1:E1H1,A1:E1))

** 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.

If there isn't a "2nd mode" the formula will return #N/A.

--
Biff
Microsoft Excel MVP


"wilchong via OfficeKB.com" u43231@uwe wrote in message
news:93af384d7849c@uwe...
Dear sir,
I have an excel formular which involve 5 cells, A1, B1, C1, D1 and E1. The
value in cell from A1 to E1 is 2, 6, 2, 2 and 6.
In the cell of H1, I place an Excel formular, MODE(A1:E1) and the result
shown "2", which mean "2" is the value that occurs the most frequently in
my
data set.

My question is that I want to know is there other excel formular which can
shown the SECOND highest frequency ? In my example, "6" is the value
that
occurs the SECOND most frequently.

I hope you can advice me on this. Many thanks,
Wilchong

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



  #3  
Old March 27th, 2009, 04:07 AM posted to microsoft.public.excel.newusers
wilchong via OfficeKB.com
external usenet poster
 
Posts: 94
Default Formular for the SECOND highest frequency

Dear Mr. Valko,
Many thanks for your suggestion. However, the result showing "0" after array
entered the formula. How come it will happen in this way?

Thanks,
Wilchong

T. Valko wrote:
One way...

Array entered** :

=MODE(IF(A1:E1H1,A1:E1))

** 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.

If there isn't a "2nd mode" the formula will return #N/A.

Dear sir,
I have an excel formular which involve 5 cells, A1, B1, C1, D1 and E1. The

[quoted text clipped - 11 lines]
I hope you can advice me on this. Many thanks,
Wilchong


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...l-new/200903/1

  #4  
Old March 27th, 2009, 04:26 AM posted to microsoft.public.excel.newusers
T. Valko
external usenet poster
 
Posts: 15,759
Default Formular for the SECOND highest frequency

You must have empty cells in your range.

To account for empty cells...(still array entered):

=MODE(IF((A1:E1H1)*(A1:E1""),A1:E1))

--
Biff
Microsoft Excel MVP


"wilchong via OfficeKB.com" u43231@uwe wrote in message
news:93b0bb5ac784c@uwe...
Dear Mr. Valko,
Many thanks for your suggestion. However, the result showing "0" after
array
entered the formula. How come it will happen in this way?

Thanks,
Wilchong

T. Valko wrote:
One way...

Array entered** :

=MODE(IF(A1:E1H1,A1:E1))

** 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.

If there isn't a "2nd mode" the formula will return #N/A.

Dear sir,
I have an excel formular which involve 5 cells, A1, B1, C1, D1 and E1.
The

[quoted text clipped - 11 lines]
I hope you can advice me on this. Many thanks,
Wilchong


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...l-new/200903/1



  #5  
Old March 27th, 2009, 05:32 AM posted to microsoft.public.excel.newusers
wilchong via OfficeKB.com
external usenet poster
 
Posts: 94
Default Formular for the SECOND highest frequency

Dear Mr. Valko,
I think I am very stupid. I place the formula: =MODE(IF((A1:E1H1)*(A1:
E1""),A1:E1)) in the cell of H1, the result still the same, return a “0”.
Of course, I entered the formula with array key!

When you said “I must have empty cells in the range”, what is actually mean
when I place the formula ?


Very sorry for my ignorant!

Many thanks,
Wilchong





T. Valko wrote:
You must have empty cells in your range.

To account for empty cells...(still array entered):

=MODE(IF((A1:E1H1)*(A1:E1""),A1:E1))

Dear Mr. Valko,
Many thanks for your suggestion. However, the result showing "0" after

[quoted text clipped - 23 lines]
I hope you can advice me on this. Many thanks,
Wilchong


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

  #6  
Old March 27th, 2009, 05:53 AM posted to microsoft.public.excel.newusers
T. Valko
external usenet poster
 
Posts: 15,759
Default Formular for the SECOND highest frequency

If you entered the formula in H1 then you'd get a circular reference
warning. If you cancel the warning then you'd get a result of 0.

DON'T ENTER THE FORMULA IN CELL H1.

--
Biff
Microsoft Excel MVP


"wilchong via OfficeKB.com" u43231@uwe wrote in message
news:93b17ae4deb83@uwe...
Dear Mr. Valko,
I think I am very stupid. I place the formula: =MODE(IF((A1:E1H1)*(A1:
E1""),A1:E1)) in the cell of H1, the result still the same, return a "0".
Of course, I entered the formula with array key!

When you said "I must have empty cells in the range", what is actually
mean
when I place the formula ?


Very sorry for my ignorant!

Many thanks,
Wilchong





T. Valko wrote:
You must have empty cells in your range.

To account for empty cells...(still array entered):

=MODE(IF((A1:E1H1)*(A1:E1""),A1:E1))

Dear Mr. Valko,
Many thanks for your suggestion. However, the result showing "0" after

[quoted text clipped - 23 lines]
I hope you can advice me on this. Many thanks,
Wilchong


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



  #7  
Old March 27th, 2009, 06:18 AM posted to microsoft.public.excel.newusers
wilchong via OfficeKB.com
external usenet poster
 
Posts: 94
Default Formular for the SECOND highest frequency

Dear Mr. Valko
I placed your suggested Excel formula in the cell of H20. The result showing
"6". It is exactly what I want. I finally understand implication of the
formula!

Many thanks,
Wilson






T. Valko wrote:
If you entered the formula in H1 then you'd get a circular reference
warning. If you cancel the warning then you'd get a result of 0.

DON'T ENTER THE FORMULA IN CELL H1.

Dear Mr. Valko,
I think I am very stupid. I place the formula: =MODE(IF((A1:E1H1)*(A1:

[quoted text clipped - 21 lines]
I hope you can advice me on this. Many thanks,
Wilchong


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...l-new/200903/1

  #8  
Old March 27th, 2009, 06:23 AM posted to microsoft.public.excel.newusers
T. Valko
external usenet poster
 
Posts: 15,759
Default Formular for the SECOND highest frequency

Ok, good deal. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"wilchong via OfficeKB.com" u43231@uwe wrote in message
news:93b1e1f135352@uwe...
Dear Mr. Valko
I placed your suggested Excel formula in the cell of H20. The result
showing
"6". It is exactly what I want. I finally understand implication of the
formula!

Many thanks,
Wilson






T. Valko wrote:
If you entered the formula in H1 then you'd get a circular reference
warning. If you cancel the warning then you'd get a result of 0.

DON'T ENTER THE FORMULA IN CELL H1.

Dear Mr. Valko,
I think I am very stupid. I place the formula:
=MODE(IF((A1:E1H1)*(A1:

[quoted text clipped - 21 lines]
I hope you can advice me on this. Many thanks,
Wilchong


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...l-new/200903/1



  #9  
Old March 27th, 2009, 06:46 AM posted to microsoft.public.excel.newusers
wilchong via OfficeKB.com
external usenet poster
 
Posts: 94
Default Formular for the SECOND highest frequency

Actually your first formular also can be worked, but one key point, I didn't
realised that the highest frequency value should be shown in the cell of H1
first. As a result, your formular show "2", which is the highest frequency
value.

Many thanks for your time!

Wilchong




T. Valko wrote:
Ok, good deal. Thanks for the feedback!

Dear Mr. Valko
I placed your suggested Excel formula in the cell of H20. The result

[quoted text clipped - 16 lines]
I hope you can advice me on this. Many thanks,
Wilchong


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...l-new/200903/1

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:59 PM.


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