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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|