Hi 

I have my excel dataset arranged as follows : 

*  Col K            Col T   *
APPLE               ..... 
ORANGE           ..... 
APPLE                .... 
ORANGE            .... 


In Column K, I have fruit data which is either APPLE or ORANGE. 

In Column T, I have corresponding numerical values. 

Each row has apple followed by orange data successively. 

Rows of data are added each day. 

In column W, I'm trying to compute the standard deviation of the last 7 
days worth of numerical values but for specific fruit in the samw row of 
column K. 

So if the fruit in K20 is Apple, W20 must calculate standard deviation of 
the past 7 numerical values of just apples. In K21, the same computation is 
done for Orange. 

How do I solve this with a simple line of code? 

I have tried the following : 

The code I have in row W557 is : 

{=IF($K543:$K556=K543,STDEV.S($T543:$T556))} 

This is not giving me correct values of standard deviation. 

What am I missing? 

Thanks a lot for your help. 

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at https://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.

Reply via email to