PC Review


Reply
Thread Tools Rate Thread

Adding 1 year's difference to user's input of yyyy-yyyy?

 
 
StargateFanFromWork
Guest
Posts: n/a
 
      29th May 2007
If a user inputs 2000-2001, or 2007-2008, is there a way to formulaically
have the cell underneath increase by one year?

i.e., if in B2 the user input, say, 2005-2006, B3 would show 2006-2007 and
B4 would show 2007-2008, etc. down the column?

Thank you! D


 
Reply With Quote
 
 
 
 
Pete_UK
Guest
Posts: n/a
 
      29th May 2007
Try this:

=IF(B2="","",VALUE(LEFT(B2,4))+1 &"-"& VALUE(RIGHT(B2,4))+1)

and copy down the column for as many as you need.

Hope this helps.

Pete

On May 29, 3:16 pm, "StargateFanFromWork" <NoS...@NoJunk.com> wrote:
> If a user inputs 2000-2001, or 2007-2008, is there a way to formulaically
> have the cell underneath increase by one year?
>
> i.e., if in B2 the user input, say, 2005-2006, B3 would show 2006-2007 and
> B4 would show 2007-2008, etc. down the column?
>
> Thank you! D



 
Reply With Quote
 
StargateFanFromWork
Guest
Posts: n/a
 
      29th May 2007
"Pete_UK" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Try this:
>
> =IF(B2="","",VALUE(LEFT(B2,4))+1 &"-"& VALUE(RIGHT(B2,4))+1)
>
> and copy down the column for as many as you need.
>
> Hope this helps.
>
> Pete


Seems to do the job just perfectly. Thanks!

> On May 29, 3:16 pm, "StargateFanFromWork" <NoS...@NoJunk.com> wrote:
>> If a user inputs 2000-2001, or 2007-2008, is there a way to formulaically
>> have the cell underneath increase by one year?
>>
>> i.e., if in B2 the user input, say, 2005-2006, B3 would show 2006-2007
>> and
>> B4 would show 2007-2008, etc. down the column?
>>
>> Thank you! D



 
Reply With Quote
 
Pete_UK
Guest
Posts: n/a
 
      29th May 2007
You're welcome - thanks for taking the trouble to feed back.

Pete

On May 29, 4:56 pm, "StargateFanFromWork" <NoS...@NoJunk.com> wrote:
> "Pete_UK" <pashu...@auditel.net> wrote in message
>
> news:(E-Mail Removed)...
>
> > Try this:

>
> > =IF(B2="","",VALUE(LEFT(B2,4))+1 &"-"& VALUE(RIGHT(B2,4))+1)

>
> > and copy down the column for as many as you need.

>
> > Hope this helps.

>
> > Pete

>
> Seems to do the job just perfectly. Thanks!
>
>
>
> > On May 29, 3:16 pm, "StargateFanFromWork" <NoS...@NoJunk.com> wrote:
> >> If a user inputs 2000-2001, or 2007-2008, is there a way to formulaically
> >> have the cell underneath increase by one year?

>
> >> i.e., if in B2 the user input, say, 2005-2006, B3 would show 2006-2007
> >> and
> >> B4 would show 2007-2008, etc. down the column?

>
> >> Thank you! D- Hide quoted text -

>
> - Show quoted text -



 
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
dd/MM/YYYY in SQL & Ctrl Panel but access read it as MM/dd/YYYY =?Utf-8?B?U3VtbWVyQ29rZQ==?= Microsoft Access Queries 2 10th Sep 2007 06:17 AM
change birthday display from mm/dd/yyyy to HIDE the yyyy? =?Utf-8?B?am9obnA=?= Microsoft Excel Worksheet Functions 1 9th May 2006 09:56 PM
How do I query a Date field (mm/dd/yyyy) by a Year (yyyy) value. Wayne Microsoft Access Queries 2 23rd Feb 2006 12:24 AM
opening excel file -> date format problem: DD/MM/YYYY vs MM/DD/YYYY yung Microsoft Excel Programming 2 18th Mar 2005 12:50 PM
Date format : field set to dd/mm/yyyy, but query wants mm/dd/yyyy aa Microsoft Access Database Table Design 2 29th Dec 2003 10:53 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:11 AM.