+ Reply to Thread
Results 1 to 3 of 3

find first value in column, and return the corresponding row in the A column

  1. #1
    Forum Contributor
    Join Date
    02-13-2013
    Location
    Columbia, SC
    MS-Off Ver
    Excel 2010
    Posts
    217

    find first value in column, and return the corresponding row in the A column

    Hello,

    In column c I want to look at values in B. The first time anything appears other than 0, I want to return the corresponding value in column A. How can this be done?

  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: find first value in column, and return the corresponding row in the A column

    Maybe something like this...

    Array entered**:

    =INDEX(A1:A10,MATCH(TRUE,B1:B10<>0,0))

    ** 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.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,416

    Re: find first value in column, and return the corresponding row in the A column

    You can use this array* formula in C2:

    =INDEX(A:A,MIN(IF(B2:B10>0,ROW(B2:B10))))

    assuming the data is in rows 2 to 10 - adjust as required for the two terms involving column B.

    * Note that an array formula needs to be committed using the key combination of Ctrl-Shift-Enter (CSE), rather than the usual < Enter >

    Hope this helps.

    Pete

+ 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. Replies: 3
    Last Post: 05-16-2016, 12:43 PM
  2. [SOLVED] Find last value > 0 in column, return corresponding date in column A
    By wannabeexcelguy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-02-2015, 01:09 PM
  3. [SOLVED] Find first non-zero value in a column and return adjacent value in column to the left?
    By hchavous in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-24-2015, 06:11 AM
  4. Find the same number in the column and then return text from another column"
    By SHOOTERTPP in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-02-2014, 11:21 PM
  5. [SOLVED] Find last occurrence of text in a column and return value in next column
    By LindaLu in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-06-2014, 09:45 AM
  6. Replies: 8
    Last Post: 10-23-2013, 12:17 PM
  7. Formula to find all matches in column A and return cells from column C
    By GenericPat in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-19-2012, 04:56 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