+ Reply to Thread
Results 1 to 3 of 3

Counting batches of data

  1. #1
    Registered User
    Join Date
    05-17-2019
    Location
    UK
    MS-Off Ver
    2017
    Posts
    2

    Counting batches of data

    Hi all,

    I have a table of data, one of the columns contains data about whether a machine was running or not (A) in my example below. Each row is a one minute snapshot and the cell will contain either a 0 or 1 for not running / running. I can sum the column (A) and find out the total minutes that the machine was "On". But i would like to know the number of occasions that it became "On". I am hoping to achieve this via a formula in an adjacent column (B). Column B should only contain a "1" for the first row where column A becomes a "1". After much googling I've not found a solution that will work within a table.

    A,B
    0,0
    1,1
    1,0
    1,0
    0,0
    0,0
    1,1
    0,0
    0,0
    1,1
    1,0
    1,0


    Any suggestion / solutions would be appreciated.

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,878

    Re: Counting batches of data

    If you are going to do it in B... assuming that data starts at A2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Registered User
    Join Date
    05-17-2019
    Location
    UK
    MS-Off Ver
    2017
    Posts
    2

    Re: Counting batches of data

    Your solution references A1, which would be my tables column header. I'm not sure this will work for me.

    Edit****
    Ignore me - I tried it and it works fine. Thanks...!!
    Last edited by UkGazzr; 05-19-2019 at 03:03 PM.

+ 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. Lump data into batches and rank by date
    By Ocdawg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-23-2018, 10:42 AM
  2. VBA to copy and paste in batches
    By osfares in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-11-2014, 09:20 AM
  3. Replies: 1
    Last Post: 05-21-2014, 01:41 PM
  4. Replies: 4
    Last Post: 05-12-2014, 03:25 AM
  5. [SOLVED] sum by batches
    By Mega_gerry in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-05-2014, 05:49 PM
  6. Copy multiple batches of data using VBA
    By ormerods in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-07-2013, 10:41 AM
  7. [SOLVED] How can I multiply in batches?
    By woodysv650 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-22-2013, 06:55 AM

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