Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




798 posts

Ultimate Geek
+1 received by user: 100

Trusted

Topic # 110657 13-Oct-2012 12:40
Send private message

Hi,

struggling with this small problem with a spreadsheet and wondered if anyone can nudge me in the right direction.

I have spreadsheet with column a having instances of ¨1¨ indicating an event or count should occur. I wish in a further column  to keep a count of the 1´s but when the count reaches 12, I´d like to reset the count to 0 again. I´ve managed to get so far as using an OR inside an IF function which tests the value of the count and will set the value to 0 but I´d like to restart the count again. 

Do I need to look towards a COUNTIF function, else where of can I use some logic inside of an IF formula to just go up to 12 and reset.

Thanks

Knoydart.  

Create new topic
615 posts

Ultimate Geek
+1 received by user: 49

Subscriber

  Reply # 700617 13-Oct-2012 13:07
Send private message

Just use the modulo function to return the remainder after dividing by 12. So if your 1's are in column A then:
=mod(sum(A:A),12)

Bee

591 posts

Ultimate Geek
+1 received by user: 109


  Reply # 700628 13-Oct-2012 13:12
Send private message

And this to make the 12 display as 12 and not 0

=IF(MOD(Sum(A:A,12)=0,12,MOD(Sum(A:A,12))

 
 
 
 




798 posts

Ultimate Geek
+1 received by user: 100

Trusted

Reply # 700634 13-Oct-2012 13:28
Send private message

Thanks both of you for your swift response and help.

Works like a treat. Another EXCEL formula in to abuse

Create new topic



Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Qrious launches Qonnect, a scalable, high performance big data platform
Posted 29-Jun-2017 20:16


Epson launches Moverio BT-300 AR Smartglasses
Posted 29-Jun-2017 20:13


Internet of Things research highlights economic benefits for NZ
Posted 29-Jun-2017 20:09


NotPetya ransomware attack, New Zealand view
Posted 28-Jun-2017 15:07


Security concerns reach new peak, Unisys Security Index
Posted 27-Jun-2017 14:11


Behind Spark’s slow-burn 4.5G plan
Posted 26-Jun-2017 16:23


Red Hat unveils production-ready open source hyperconverged infrastructure
Posted 23-Jun-2017 22:10


Whatever ailed Vodafone broadband … seems to be fixed
Posted 23-Jun-2017 14:10


VMware NSX Meets Stringent Government Security Standards with Common Criteria Certification
Posted 22-Jun-2017 19:05


Brother launches next-generation colour laser printers and all-in- ones for business
Posted 22-Jun-2017 18:56


Intel and IOC announce partnership
Posted 22-Jun-2017 18:50


Samsung Galaxy Tab S3: Best Android tablet
Posted 21-Jun-2017 12:05


Wellington-based company helping secure Microsoft browsers
Posted 20-Jun-2017 20:51


Endace delivers high performance with new 1/10/40 Gbps packet capture card
Posted 20-Jun-2017 20:50


You can now integrate SMX security into Microsoft Office 365, Google and other cloud email platforms
Posted 20-Jun-2017 20:47



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.