+ Reply to Thread
Results 1 to 5 of 5

Help with a date code

  1. #1
    Registered User
    Join Date
    10-30-2006
    Posts
    13

    Question Help with a date code

    Hello everyone, Sorry not sure where to put this question, i was wondering if i could get some help with a form im trying to make. Basically i have a number that i want to increase by 1 each month. So lets say the number is 13. Right now it is october, in november i would like Excel to automatically change that number to 14 and and so on each month without me having to manualy do it. i was trying to figure it out using the Now() code so that excel will automaticaly change the date each month but im not sure if this is the right way of going about this. Any help would be greatly apreciated.This list is basically the number of points someone has so they all have different numbers. I have a list of say 10 people all with a different number of points like this:

    John:20
    Lisa:16
    Kenny:12

    and so on, im trying to figure out how would i use a code that would automatically increase there specific number by 1 each month without me manualy having to do it, Thank you.
    Bacarat

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Following formula does the job ...

    with Correction for year ...

    =13+MONTH(TODAY())-10+(YEAR(TODAY())-2006)*12

    HTH
    Carim
    Last edited by Carim; 10-30-2006 at 03:27 PM.

  3. #3
    Registered User
    Join Date
    10-30-2006
    Posts
    13

    Thank you

    Thank you so much works perfectly

  4. #4
    Registered User
    Join Date
    10-30-2006
    Posts
    13
    cool i get it now one question what does the 12* at the end of the forumla mean(just tying to understand the coding a little better)

  5. #5
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Glad I could help...

    *12 allows you to multiply by 12, as soon as you go into next year, and keep adding months ...

    Thanks for the feedback

    Carim

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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