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

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
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,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

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