+ Reply to Thread
Results 1 to 5 of 5

Find first non-zero value in a column and return adjacent value in column to the left?

  1. #1
    Forum Contributor
    Join Date
    10-24-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    406

    Unhappy Find first non-zero value in a column and return adjacent value in column to the left?

    Hello,
    I have 4 tranches/buckets that change based on a date selected in data validation drop down box which creates staggered data shown in the attachement. I would like to find the first non-zero value in a given column and then return the value found in column A. Column A does not change, only B through E. Any help is greatly appreciated.

    Attachment 379141

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Find first non-zero value in a column and return adjacent value in column to the left?

    I didn't look at your workbook but in general you can use INDEX and MATCH, e.g. to find the first zero in C2:C10 and the corresponding value from A2:A10

    =INDEX(A2:A10,MATCH(0,C2:C10,0))
    Audere est facere

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

    Re: Find first non-zero value in a column and return adjacent value in column to the left?

    You can put this array* formula in G5:

    =MIN(IF((C$5:C$21<>"")*(C$5:C$21>0),$A$5:$A$21))

    then copy across to J5.

    *An array formula needs to be committed using the key combination of Ctrl-Shift-Enter (CSE) instead of the usual <Enter>.

    Hope this helps.

    Pete

  4. #4
    Forum Contributor
    Join Date
    10-24-2012
    Location
    USA
    MS-Off Ver
    Excel 365
    Posts
    406

    Re: Find first non-zero value in a column and return adjacent value in column to the left?

    This seems to work great so far...=MIN(IF((C$5:C$21<>"")*(C$5:C$21>0),$A$5:$A$21))

    This was a huge help! Many thanks...cheers.

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

    Re: Find first non-zero value in a column and return adjacent value in column to the left?

    You're welcome, glad to help.

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

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    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. [SOLVED] Find next non blank cell in list and return value from adjacent column
    By kristy.brown in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-19-2014, 03:28 PM
  2. [SOLVED] Find text in a column or range and return value of adjacent cell
    By chemoul in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-20-2012, 04:30 AM
  3. Find and Match Text in Column Return Adjacent Cell
    By biancam in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-11-2012, 02:45 PM
  4. [SOLVED] Find, Return 1st number/word in adjacent column
    By wkhor in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-11-2012, 12:10 AM
  5. macro to find first blank cell in a column cut the value from left adjacent column
    By willykin in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-01-2012, 09:23 AM

Tags for this Thread

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