Need some help with this STDEV formula

Peter h

Active Member
Joined
Dec 8, 2015
Messages
417
Hello. I've got this formula that I use to give me the STDEV of all data in column "E" from the previous month. It works just as it should, but I was wondering if there is any way to change it to exclude blank cells. Right now, if the cell is blank it calculates it as 0, and it throws off my calculation. Here's my formula:

Code:
{=ROUND(STDEV.P(IF(($D$7:$D$10000>EOMONTH(TODAY(),-2))*($D$7:$D$10000<eomonth(today(),-1)+1,e7:e10000)),3)}<eomonth(today(),-1)+1),e7:e10000)),3)}


<eomonth(today(),-1)+1),e7:e10000)),3)
<eomonth(today(),-1)+1),e7:e10000)),3)}
<eomonth(today(),-1)+1),e7:e10000)),3)}
<eomonth(today(),-1)+1),e7:e10000)),3)}

<EOMONTH(TODAY(),-1)+1),E7:E10000)),3)}

Thanks <eomonth(today(),-1)+1),e7:e10000)),3)}



</eomonth(today(),-1)+1),e7:e10000)),3)}
</eomonth(today(),-1)+1),e7:e10000)),3)}
</eomonth(today(),-1)+1),e7:e10000)),3)}
</eomonth(today(),-1)+1),e7:e10000)),3)}
</eomonth(today(),-1)+1),e7:e10000)),3)


Edit: I cannot get the whole formula to save in the post. Anyone have any ideas why?</eomonth(today(),-1)+1,e7:e10000)),3)}<eomonth(today(),-1)+1),e7:e10000)),3)}
 
Last edited:

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
A less than symbol ( < ) get's interpreted as the start of HTML code. Therefore, try leaving a space after a < . Actually, I usually leave a space before and after a < .
 
Upvote 0
Here's the formula:

{=ROUND(STDEV.P(IF(($D$7:$D$10000>EOMONTH(TODAY(),-2))*($D$7:$D$10000< EOMONTH(TODAY(),-1)+1),E7:E10000)),3)}

Thanks Domenic !!
 
Upvote 0
Try...

=ROUND(STDEV.P(IF(($D$7:$D$10000>EOMONTH(TODAY(),-2))*($D$7:$D$10000 < EOMONTH(TODAY(),-1)+1),IF(E7:E10000<>"",E7:E10000))),3)

...confirmed with CONTROL+SHIFT+ENTER.
 
Upvote 0

Forum statistics

Threads
1,226,113
Messages
6,189,046
Members
453,522
Latest member
Seeker2025

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top