PC Review


Reply
Thread Tools Rate Thread

Add one to Column numbers

 
 
C
Guest
Posts: n/a
 
      27th Mar 2009
I have a spreadsheet that I need to increment Column X by one on a monthly
basis. When Column x = 12 then it goes back to 0 and column w is is
incremented by one.

Example:

March 2009
Column W Column X
10 11

April 2009 After Calculation
Column W Column X
11 0

May 2009 After Calculation
Column W Column X
11 1

Can someone give advice on how to best accomplish this?

Thanks in advance.
CB

 
Reply With Quote
 
 
 
 
Joakim Norrman
Guest
Posts: n/a
 
      27th Mar 2009
Cell X1:
=IF(MONTH(TODAY())+8<12;MONTH(TODAY())+8;MONTH(TODAY())-12)

Cell W1:
=IF(X1>=1;X1-1;X1+11)

Then you can drag formula in W1 to column V, U, T, S ... (If wanted)


"C" wrote:

> I have a spreadsheet that I need to increment Column X by one on a monthly
> basis. When Column x = 12 then it goes back to 0 and column w is is
> incremented by one.
>
> Example:
>
> March 2009
> Column W Column X
> 10 11
>
> April 2009 After Calculation
> Column W Column X
> 11 0
>
> May 2009 After Calculation
> Column W Column X
> 11 1
>
> Can someone give advice on how to best accomplish this?
>
> Thanks in advance.
> CB
>

 
Reply With Quote
 
Joakim Norrman
Guest
Posts: n/a
 
      27th Mar 2009
Sorry, I think the reference cell X1 shall be:
=IF(MONTH(TODAY())+8<12;MONTH(TODAY())+8;MONTH(TODAY())-4)

"Joakim Norrman" wrote:

> Cell X1:
> =IF(MONTH(TODAY())+8<12;MONTH(TODAY())+8;MONTH(TODAY())-12)
>
> Cell W1:
> =IF(X1>=1;X1-1;X1+11)
>
> Then you can drag formula in W1 to column V, U, T, S ... (If wanted)
>
>
> "C" wrote:
>
> > I have a spreadsheet that I need to increment Column X by one on a monthly
> > basis. When Column x = 12 then it goes back to 0 and column w is is
> > incremented by one.
> >
> > Example:
> >
> > March 2009
> > Column W Column X
> > 10 11
> >
> > April 2009 After Calculation
> > Column W Column X
> > 11 0
> >
> > May 2009 After Calculation
> > Column W Column X
> > 11 1
> >
> > Can someone give advice on how to best accomplish this?
> >
> > Thanks in advance.
> > CB
> >

 
Reply With Quote
 
C
Guest
Posts: n/a
 
      27th Mar 2009
Joakim,

Thanks for the responses, however I can't seem to get any of these to work
for me. You are correct that the X value represents months. This month
however has nothing to do with current date.

The spreadsheet holds personnell information and I just need to update this
once a month adding 1 to the X column. When the X column value equals 12 it
should reset to 0 and column w should return the current value + 1.

Can this be done thru VBA?

Thanks,
C

"Joakim Norrman" wrote:

> Sorry, I think the reference cell X1 shall be:
> =IF(MONTH(TODAY())+8<12;MONTH(TODAY())+8;MONTH(TODAY())-4)
>
> "Joakim Norrman" wrote:
>
> > Cell X1:
> > =IF(MONTH(TODAY())+8<12;MONTH(TODAY())+8;MONTH(TODAY())-12)
> >
> > Cell W1:
> > =IF(X1>=1;X1-1;X1+11)
> >
> > Then you can drag formula in W1 to column V, U, T, S ... (If wanted)
> >
> >
> > "C" wrote:
> >
> > > I have a spreadsheet that I need to increment Column X by one on a monthly
> > > basis. When Column x = 12 then it goes back to 0 and column w is is
> > > incremented by one.
> > >
> > > Example:
> > >
> > > March 2009
> > > Column W Column X
> > > 10 11
> > >
> > > April 2009 After Calculation
> > > Column W Column X
> > > 11 0
> > >
> > > May 2009 After Calculation
> > > Column W Column X
> > > 11 1
> > >
> > > Can someone give advice on how to best accomplish this?
> > >
> > > Thanks in advance.
> > > CB
> > >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing A Column Of Text numbers To True Numbers: How ? Robert11 Microsoft Excel New Users 2 4th Mar 2009 09:08 PM
Excel, change column of negative numbers to positive numbers? Nita Microsoft Excel New Users 3 27th Nov 2007 04:54 AM
Converting a Column of Numbers Displayed as Text to Numbers cardan Microsoft Excel Programming 4 12th Sep 2007 05:45 PM
Can I change a column of calculated numbers to absolute numbers? =?Utf-8?B?S2F0ZSBCaXNzZWxs?= Microsoft Excel Misc 3 25th Oct 2006 06:10 PM
Excel Formula - Add column of numbers but ignore negative numbers =?Utf-8?B?dmlldyBmb3IgRGlzdHJpYnV0aW9uIExpc3QgbWVt Microsoft Excel Worksheet Functions 1 7th Apr 2006 03:13 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:55 AM.