STDEV With 3 Criteria

DHAMMOND

New Member
Joined
May 1, 2018
Messages
5
Hello,

I have an STDEV array that calculates with 2 criteria, but It won't calculate with three. How can I get this to work?


Works
=STDEV(IF(Amazon!$M$2:$M$54330>=Summary!D6-52,IF(Amazon!$M$2:$M$54330<=Summary!D6-7,Amazon!$I$2:$I$54330)))

=STDEV(IF([All Dates]>=[Start Date],IF([All Dates]<=[End Date],[Sales])))



Errors
=STDEV(IF(Amazon!$M$2:$M$54330>=Summary!D6-52,IF(Amazon!$M$2:$M$54330<=Summary!D6-7,IF(Amazon!$E$2:$E$54330=F28,Amazon!$I$2:$I$54330))))

=STDEV(IF([All Dates]>=[Start Date],IF([All Dates]<=[End Date],[Brand],[Sales]))))
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Bit hard to tell without the exact nature of the columns, but try:

{=STDEV(
IF(Amazon!$E$2:$E$54330=F28,Amazon!$I$2:$I$54330
IF(Amazon!$M$2:$M$54330>=Summary!D6-52,
IF(Amazon!$M$2:$M$54330<=Summary!D6-7,
))))}

I think its just a case of putting the third argument 1st.

Hope it works, I have constant probs with the STDEV formula.

Cheers,

Sam
 
Upvote 0
Assuming that the formula is entered in the Summary sheet...

=STDEV(IF(Amazon!$M$2:$M$54330>=D6-52,IF(Amazon!$M$2:$M$54330<=D6-7,IF(Amazon!$E$2:$E$54330=F28,Amazon!$I$2:$I$54330))))

succeeds to return a numeric value. What is the error you get?
 
Upvote 0
Aladin, your post made me ponder the formatting of Amazon!$E$2:$E$54330.

Like a noob, i did not have it formatted as text. It was formatted as general. I didn't know it would make a difference in this case, but it does.

Cheers guys. Thank you both
 
Upvote 0

Forum statistics

Threads
1,214,992
Messages
6,122,631
Members
449,095
Latest member
bsb1122

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