+ Reply to Thread
Results 1 to 5 of 5

Retrieve the second non-zero value in a row

  1. #1
    Registered User
    Join Date
    10-30-2007
    Posts
    3

    Retrieve the second non-zero value in a row

    I have a row of values and I need to pull the second non-zero value on another sheet, which in the example below is $850.


    $0 $0 $0 $285 $850 $278 $481

    I use the Index/Match forumla below to grab the first non-zero value ($285)

    {=+INDEX($A$1:$G$7,MATCH(TRUE,$A$1:$G$7>0,0))}

    This formula works great to retrieve the first non-zero value.

    How can I modify this formula to grab the second non-zero value ($850)? Then how do I modify it again to grab the third non-zero value ($278)?
    THen how do I modify to grab the fourth non-zero value ($481)?

    I don't want to use IF/Then statement as that might be too long. I think Index/Match would do the trick, but I am missing somthing.

    Any help will be appreciated!!
    Coolmint

  2. #2
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    The array formula I am providing varies depending on the layout of your sheet. This formula currently assumes that your lookup range is A1:Z1. It also assumes that the formula is entered in Column A of the spreadsheet and filled across to the right.

    Please post any follow up questions:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-30-2007
    Posts
    3

    Follow-up question

    Thank you BigBas. That would work!!

    One follow-up question. The formula is entered in Column A of the spreadsheet and filled across to the right.

    I would also need to to put the formula into column A and fill Down. So it would go into A5, then A6, then A7.

    How do i modify the formula so it fills down?

    Thanks,
    Coolmint

  4. #4
    Registered User
    Join Date
    02-21-2014
    Location
    Florida, USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Follow-up question

    Anyone have any further detail into this fix? I'd like to retrieve the "850" value, my data appears similarly to the above post:

    A B C D E F G H
    Index/Match 285, NEWFORMULAHERE, $0 $0 $0 $285 $850 $278 $481

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,621

    Re: Retrieve the second non-zero value in a row

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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