+ Reply to Thread
Results 1 to 10 of 10

Count in a circle

Hybrid View

  1. #1
    Registered User
    Join Date
    05-06-2014
    Location
    Minnesota
    MS-Off Ver
    Excel 2007
    Posts
    4

    Count in a circle

    Is there an easy way to count in a circle? I need to enter a # in A1, then in B2 add 6, B3 add 6, so on, so forth until the total reaches 43. Then return to 1 and continue the count. I.E., if say B10 was 41, B11 would be 4.

    I have looked at the loop function, but that does not seem to me to be what I need.

    Thanks for any help.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,033

    Re: Count in a circle

    If you enter number in B1 try this in B2 and pull down:
    Formula: copy to clipboard
    =MOD(B1+6,43)
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    05-06-2014
    Location
    Minnesota
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Count in a circle

    That did the trick! Thank you so much!!!

  4. #4
    Registered User
    Join Date
    05-06-2014
    Location
    Minnesota
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Count in a circle

    Well, I put together what I was trying to do, with the =mod formula. It seems to do what I want, except that when a cell comes up as "37", it adds the "6" as I want, but returns a "0" in the next cell, instead of returning a "43". Any idea's on how to stop this? If one cell is a "38", it counts the "6" and returns the "1" as needed.

    Thanks!

  5. #5
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Count in a circle

    In B2:
    Formula: copy to clipboard
    =IF(A1+6>=43,A1+6-43,A1+6)

    In B3 and dragged down:
    Formula: copy to clipboard
    =IF(B2+6>=43,B2+6-43,B2+6)

  6. #6
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Count in a circle

    zbor's solutions is the one to go with. Mine will work, but his is simpler and better.

    If your original number has to be in a1 then in B2 put =MOD(A1+6,43) and then in B3 put =MOD(B2+6,43) and then drag it down as necessary.

  7. #7
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Count in a circle

    =if(mod(b1+6,43)=0,43,mod(b1+6,43))

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Count in a circle

    Or ...

    B
    C
    1
    2
    B1: Input
    2
    8
    B2: =MOD(B1+5, 43) + 1
    3
    14
    4
    20
    5
    26
    6
    32
    7
    38
    8
    1
    9
    7
    10
    13
    11
    19
    12
    25
    13
    31
    14
    37
    15
    43
    16
    6
    Last edited by shg; 05-09-2014 at 01:30 AM.
    Entia non sunt multiplicanda sine necessitate

  9. #9
    Registered User
    Join Date
    05-06-2014
    Location
    Minnesota
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Count in a circle

    =MOD(B1+5, 43) + 1
    This one did it! Thank you so much for your assistance!!

  10. #10
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Count in a circle

    You're welcome.

+ 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. Replies: 4
    Last Post: 12-17-2012, 11:45 PM
  2. Make a circle
    By Rayman in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-16-2011, 03:12 PM
  3. How do I set up a circle within a circle chart?
    By Ken in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 08-04-2006, 07:45 AM
  4. A letter in a circle
    By Rob in forum Excel General
    Replies: 6
    Last Post: 06-12-2006, 07:15 PM
  5. how/can do i do a proportional circle?
    By eggmania in forum Excel General
    Replies: 0
    Last Post: 10-09-2005, 12:05 PM

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