[Solved] Counting cells

Discuss the spreadsheet application
Post Reply
3VA41570
Posts: 8
Joined: Fri Aug 18, 2017 2:16 am

[Solved] Counting cells

Post by 3VA41570 »

Hello,
I am recording the speed of a motor. For this I use a sampling device that give me in the first cell the speed number every turn. The rest of the time is recording cells with 0 , 0, 0,..etc until it finishes a complete turn and gave me the speed number again. For example 200.
So The spreadsheet is something like
200
0
0
0
0
201
0
0
0
Becuase the number of 0 between turns changes...is there any way to count how many 0 do I have in betwwen two marks of 200 or 201?
Thank you!
Last edited by 3VA41570 on Mon Aug 21, 2017 10:37 am, edited 1 time in total.
OpenOffice 4.1.3 on Windows 10 / OpenOffice 4.1.3 on MAc / LibreOffice on RaspBerry / OpenOffice 4.1.3 on Linux (not yet)
User avatar
RusselB
Moderator
Posts: 6646
Joined: Fri Jan 03, 2014 7:31 am
Location: Sarnia, ON

Re: COUNTING CELLS

Post by RusselB »

First thing that comes to my mind, is using the COUNTIF function, though a few difficulties do come to mind quickly, namely: How to ensure that the range starts at the cell that contains the 200 and ends at the cell containing 201
I'm too tired to try to work out a solution at the moment, but that gives you (and others) something to possibly work with. I'll see what I can do when I'm more awake... presuming someone else hasn't beat me to the punch.
OpenOffice 4.1.7, LibreOffice 7.0.1.2 on Windows 7 Pro, Ultimate & Windows 10 Home (2004)
If you believe your problem has been resolved, please go to your first post in this topic, click the Edit button and add [Solved] to the beginning of the Subject line.
User avatar
Zizi64
Volunteer
Posts: 11361
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: COUNTING CELLS

Post by Zizi64 »

Here is a tip with a helper column:
Counting.ods
(10.35 KiB) Downloaded 111 times
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
3VA41570
Posts: 8
Joined: Fri Aug 18, 2017 2:16 am

Re: COUNTING CELLS

Post by 3VA41570 »

Thank you so much!
OpenOffice 4.1.3 on Windows 10 / OpenOffice 4.1.3 on MAc / LibreOffice on RaspBerry / OpenOffice 4.1.3 on Linux (not yet)
Post Reply