+ Reply to Thread
Results 1 to 4 of 4

Looking to find a value from a column

  1. #1
    Forum Contributor
    Join Date
    01-20-2015
    Location
    NB, Canada
    MS-Off Ver
    365
    Posts
    164

    Looking to find a value from a column

    In column A I have players positions. In column B I have player values.

    I am looking to retrieve the value from the 30th player at the "C" position.


    Thanks

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Looking to find a value from a column

    Maybe something like this...

    Data Range
    A
    B
    C
    D
    1
    Position
    Value
    ------
    Result
    2
    C
    9
    22
    3
    C
    35
    4
    P
    70
    5
    LF
    63
    6
    CF
    46
    7
    C
    22
    8
    2B
    88
    9
    2B
    14
    10
    3B
    18
    11
    SS
    59
    12
    C
    20


    This array formula** entered in D2:

    =INDEX(B:B,SMALL(IF(A2:A12="C",ROW(A2:A12)),3))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Due to space limitations I can't post an example with 30 Cs in the data. So, the example finds the 3rd C.

    If you want the 30th just replace the 3 with 30.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Contributor
    Join Date
    01-20-2015
    Location
    NB, Canada
    MS-Off Ver
    365
    Posts
    164

    Re: Looking to find a value from a column

    Perfect, thank you sir.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Looking to find a value from a column

    You're welcome. 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. Looping 'find' to find a value and replace a value in an adjacent column
    By Boltsie in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-12-2016, 06:54 PM
  2. Replies: 3
    Last Post: 11-25-2014, 06:08 AM
  3. Replies: 3
    Last Post: 05-28-2014, 12:01 PM
  4. Replies: 2
    Last Post: 04-26-2013, 01:16 PM
  5. Find X in Column A, Find Y in Column B and Return Z in Column C
    By pizzalover in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-21-2013, 04:15 PM
  6. [SOLVED] Error when using FIND Method to find last row when column is blank
    By the duke in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-01-2013, 10:26 PM
  7. Range.Find to find column and place value in next available cell in one line
    By davegugg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-02-2011, 10:41 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