+ Reply to Thread
Results 1 to 4 of 4

Looking up next non-zero value & counting zeros (Escrow)

  1. #1
    Registered User
    Join Date
    03-07-2005
    Posts
    17

    Looking up next non-zero value & counting zeros (Escrow)

    I've looked and haven't found the answer for this. I'm trying to figure out the escrow amounts given a payment schedule, i.e. annual, quarterly, and even irregular payments

    Two parts
    How do you look up the NEXT non-zero (always positive) number in a row that has a series of zero's then a positive number, then look up the NEXT positive number after some more zero's, and on and on?

    Then how do you count the cells from one positive number to the next, restarting after each positive number?

    I've attached a file of what it should look like.

    Bonus points if you don't use an array.
    Also, if you have an better methodology for building an escrow table, I'll take it.
    Attached Files Attached Files

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,483

    Re: Looking up next non-zero value & counting zeros (Escrow)

    What are these bonus points , and how do we get them?

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Looking up next non-zero value & counting zeros (Escrow)

    Using the sample file provided:

    Please Login or Register  to view this content.
    the Array requirement is only circumvented by embedded INDEX which makes the formula slightly less efficient but perhaps more robust.

    (modify reference to $AZ as nec. this is meant to ensure all "future" data is captured within the specified range without being overly excessive in size)

  4. #4
    Registered User
    Join Date
    03-07-2005
    Posts
    17

    Re: Looking up next non-zero value & counting zeros (Escrow)

    Quote Originally Posted by davesexcel View Post
    What are these bonus points , and how do we get them?
    Pride of accomplishment. But DonkeyOte is right, it's a little more robust, but i'm only carrying the row out 60 columns or so. So the loss in efficiency is not a big deal.
    We have a small firm and the guys like to see what's going on (and sometimes hardcode things) so i don't keep it locked down. None of them understand array formulas so i try to avoid them.


    Thanks DonkeyOte. For some reason i couldn't get my head around it.

+ 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