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.



499 posts

Ultimate Geek

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
404 posts

Ultimate Geek

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

338 posts

Ultimate Geek


  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))



499 posts

Ultimate Geek

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 new jobs are posted to our jobs board:



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




News »

Trending now »
Hot discussions in our forums right now:

Fecked up religious people strike again :-(
Created by Mark, last reply by NonprayingMantis on 24-May-2013 10:04 (50 replies)
Pages... 2 3 4


Entire house HTPC concept
Created by InfiniteLoop, last reply by kiwijunglist on 23-May-2013 23:15 (25 replies)
Pages... 2


Cannabis is illegal yet we have really strong 'legal highs' ?
Created by qwerty7, last reply by freitasm on 23-May-2013 23:20 (74 replies)
Pages... 3 4 5


Xbox One
Created by DjShadow, last reply by jtbthatsme on 24-May-2013 01:04 (58 replies)
Pages... 2 3 4


A new project coming to Geekzone
Created by freitasm, last reply by xpd on 24-May-2013 10:36 (281 replies)
Pages... 17 18 19


HTC One (2013) owners' discussion
Created by Dingbatt, last reply by heavenlywild on 24-May-2013 10:36 (1555 replies)
Pages... 102 103 104


Orcon, Is this for real or a scam??
Created by old3eyes, last reply by DarthKermit on 22-May-2013 19:12 (29 replies)
Pages... 2


Vodafone Naked Broadband Speeds (Auckland CBD)
Created by wscalioni, last reply by grkiwi on 20-May-2013 21:13 (14 replies)


Geekzone Jobs »
Most recent NZ jobs in technology:

Senior Developer | Hosted Cloud Services
Posted 24-May-2013 10:28

IT Intermediate Developer
Posted 24-May-2013 10:28

Customer Service Advisor
Posted 24-May-2013 10:28

Silverstripe Developer
Posted 24-May-2013 09:28

Senior Test Analyst
Posted 24-May-2013 09:28

.Net Solution Technical Lead
Posted 24-May-2013 09:28

Technical Lead .Net Developer
Posted 24-May-2013 09:28


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.