+ Reply to Thread
Results 1 to 2 of 2

CF from first value to last value including null or 0 values in between

  1. #1
    Registered User
    Join Date
    09-08-2009
    Location
    Hawaii
    MS-Off Ver
    Excel 2013
    Posts
    68

    CF from first value to last value including null or 0 values in between

    I'm looking for a solution to a problem set I've been working on. I attempted to mimick a formula I found via Google but it's not working for my scenario (or I may be doing it wrong).

    For each year row, I'd like to CF from the first value (greater than 0) to the last value including any zeros in between. The zero's outside of the first values are not to be CF.

    For example, in the attached workbook...the year 2017 first value is in cell J2 and goes to W2. There are a few zero's in between but I'd like this range to be CF. I'm basically looking for a field goal CF of the values, excluding the zero's outside of those field goal posts.

    The data is getting fed from another worksheet. Each of the numbers represented is a INDEX/MATCH formula. If there any blanks on the master data sheet, it always produces a zero here. If I attempt to use this formula as the CF:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    everything CF's. However, if I were to physically delete the formulas from cells B2:I2 and X2:Z2, the formula would work correctly. Unfortunately, I can't just delete those cells because the data will always change.

    I've also attempted to mirror the table just below with a

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and apply the CF to the new table but I still get the entire row CF when I really only want the first value to last value to CF.

    Any ideas or suggestions?
    Attached Files Attached Files
    Last edited by purdue7997; 08-22-2017 at 09:23 PM.

  2. #2
    Registered User
    Join Date
    09-08-2009
    Location
    Hawaii
    MS-Off Ver
    Excel 2013
    Posts
    68

    Re: CF from first value to last value including null or 0 values in between

    I figured it out, sorta. I just used the mirror table mentioned above and changed my COUNTA to a COUNT. This gave me what I want, albeit a mirrored table.

+ 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: 07-21-2017, 10:45 AM
  2. Show top 10 values as % of total, including values hidden by filter
    By IronCladRooster in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 03-18-2015, 11:54 AM
  3. Replies: 2
    Last Post: 06-19-2013, 04:58 PM
  4. Running Total including Null values
    By Spolzie in forum Excel General
    Replies: 1
    Last Post: 12-12-2011, 11:53 PM
  5. Replies: 0
    Last Post: 09-05-2011, 02:56 AM
  6. Sum with null values
    By donkeykong in forum Excel General
    Replies: 1
    Last Post: 04-16-2010, 11:44 AM
  7. [SOLVED] selectin all the values in a column including null values
    By Purnima Sharma in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-14-2005, 12:25 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