Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 66
Default MODE calc where more than one mode number!

Hi all,
When I carry out a MODE calc on a range of numbers, if there is more than
one mode, the calc is returning the first mode encountered:

0 0 4 2 2 1

In the range of six numbers above there is no clear mode as both '0' and '2'
occur twice. My calc returns '0' as the mode (presumably because this is the
first occuring mode that it encounters?). However this is no good to me,
where there is no clear mode I need the calc to return a blank cell (not an
Iserror).

Present formula:

=MODE(OFFSET(G950,,,-6,))

Can't find any help on this at all, if someone knows a way around my problem
it'd be much appreciated.

Cheers,
Steve.
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 5,441
Default MODE calc where more than one mode number!

You can do it by extracting the second mode, and counting / comparing the
instances of the first and second modes...

Array enter (enter using Ctrl-Shift-Enter) the formula

=IF(COUNTIF(G945:G950,MODE(IF(G945:G950<MODE(G945 :G950),G945:G950)))=COUNTIF(G945:G950,MODE(G945:G9 50)),"",MODE(G945:G950))

Or, in keeping with your offset style:

=IF(COUNTIF(OFFSET(G950,,,-6,),MODE(IF(OFFSET(G950,,,-6,)<MODE(OFFSET(G950,,,-6,)),OFFSET(G950,,,-6,))))=COUNTIF(OFFSET(G950,,,-6,),MODE(OFFSET(G950,,,-6,))),"",MODE(OFFSET(G950,,,-6,)))


HTH,
Bernie
MS Excel MVP



"Struggling in Sheffield"
wrote in message ...
Hi all,
When I carry out a MODE calc on a range of numbers, if there is more than
one mode, the calc is returning the first mode encountered:

0 0 4 2 2 1

In the range of six numbers above there is no clear mode as both '0' and
'2'
occur twice. My calc returns '0' as the mode (presumably because this is
the
first occuring mode that it encounters?). However this is no good to me,
where there is no clear mode I need the calc to return a blank cell (not
an
Iserror).

Present formula:

=MODE(OFFSET(G950,,,-6,))

Can't find any help on this at all, if someone knows a way around my
problem
it'd be much appreciated.

Cheers,
Steve.


  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 66
Default MODE calc where more than one mode number!

Cheers Bernie, that works spot on.
Thanks very much,
Steve.

"Bernie Deitrick" wrote:

You can do it by extracting the second mode, and counting / comparing the
instances of the first and second modes...

Array enter (enter using Ctrl-Shift-Enter) the formula

=IF(COUNTIF(G945:G950,MODE(IF(G945:G950<MODE(G945 :G950),G945:G950)))=COUNTIF(G945:G950,MODE(G945:G9 50)),"",MODE(G945:G950))

Or, in keeping with your offset style:

=IF(COUNTIF(OFFSET(G950,,,-6,),MODE(IF(OFFSET(G950,,,-6,)<MODE(OFFSET(G950,,,-6,)),OFFSET(G950,,,-6,))))=COUNTIF(OFFSET(G950,,,-6,),MODE(OFFSET(G950,,,-6,))),"",MODE(OFFSET(G950,,,-6,)))


HTH,
Bernie
MS Excel MVP



"Struggling in Sheffield"
wrote in message ...
Hi all,
When I carry out a MODE calc on a range of numbers, if there is more than
one mode, the calc is returning the first mode encountered:

0 0 4 2 2 1

In the range of six numbers above there is no clear mode as both '0' and
'2'
occur twice. My calc returns '0' as the mode (presumably because this is
the
first occuring mode that it encounters?). However this is no good to me,
where there is no clear mode I need the calc to return a blank cell (not
an
Iserror).

Present formula:

=MODE(OFFSET(G950,,,-6,))

Can't find any help on this at all, if someone knows a way around my
problem
it'd be much appreciated.

Cheers,
Steve.



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
Mkae Mode function return "" instead of #N/A when there is no Mode Tonso Excel Discussion (Misc queries) 2 March 10th 07 05:10 PM
Open CSV causes calculation in manual calc mode [email protected] Excel Discussion (Misc queries) 0 July 25th 06 09:22 PM
Calc mode display on worksheet Robert Excel Worksheet Functions 7 January 6th 06 03:29 PM
Combo Box goes to edit mode even if design mode is in OFF position Chas Excel Discussion (Misc queries) 0 January 7th 05 07:21 PM
coverting answer from Radian mode to degree mode Xmastrzman Excel Worksheet Functions 1 November 10th 04 04:45 PM


All times are GMT +1. The time now is 05:17 AM.

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"