MODE.SNGL calculates a value of 0 when few values of 187 points are 0 (only 3)

%3CLINGO-SUB%20id%3D%22lingo-sub-2617170%22%20slang%3D%22en-US%22%3EMODE.SNGL%20calculates%20a%20value%20of%200%20when%20few%20values%20of%20187%20points%20are%200%20(only%203)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2617170%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20vertical%20array%20of%20187%20values%20that%20vary%20from%200-100.%20Only%20three%20of%20the%20values%20are%200.%20The%20average%20and%20the%20median%20are%26nbsp%3B%2017%20an%2018%2C%20respectively.%20Why%20does%20the%20MODE.SNGL%20calculate%200%3F%20Seems%20it%20should%20be%20closer%20to%20the%20average%20and%20median%20values%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2617170%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2617544%22%20slang%3D%22en-US%22%3ERe%3A%20MODE.SNGL%20calculates%20a%20value%20of%200%20when%20few%20values%20of%20187%20points%20are%200%20(only%203)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2617544%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F127945%22%20target%3D%22_blank%22%3E%40Hans%20Vogelaar%3C%2FA%3E%26nbsp%3BBrilliant%2C%20Hans!%20And%20thanks%20for%20the%20quick%20reply!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20hadn't%20considered%20the%20thought%20that%20it%20was%20literally%20looking%20for%20EXACT%20values.%20There%20were%203%20values%20that%20were%20exactly%200%2C%20while%20there%20were%20probably%20no%20other%20values%20that%20occurred%20even%20twice%2C%20i.e.%2C%20the%20other%20values%20were%20of%20the%20order%2019.91814%2C%20ranging%20from%200%20to%2031.%20So%20I%20after%20I%20used%20the%26nbsp%3BROUND%20function%20on%20the%20data%2C%20creating%20whole%20numbers%20for%20the%20data%20(like%2017)%20it%20returned%20a%20MODE%20of%2019%20for%20the%20data.%20This%20looks%20completely%20valid%2C%20as%20the%20Mean%20and%20Median%20of%20the%20data%20were%2016.847%20and%2017.75%2C%20respectively.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAgain%2C%20thanks%20for%20the%20quick%20help!%3C%2FP%3E%3CP%3EBest%20regards%2C%3C%2FP%3E%3CP%3EScott%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2617274%22%20slang%3D%22en-US%22%3ERe%3A%20MODE.SNGL%20calculates%20a%20value%20of%200%20when%20few%20values%20of%20187%20points%20are%200%20(only%203)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2617274%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1121678%22%20target%3D%22_blank%22%3E%40rsmccle%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMODE.SNGL%20returns%20the%20value%20that%20occurs%20most%20frequently.%20If%20there%20is%20more%20than%20one%20such%20value%2C%20it%20returns%20the%20first%20one%20it%20encounters.%3C%2FP%3E%0A%3CP%3ESo%20if%20there%20are%20no%20values%20in%20your%20array%20that%20occur%204%20or%20more%20times%2C%20it%20is%20quite%20possible%20that%20MODE.SNGL%20returns%200.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I have a vertical array of 187 values that vary from 0-100. Only three of the values are 0. The average and the median are  17 an 18, respectively. Why does the MODE.SNGL calculate 0? Seems it should be closer to the average and median values?

2 Replies

@rsmccle 

MODE.SNGL returns the value that occurs most frequently. If there is more than one such value, it returns the first one it encounters.

So if there are no values in your array that occur 4 or more times, it is quite possible that MODE.SNGL returns 0.

@Hans Vogelaar Brilliant, Hans! And thanks for the quick reply!

 

I hadn't considered the thought that it was literally looking for EXACT values. There were 3 values that were exactly 0, while there were probably no other values that occurred even twice, i.e., the other values were of the order 19.91814, ranging from 0 to 31. So I after I used the ROUND function on the data, creating whole numbers for the data (like 17) it returned a MODE of 19 for the data. This looks completely valid, as the Mean and Median of the data were 16.847 and 17.75, respectively.

 

Again, thanks for the quick help!

Best regards,

Scott