Will Excel let me automatically add 1 to each number in a column?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a monthly roster on which we list each employee's Months of Service.
Is there a way in which I can get Excel to add "1" to the months of service
without doing it manually each month? (I copy the previous month's roster,
rename it, make updates for new hires, terms, etc.)
Someone tried to write a Macro to do it automatically, but it's not working
consistently. I do have some exceptions, too...I cannot add months of service
for those who are on Leave of Absence or who are Reserve Work Force (there is
a column on the roster to list those statuses...)
Thanks very much!!
 
If you have a start date in your spreadsheet, try this.
=ROUNDDOWN((NOW()-A2)/30,0.2)

You may have something that looks like this.

start date name mths of service
1/1/2006 Mike 8.00

You can limit the number of zeros after the period by decreasing the decimal.

Hope this helps.

Mike F.
 
Thanks for the suggestion, Mike...I added a column for start dates and tried
the formula, but I must be doing something wrong...it gave me an error
message.
I have (A) Last Name; (B) First Name; (C) Start Date, written M/D/YY; (D)
Months of Service.
 
You will need to change the formula slightly. If your start date is in
column C then you need to change the -A2 to -C2. A2 represents the cell for
start date. In your case cell C2 represents the start date. Let me know if
this fixes it.

Mike F.
 
Thank you! I will give it a shot! :-)

Mike F. said:
You will need to change the formula slightly. If your start date is in
column C then you need to change the -A2 to -C2. A2 represents the cell for
start date. In your case cell C2 represents the start date. Let me know if
this fixes it.

Mike F.
 
Mike, you SO ROCK!!!! This is just the coolest thing...
Does the formula work based on the date on which you have the file open? Is
that what the () is for?? It's working beautifully; I'd just like to know
more about HOW it works!
You are a godsend...thanks again for your help!
 

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

Back
Top