+ Reply to Thread
Results 1 to 7 of 7

Pull Values in column based on column B and C values

Hybrid View

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

    Pull Values in column based on column B and C values

    Need a formula to pull values into column A based on the corresponding values in B and C. Actual data is in column F through H.

    In column C, large function was used to extract the largest to the smallest values - based on values in column H. Corresponding region values were pulled. Need a formula to pull the corresponding product list in A - desired outcome is highlighted in yellow in A.

    Sample workbook attached.
    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: Pull Values in column based on column B and C values

    If I understand you correctly, try this array formula, copied down...
    =INDEX($F$2:$F$27,MATCH(B2&C2,$G$2:$G$27&$H$2:$H$27,0)) CSE

    If "reagion" and Arrival Time" are rghe same though, it will bring back the 1st instance of the match
    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: Pull Values in column based on column B and C values

    FDibbins: Proposed array formula is returning the same pulled values for the 1st 2 instances. See below:
    PlayStation 3 Southern 100
    PlayStation 3 Southern 100

    Instead of
    PlayStation 3 Southern 100
    DVD Player Southern 100

    Thanks for the help.

  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: Pull Values in column based on column B and C values

    Yes, perhaps you mised this part?
    If "region" and Arrival Time" are the same though, it will bring back the 1st instance of the match
    Add a helper (I used I) and copy this down...
    =G2&H2&COUNTIFS($G$2:G2,G2,$H$2:H2,H2)
    Then use this regular formula, copied down...
    =INDEX($F$2:$F$27,MATCH(B2&C2&COUNTIFS($B$2:B2,B2,$C$2:C2,C2),$I$2:$I$27,0))

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

    Re: Pull Values in column based on column B and C values

    FDibbins: Is there a way to have the COUNTIFS modified to COUNTIF OR any other function in EXCEL 2003 to achieve the same result.
    Last edited by bjnockle; 11-02-2013 at 08:40 PM.

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

    Re: Pull Values in column based on column B and C values

    FDibbins: I was able to get around the COUNTIFS with SUMPRODUCT: =G2&H2&SUMPRODUCT(--($G$2:G2=G2),--($H$2:H2=H2))

    =INDEX($F$2:$F$27,MATCH(B2&C2&SUMPRODUCT(--($B$2:B2=B2),--($C$2:C2=C2)),$I$2:$I$27,0))

    The suggested helper column, COUNTIFS formula did the trick!

    Thanks a million, FDibbins!
    Last edited by bjnockle; 11-02-2013 at 09:01 PM.

  7. #7
    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: Pull Values in column based on column B and C values

    Happy to help

+ 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] Pull Values based on one column
    By bjnockle in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-30-2013, 03:16 AM
  2. How can i pull a range of values in to a column based on a cell value
    By nickwh34 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-30-2012, 05:13 AM
  3. Pull unique values based on adjacent column
    By freud1 in forum Excel General
    Replies: 9
    Last Post: 07-02-2012, 11:36 AM
  4. Pull row/column titles based on values inside an array
    By julzzzz in forum Excel General
    Replies: 1
    Last Post: 03-29-2012, 06:45 PM
  5. Replies: 3
    Last Post: 06-10-2010, 11:54 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