+ Reply to Thread
Results 1 to 4 of 4

Looking Up Nth Non-Zero Value

  1. #1
    Registered User
    Join Date
    07-23-2013
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Looking Up Nth Non-Zero Value

    How do I look up the nth non-zero value in a row? i.e. the 1st, 4th, 7th, 10th, etc.

    My range of values is $K5:$AK5. I want to copy this formula down for 500+ rows. I am entering the formula in column DW, in case that's helpful to know.

    Would appreciate any help!

    Thank you

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

    Re: Looking Up Nth Non-Zero Value

    Try this formula for the 4th

    =IFERROR(INDEX($K5:$AK5,SMALL(IF($K5:$AK5<>0,COLUMN($K5:$AK5)-COLUMN($K5)+1),4)),"No match")

    confirmed with CTRL+SHIFT+ENTER
    Audere est facere

  3. #3
    Registered User
    Join Date
    07-23-2013
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Looking Up Nth Non-Zero Value

    Works brilliantly. Thank you

  4. #4
    Registered User
    Join Date
    01-22-2019
    Location
    Bermuda
    MS-Off Ver
    2016
    Posts
    1

    Re: Looking Up Nth Non-Zero Value

    I LOVE YOU!!

    You just saved me Thank you for this answer!

+ 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