+ Reply to Thread
Results 1 to 9 of 9

Extract values

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,012

    Extract values

    Looking for formula to extract values into column A2:A20. Column K and L are the two columns where the data resides for the data pull. Sample file attached

    Thanks
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Extract values

    Try this, copied down...
    =INDEX(L:L,MATCH(B2,K:K,0))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,012

    Re: Extract values

    FDibbins: formula is not pulling the right values.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Extract values

    It is...
    A
    B
    C
    D
    2
    Yes Acai Yes
    TRUE
    3
    Noise Aceola Noise
    TRUE
    4
    Yes Apple Yes
    TRUE
    5
    Yep! Mulberry Yep!
    TRUE
    6
    Ride Blackberry Ride
    TRUE
    7
    Height Apricots Height
    TRUE
    8
    Ok Aceola Noise
    FALSE
    9
    No Aceola Noise
    FALSE
    10
    Eat Blueberries Eat
    TRUE
    11
    Fun Blueberries Eat
    FALSE
    12
    Ocean Durian Ocean
    TRUE
    13
    Yes Goji berries Yes
    TRUE
    14
    Island Banana Island
    TRUE
    15
    Fruit Grapefruit Fruit
    TRUE
    16
    Why Gooseberry Why
    TRUE
    17
    Now Durian Ocean
    FALSE
    18
    Okies Melon Okies
    TRUE
    19
    Okiey Melon Okies
    FALSE
    20
    Okies Melon Okies
    TRUE


    col A is you answers, col C is my answers, col D is differences

    The differences are coming in because you have different nutrients for the same fruit. How would excel know which 1 you want returned?

  5. #5
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,175

    Re: Extract values

    Try...
    =LOOKUP(2,1/(K:K=B2),L:L)

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Extract values

    Phuocam, that leave many returns that do not match what the OP posted

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Extract values

    If I understand correctly try this array-entered formula in A2 and fill down.
    Formula: copy to clipboard
    =INDEX($L$2:$L$39,SMALL(IF($B2=$K$2:$K$39,ROW($K$2:$K$39)-MIN(ROW($K$2:$K$39))+1),COUNTIF($B$2:$B2,$B2)))
    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Dave

  8. #8
    Forum Contributor
    Join Date
    02-06-2013
    Location
    Maryland
    MS-Off Ver
    Excel 2010
    Posts
    1,012

    Re: Extract values

    FlameRetired - works like a charm. Thanks for the solution

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: Extract values

    You're welcome. Glad to help and thanks for the feedback.

+ 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] Match values from an Invoice list with bank extract values
    By fleyd in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-14-2016, 12:52 PM
  2. [SOLVED] Extract values (row values and column values) with formula
    By bjnockle in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 08-17-2014, 10:13 AM
  3. Replies: 2
    Last Post: 09-06-2013, 03:15 PM
  4. Replies: 5
    Last Post: 04-12-2011, 12:59 PM
  5. Macro Loop to Extract Specific Values and Min/Max Values From Column/Rows Range
    By ExcelQuestFL in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 12-19-2010, 09:19 AM
  6. [SOLVED] Extract Unique Values, Then Extract Again to Remove Suffixes
    By Karl Burrows in forum Excel General
    Replies: 23
    Last Post: 06-25-2005, 08:05 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