+ Reply to Thread
Results 1 to 6 of 6

How to extract values in one column based on criteria in another column

  1. #1
    Registered User
    Join Date
    03-27-2019
    Location
    Hope, BC, Canada
    MS-Off Ver
    2010
    Posts
    3

    Question How to extract values in one column based on criteria in another column

    I have a long column in excel with only a few of the cells containing data. What I would like to do is for those cells in this column that contain text, I want to pull the content of cells in another column that are in the same row as those cells with text.

    excel question example.PNG

    The attached file is a simple example. I want to match all the cells in the column labelled 'Year' that have 'x' for text with the associated row of data from the column labelled 'Value' whether the are G's or H's. I'd like it to return a sum of those 2 sets of data if possible (total number of G's and H's respectively).

  2. #2
    Forum Contributor
    Join Date
    10-30-2014
    Location
    England
    MS-Off Ver
    2007 / 365
    Posts
    279

    Re: How to extract values in one column based on criteria in another column

    Try this, adapt as required.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-27-2019
    Location
    Hope, BC, Canada
    MS-Off Ver
    2010
    Posts
    3

    Re: How to extract values in one column based on criteria in another column

    This will work well for counting particular text in the column (x's) but I want the match to work with the criteria that 'x' could be any text at all and if there is text then pull the corresponding value.

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: How to extract values in one column based on criteria in another column

    How about...

    =COUNTIFS(E:E,"<>",J:J,"G")
    =COUNTIFS(E:E,"<>",J:J,"H")
    HTH
    Regards, Jeff

  5. #5
    Registered User
    Join Date
    03-27-2019
    Location
    Hope, BC, Canada
    MS-Off Ver
    2010
    Posts
    3

    Re: How to extract values in one column based on criteria in another column

    That worked excellently! thank you!

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: How to extract values in one column based on criteria in another column

    You are very welcome Tim and thanks for the feedback.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] Extract subarray from table column based on criteria matched - text values
    By jaryszek in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 08-31-2018, 03:35 AM
  2. Extract Values matching criteria from one column into a new one
    By jmoeller in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-28-2018, 01:31 PM
  3. [SOLVED] VBA Creating a list of unique values from one column based on criteria from another column
    By bilbo85 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-09-2016, 02:38 PM
  4. Sum column values based on intersecting criteria in row and column
    By rlbush2 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-22-2013, 03:56 PM
  5. Replies: 1
    Last Post: 02-14-2013, 02:32 PM
  6. Replies: 3
    Last Post: 02-14-2013, 10:25 AM
  7. [SOLVED] Adding Values from One Column Based on Criteria in another column
    By andymc80 in forum Excel General
    Replies: 1
    Last Post: 01-30-2013, 09:29 AM

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