+ Reply to Thread
Results 1 to 7 of 7

Counting rows with no inputs from last row to first row

  1. #1
    Forum Contributor
    Join Date
    03-14-2005
    Location
    Sweden
    MS-Off Ver
    Office 365
    Posts
    329

    Counting rows with no inputs from last row to first row

    Hello

    I am trying to make a summary function that counts number of rows that have no value above zero in five columns.
    A new row is added every day and I need to count how many days it was since we have a value about zero in column D:H.

    Is it possible to manage with a simple function?
    I have attached a file to explain what I mean better.


    /Anders
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,606

    Re: Counting rows with no inputs from last row to first row

    Probably not the easiest method, but seems to work:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Best Regards,

    Kaper

  3. #3
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,606

    Re: Counting rows with no inputs from last row to first row

    As for "simple formula" - if you can use dummy column (like is used in a sample file) then in J9 write 1 in J8 and copy up:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and in K12:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    03-14-2005
    Location
    Sweden
    MS-Off Ver
    Office 365
    Posts
    329

    Re: Counting rows with no inputs from last row to first row

    Thanks for input. However, number of rows will increase since we add one new row every day.
    So we need to count number of rows where sum in D2:H9 is 0.
    "How many rows, from last entry to the first entry where sum D2:H9 is more than 0"

  5. #5
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,606

    Re: Counting rows with no inputs from last row to first row

    Have you tried to adopt the above solutions to a case with more rows?

    If they don't work (or you can't adopt them) post next attachment with some more rows of data added (or may be 2-3 separate cases in separate worksheets) showing also expected results.

  6. #6
    Forum Contributor
    Join Date
    03-14-2005
    Location
    Sweden
    MS-Off Ver
    Office 365
    Posts
    329

    Re: Counting rows with no inputs from last row to first row

    Hello.

    I have solved it in another way which was easier. I rearanged the data so it was easier to handle. Thanks for your help anyway.

    /Anders

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,336

    Re: Counting rows with no inputs from last row to first row

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

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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] Counting Customers Based on One Table & Inputs
    By askg in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-10-2021, 10:26 PM
  2. [SOLVED] Formula for counting how many inputs between 0-9999 in a given range?
    By connor2282 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-08-2020, 09:18 PM
  3. [SOLVED] Match 2 user inputs across 2 rows and copy row
    By Mattwood in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-25-2017, 01:19 PM
  4. Help With Counting Cell Inputs and Macros :)
    By ASHayward in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2017, 07:47 AM
  5. How to loop through rows with data as new inputs for formula
    By felixpsylvestris in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-27-2017, 12:47 PM
  6. How to make rows do automatic inputs?
    By use11 in forum Excel General
    Replies: 1
    Last Post: 07-29-2011, 06:31 AM
  7. Data table with 2 rows of inputs
    By mljs54 in forum Excel General
    Replies: 1
    Last Post: 03-11-2011, 10:43 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