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.
Buying anything on Amazon? Please use the Geekzone Amazon aff link.




651 posts

Ultimate Geek
+1 received by user: 60

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

Ultimate Geek
+1 received by user: 30

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

490 posts

Ultimate Geek
+1 received by user: 58


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



651 posts

Ultimate Geek
+1 received by user: 60

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:





Trending now »

Hot discussions in our forums right now:

Gigatown winner town and plans
Created by freitasm, last reply by loceff13 on 26-Nov-2014 23:01 (42 replies)
Pages... 2 3


Click Monday Deals
Created by mrtoken, last reply by Krishant007 on 24-Nov-2014 17:11 (25 replies)
Pages... 2


Gull Employment Dispute.
Created by networkn, last reply by Geektastic on 26-Nov-2014 16:35 (142 replies)
Pages... 8 9 10


Letter from Vodafone Speed Decrease WTF
Created by rokki, last reply by michaelmurfy on 26-Nov-2014 23:30 (21 replies)
Pages... 2


HP Stream 7 arrives
Created by gnfb, last reply by gnfb on 26-Nov-2014 22:49 (19 replies)
Pages... 2


The Warehouse pulling R18 games and DVD's
Created by semigeek, last reply by mattwnz on 26-Nov-2014 16:13 (56 replies)
Pages... 2 3 4


Harmoney Credit Offer
Created by rendezvous, last reply by Aredwood on 26-Nov-2014 22:45 (13 replies)

Playing with G.722 HD Voice
Created by aw, last reply by aw on 26-Nov-2014 20:26 (13 replies)


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.