Month Additions

G

Guest

Hi
I was wondering if there is a way to limit additions to 12 numbers only.
For example, I have a column of months (in numbers) in A and in B, I have
month+2.
Col A Col B
1 3
2 4
3 5
4 6
5 7
6 8
7 9
8 10
9 11
10 12
11 13
12 14
But instead of 13 and 14 in ColB I need it to go back to 1 and 2 respectively.

Any help would be greatly appreciated.
Thanks
 
G

Guest

Try this formula

=IF(A1+2 = 12, 12, MOD(A1+2, 12))

It assumes your data is in A1 - A12

HTH
 
G

Guest

Sorry. That formula dies at 24, 36... This formula works for any values

=IF(MOD(A1+2, 12) = 0, 12, MOD(A1+2, 12))

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top