Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
marika1981
 
Posts: n/a
Default how to create a dynamic descending list of months & years

I'm trying to create a spreadsheet whereby in cell A1 I enter in any given
Month and Year ("January 2005", formatted as a date), and in cells B1:J1 the
previous months and years show up (December 2004; November 2004; October
2004; etc....) If I type in "April 1985", the adjacent cells would read
"March 1985; February 1985; January 1985; December 1984; etc...

I've thought of a couple laboriuos, crude, potentially faulty ways of doing
this, but it seems like there should be an eloquent solution.

Very much appreciated!!!
Marika :)

  #2   Report Post  
Nick B
 
Posts: n/a
Default

Can you put the following formula in B1:
=date(year(A1),2,1)
the following in C1:
=date(year(A1),3,1)
etc. this will create a date with the year that is in A1 and the second
parameter specifies the number of the month...

"marika1981" wrote:

I'm trying to create a spreadsheet whereby in cell A1 I enter in any given
Month and Year ("January 2005", formatted as a date), and in cells B1:J1 the
previous months and years show up (December 2004; November 2004; October
2004; etc....) If I type in "April 1985", the adjacent cells would read
"March 1985; February 1985; January 1985; December 1984; etc...

I've thought of a couple laboriuos, crude, potentially faulty ways of doing
this, but it seems like there should be an eloquent solution.

Very much appreciated!!!
Marika :)

  #3   Report Post  
R.VENKATARAMAN
 
Posts: n/a
Default

you mut have entered some date in dec e.g. 12/1/2005 in A1 and format it as
december-05
now highlight A1 to J1
edit-fill-series-date and check month stepvalue -1 (minus one) and clcik
ok

try this and see what you get



marika1981 wrote in message
...
I'm trying to create a spreadsheet whereby in cell A1 I enter in any given
Month and Year ("January 2005", formatted as a date), and in cells B1:J1

the
previous months and years show up (December 2004; November 2004; October
2004; etc....) If I type in "April 1985", the adjacent cells would read
"March 1985; February 1985; January 1985; December 1984; etc...

I've thought of a couple laboriuos, crude, potentially faulty ways of

doing
this, but it seems like there should be an eloquent solution.

Very much appreciated!!!
Marika :)



  #4   Report Post  
Jason Morin
 
Posts: n/a
Default

Enter the 1st day of the month in A1 in the format
m/d/yy, then customer format as mmmm yyy.

In B1 insert this:

=DATE(YEAR(A1),MONTH(A1)-1,1)

and fill across. Format the cells as mmmm yyy.

HTH
Jason
Atlanta, GA

-----Original Message-----
I'm trying to create a spreadsheet whereby in cell A1 I

enter in any given
Month and Year ("January 2005", formatted as a date),

and in cells B1:J1 the
previous months and years show up (December 2004;

November 2004; October
2004; etc....) If I type in "April 1985", the adjacent

cells would read
"March 1985; February 1985; January 1985; December 1984;

etc...

I've thought of a couple laboriuos, crude, potentially

faulty ways of doing
this, but it seems like there should be an eloquent

solution.

Very much appreciated!!!
Marika :)

.

  #5   Report Post  
Max
 
Posts: n/a
Default

One way

With A1 containing, say: January 2005

Put in B1:

=DATE(YEAR($A1),MONTH($A1)-COLUMNS($A$1:A1),1)

Format as per date in A1

Copy B1 across as many cols as needed

The above will return what is wanted
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"marika1981" wrote in message
...
I'm trying to create a spreadsheet whereby in cell A1 I enter in any given
Month and Year ("January 2005", formatted as a date), and in cells B1:J1

the
previous months and years show up (December 2004; November 2004; October
2004; etc....) If I type in "April 1985", the adjacent cells would read
"March 1985; February 1985; January 1985; December 1984; etc...

I've thought of a couple laboriuos, crude, potentially faulty ways of

doing
this, but it seems like there should be an eloquent solution.

Very much appreciated!!!
Marika :)





  #6   Report Post  
marika1981
 
Posts: n/a
Default

Jason - thank you!!! That worked perfectly!

Breathing easier,

Marika :)

"Jason Morin" wrote:

Enter the 1st day of the month in A1 in the format
m/d/yy, then customer format as mmmm yyy.

In B1 insert this:

=DATE(YEAR(A1),MONTH(A1)-1,1)

and fill across. Format the cells as mmmm yyy.

HTH
Jason
Atlanta, GA

-----Original Message-----
I'm trying to create a spreadsheet whereby in cell A1 I

enter in any given
Month and Year ("January 2005", formatted as a date),

and in cells B1:J1 the
previous months and years show up (December 2004;

November 2004; October
2004; etc....) If I type in "April 1985", the adjacent

cells would read
"March 1985; February 1985; January 1985; December 1984;

etc...

I've thought of a couple laboriuos, crude, potentially

faulty ways of doing
this, but it seems like there should be an eloquent

solution.

Very much appreciated!!!
Marika :)

.


  #7   Report Post  
Nick B
 
Posts: n/a
Default

Sorry, didn't read it close enough.

"Nick B" wrote:

Can you put the following formula in B1:
=date(year(A1),2,1)
the following in C1:
=date(year(A1),3,1)
etc. this will create a date with the year that is in A1 and the second
parameter specifies the number of the month...

"marika1981" wrote:

I'm trying to create a spreadsheet whereby in cell A1 I enter in any given
Month and Year ("January 2005", formatted as a date), and in cells B1:J1 the
previous months and years show up (December 2004; November 2004; October
2004; etc....) If I type in "April 1985", the adjacent cells would read
"March 1985; February 1985; January 1985; December 1984; etc...

I've thought of a couple laboriuos, crude, potentially faulty ways of doing
this, but it seems like there should be an eloquent solution.

Very much appreciated!!!
Marika :)

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a dynamic list Jarrod A Excel Worksheet Functions 1 November 18th 05 11:29 PM
Is there a way to create a drop-down list of links in Excel? t_boden Excel Worksheet Functions 1 February 3rd 05 06:14 PM
The pivot tables 101 article says to use the "Create List" comman. cgnoland03 New Users to Excel 2 January 14th 05 11:39 PM
create a drop down list with the source from a different workbook Sampath Excel Discussion (Misc queries) 2 January 8th 05 07:57 PM
Creating a dynamic list JarrodA Excel Worksheet Functions 3 October 30th 04 04:01 AM


All times are GMT +1. The time now is 10:48 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"