+ Reply to Thread
Results 1 to 4 of 4

Searching Data with Multiple Criteria

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

    Searching Data with Multiple Criteria

    For my research I have large amounts of data that display x and y coordinates of particles from time lapse images. Using these coordinates we are then able to trace and visualize the trajectory of cell over time. Currently we are interested in viewing how neighboring cells are interacting with each other and if there are any signs of cooperativity among them when treated with certain growth factors.

    I have written a macro that sorts the data and displays it as visible in the attachment posted. So far I have been able to write the macro to do exactly as I wish except now I've become stuck. In my spreadsheet column N displays the cell number of the identified neighboring cell/cells. In columns O and P I then am able to report the x and y coordinates of this neighboring cell respectively. However, for the next step of my analysis I would like to return the x and y coordinates of the neighboring cell in the next frame. I have been trying to use IF statements and different excel search functions in junction but I have yet to find a way to retrieve this data.

    More information is explained in the spreadsheet as well as a visual representation of how the data is formatted but I understand this can be very confusing so please don't hesitate to ask questions.
    Attached Files Attached Files
    Last edited by Impartial Derivative; 07-12-2011 at 01:28 PM.

  2. #2
    Forum Contributor Dave H9's Avatar
    Join Date
    03-10-2011
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    418

    Re: Searching Data with Multiple Criteria

    IF the table pattern is constant as in the example then I would use the same principle the formula you use for "Nearest Neighbour" ie formula in Q6 would be -

    Please Login or Register  to view this content.
    The colouring part is a bit more complicated but could be solved by adding a "Nearest Neighbour Frame" column and using conditionalformatting, otherwise it's going to have to be code.

    Edit. scratch all that just looked at the table patern and the above is a no go. I'll have a look and see what I can come up with regards code.
    Last edited by Dave H9; 07-12-2011 at 08:39 AM.

  3. #3
    Forum Contributor Dave H9's Avatar
    Join Date
    03-10-2011
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    418

    Re: Searching Data with Multiple Criteria

    OK I'll try again.

    Possible solution is with INDEX&MATCH array formula. See what you think, I have populated column R.

    Dave H
    Attached Files Attached Files

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

    Re: Searching Data with Multiple Criteria

    Quote Originally Posted by Dave H9 View Post
    OK I'll try again.

    Possible solution is with INDEX&MATCH array formula. See what you think, I have populated column R.

    Dave H
    Dave,

    Thanks a lot I was thinking that I would need to do an index&match array formula but I wasn't exactly sure how to execute. Your formula seems to work just as I wanted. I'll play with it and look at some data and see if I have any further questions. Thanks again.

    Note: Also I just put the coloring in to help with my example a little bit. They do not actually need to be incorporated into the formula at all.
    Last edited by Impartial Derivative; 07-12-2011 at 11:45 AM.

+ 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