+ Reply to Thread
Results 1 to 4 of 4

Extract Values From One Column Based on Criteria From Another Column

  1. #1
    Registered User
    Join Date
    02-13-2013
    Location
    Rogers
    MS-Off Ver
    Excel 2007
    Posts
    46

    Extract Values From One Column Based on Criteria From Another Column

    Good morning,

    I am looking for a formula that will look at the values in one column of a sheet, and if those values are less than a reference cell, return the item identifier from another column, into sheet 2. In the attached on sheet 2, I need to pull the item identifier from column B in sheet 1, where the values in column F of sheet 1 are less that cell N2 of sheet 1. Perhaps I need more coffee but I've been playing with if, index, and lookup statements but can't seem to get it to work. Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Extract Values From One Column Based on Criteria From Another Column

    In cell A2 on sheet 2 put the following formula:

    =IF(ROW(A1)>COUNTIF(Sheet1!$F:$F,"<" & Sheet1!$N$2),"",INDEX(Sheet1!A:A,SMALL(IF(Sheet1!$F$2:$F$15<Sheet1!$N$2,ROW(Sheet1!$F$2:$F$15)),ROW(A1))))

    This is an array formula and must be confirmed with Ctrl-Shift-Enter, not just enter.

    Once it's entered drag across and down.

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Extract Values From One Column Based on Criteria From Another Column

    hi rlh06, an alternative array formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    you have to paste the formula inside the formula bar & press CTRL + SHIFT + ENTER. When done correctly, you should see curly brackets surrounding it
    Attached Files Attached Files

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Registered User
    Join Date
    02-13-2013
    Location
    Rogers
    MS-Off Ver
    Excel 2007
    Posts
    46

    Re: Extract Values From One Column Based on Criteria From Another Column

    Nice done, Andrew and benishiryo! I appreciate the help! Cheers!

+ 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