+ Reply to Thread
Results 1 to 5 of 5

Cell Referencing Question

  1. #1
    Registered User
    Join Date
    06-13-2011
    Location
    Boulder, Colorado
    MS-Off Ver
    Excel 2010
    Posts
    61

    Cell Referencing Question

    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.
    Attached Files Attached Files
    Last edited by Impartial Derivative; 06-29-2011 at 12:59 PM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Cell Referencing Question

    Try this
    In K3
    Please Login or Register  to view this content.
    Drag/Fill Down

    In L3
    Please Login or Register  to view this content.
    Drag/Fill Down

    In M3 this array formula
    Please Login or Register  to view this content.
    Confirm with Ctrl+Shift+Enter
    Drag/Fill Down

    Does this help?
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Registered User
    Join Date
    06-13-2011
    Location
    Boulder, Colorado
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: Cell Referencing Question

    Marcol,

    Your post was indeed useful, however I am still running into a problem with my formula for Column H. I need to find a way for the macro to recognize the frame number associated with a cell and match it with the data from L and M in order to see gait my data. As of right now the formula works for the first block of data but then fails when you fill down and certain cells are looking to reference empty cells for the average distance and standard deviation.

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Cell Referencing Question

    Does this workbook do what you require?
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-13-2011
    Location
    Boulder, Colorado
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: Cell Referencing Question

    Marcol,

    That seems to be just what I need. Thank you very much for all your help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1