+ Reply to Thread
Results 1 to 5 of 5

Extracting data next to a cells that match a given range.

  1. #1
    Registered User
    Join Date
    08-30-2020
    Location
    New York
    MS-Off Ver
    2020
    Posts
    6

    Extracting data next to a cells that match a given range.

    Hello,

    In my Excel sheet, I have a leftmost column of rounded times (in seconds). These go like 0,0.01,0.02,0.03,0.04,0.04, etc (sometimes there is repetition of a number, but that doesn't matter very much). In the two columns beside it, Columns B and C, I have data that I want to extract. However, I have several ranges of times for which I want to extract data (ex. 0.04-1.04 seconds, 1.11-2.11 seconds). In my actual data set, the time in between will always be 10 seconds.
    So I want my chosen ranges to match the numbers in Column A, and then find the data next to the range in B and C.

    How can I do this?

    I have attached a spreadsheet showing what I mean, where I manually extracted some data that matched a range (start time and end time). I want to find a way to automate it

    Any help would be greatly appreciated!
    Please ask if you are confused by what I mean.

    Sincerely,
    Montana
    Attached Files Attached Files
    Last edited by montana7244; 09-27-2020 at 01:04 AM.

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: Extracting data next to a cells that match a given range.

    Hi,

    Try this in cell I2:

    =IFERROR(INDEX(B$2:B$38,AGGREGATE(15,6,ROW($A$2:$A$38)/($A$2:$A$38>=$F$2)/($A$2:$A$38<=$G$2)-ROW($B$1),ROWS(I$2:I2))),"")

  3. #3
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Extracting data next to a cells that match a given range.

    Hi,
    If you have office 365 you can use the filter function:

    In I2 (the formula spills to other columns and lines):
    =FILTER(B2:C38,(A2:A38>=F2)*(A2:A38<=G2))

    In M2:
    =FILTER(B2:C38,((A2:A38>=F3)*(A2:A38<=G3)))
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    08-30-2020
    Location
    New York
    MS-Off Ver
    2020
    Posts
    6

    Re: Extracting data next to a cells that match a given range.

    Thank you belinda200! This solution is so simple, and it worked perfectly

  5. #5
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Extracting data next to a cells that match a given range.

    You're welcome. The new functions of Filter/Unique/Sort that excel has in 365 version are really helpful and saves a lot of time.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Select next empty cell in column, if data in another column meets criteria
    By Kanuck in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-08-2018, 02:34 PM
  2. Help with VBA code to display data that meets criteria in another column.
    By MrNew in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-08-2016, 02:52 PM
  3. Extracting unique data that meets specific conditions
    By tekobayashi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-07-2013, 08:44 AM
  4. Need one column total if criteria meets another columns criteria
    By jebrown in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-24-2013, 08:47 PM
  5. Return Data from First Column That Meets Criteria
    By geschinger in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-18-2012, 09:30 AM
  6. Extracting data from column based on specific criteria and pasting into new column
    By vanvalkenburg in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-14-2012, 10:26 PM
  7. Extracting Text that meets criteria
    By USChad in forum Excel General
    Replies: 2
    Last Post: 01-17-2007, 05:55 PM

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