Hey, I have a workbook with data sorted by frame number and I'm currently in the process of writing a macro to do certain calculations utilizing the standard deviation. My next step is to incorporate a calculation that eliminates outliers from my data set. In Column H, I am looking to have a logic formula, that states the following:
=IF(AND((L4-M4)<=G4,(L4+M4)>=G4),G4,"")
However, Columns L & M contain ranges of variable size and are sorted based off the frame number displayed in column K. My goal is to have a code that reads the value of the active cell in Range A1:A and then searchs for this same number in Column K and once it finds that cell references the data in L and M for my logic statement. Any suggestions on how to do this would be greatly appreciated as I am a little lost on how/if this can be accomplished. I've attached a workbook to hopefully clarify the problem.
Bookmarks