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  

Mode function - return default value rather than #N/A error if no



 
 
Thread Tools Display Modes
  #1  
Old March 26th, 2009, 01:35 PM posted to microsoft.public.excel.newusers
Struggling in Sheffield[_2_]
external usenet poster
 
Posts: 66
Default Mode function - return default value rather than #N/A error if no

Hi,
I'm using the following expression to return the mode of a list of numbers:

=IF(H1028="","",MODE(H1028:H1031))

If the four checked cells all have values but there's no two values the same
(i.e. no mode) what I need is an expression that will return me a default
value of 2 rather than the #N/A error value.

Thanks for looking,
Steve.
  #2  
Old March 26th, 2009, 01:45 PM posted to microsoft.public.excel.newusers
Stefi
external usenet poster
 
Posts: 1,841
Default Mode function - return default value rather than #N/A error if no

=IF(ISERROR(MODE(A1028:A31)),2,MODE(A1028:A31))

Regards,
Stefi

„Struggling in Sheffield” ezt *rta:

Hi,
I'm using the following expression to return the mode of a list of numbers:

=IF(H1028="","",MODE(H1028:H1031))

If the four checked cells all have values but there's no two values the same
(i.e. no mode) what I need is an expression that will return me a default
value of 2 rather than the #N/A error value.

Thanks for looking,
Steve.

  #3  
Old March 27th, 2009, 01:02 AM posted to microsoft.public.excel.newusers
Struggling in Sheffield[_2_]
external usenet poster
 
Posts: 66
Default Mode function - return default value rather than #N/A error if

Hi Stefi,
Thank you very much, worked a treat.
Steve.

"Stefi" wrote:

=IF(ISERROR(MODE(A1028:A31)),2,MODE(A1028:A31))

Regards,
Stefi

„Struggling in Sheffield” ezt *rta:

Hi,
I'm using the following expression to return the mode of a list of numbers:

=IF(H1028="","",MODE(H1028:H1031))

If the four checked cells all have values but there's no two values the same
(i.e. no mode) what I need is an expression that will return me a default
value of 2 rather than the #N/A error value.

Thanks for looking,
Steve.

  #4  
Old March 27th, 2009, 07:31 AM posted to microsoft.public.excel.newusers
Stefi
external usenet poster
 
Posts: 1,841
Default Mode function - return default value rather than #N/A error if

You are welcome! Thanks for the feedback!
Stefi

„Struggling in Sheffield” ezt *rta:

Hi Stefi,
Thank you very much, worked a treat.
Steve.

"Stefi" wrote:

=IF(ISERROR(MODE(A1028:A31)),2,MODE(A1028:A31))

Regards,
Stefi

„Struggling in Sheffield” ezt *rta:

Hi,
I'm using the following expression to return the mode of a list of numbers:

=IF(H1028="","",MODE(H1028:H1031))

If the four checked cells all have values but there's no two values the same
(i.e. no mode) what I need is an expression that will return me a default
value of 2 rather than the #N/A error value.

Thanks for looking,
Steve.

  #5  
Old March 27th, 2009, 06:27 PM posted to microsoft.public.excel.newusers
Domenic[_2_]
external usenet poster
 
Posts: 265
Default Mode function - return default value rather than #N/A error if no

Here's another way...

=IF(H1028"",LOOKUP(9.99999999999999E+307,CHOOSE( {1,2},2,MODE(H1028:H103
1))),"")

Hope this helps!

http://www.xl-central.com

In article ,
Struggling in Sheffield
wrote:

Hi,
I'm using the following expression to return the mode of a list of numbers:

=IF(H1028="","",MODE(H1028:H1031))

If the four checked cells all have values but there's no two values the same
(i.e. no mode) what I need is an expression that will return me a default
value of 2 rather than the #N/A error value.

Thanks for looking,
Steve.

 




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 07:32 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.