Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 32
Default REPLACE FUNCTION!!!!!!

I have a file which contains 3 worksheets. The problem I am having is
that every month I have had to highlight the 3 worksheets to change
the period i.e. from April to May. I use the replace function to do
this and this sometimes take too long.

What I am thinking now is inserting a 4th sheet and creating a list of
months From April to March so that once a month is selected the period
in the 3 worksheets will be authomatically replaced i.e. from April to
May. Has anyone got a better idea on how to do this using macro or any
other authomated means??


Many thanks in advance.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default REPLACE FUNCTION!!!!!!

There's a couple of good ways to do this with functions. The simplest is to
put the formula =TODAY() in the cell, and then format the cell for any date
format you like (I'm thinking the one that says the month name and the year).
Unfortunately, there is no format which only says the month name, and
nothing else.
The other way, which is slightly more complex, is to use a combination of
the Today, Month, and Choose functions as follows:
=CHOOSE(MONTH(TODAY()), "January", "February", ..... "December")
This will give you just the current month, as text.
If you don't want it to neccessarily show the current month, you can always
off-set it by inserting +/- some number after the month function:
=CHOOSE(MONTH(TODAY())+1, "January"....)
I hope this gives you what you wanted.

"Ola2B" wrote:

I have a file which contains 3 worksheets. The problem I am having is
that every month I have had to highlight the 3 worksheets to change
the period i.e. from April to May. I use the replace function to do
this and this sometimes take too long.

What I am thinking now is inserting a 4th sheet and creating a list of
months From April to March so that once a month is selected the period
in the 3 worksheets will be authomatically replaced i.e. from April to
May. Has anyone got a better idea on how to do this using macro or any
other authomated means??


Many thanks in advance.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default REPLACE FUNCTION!!!!!!

Hi

FYI
Unfortunately, there is no format which only says the month name, and
nothing else


FormatCellsNumberCustom
mmm for Jan, Feb etc.
mmmm for January, February
--
Regards

Roger Govier


"Juskalux" wrote in message
...
There's a couple of good ways to do this with functions. The simplest
is to
put the formula =TODAY() in the cell, and then format the cell for any
date
format you like (I'm thinking the one that says the month name and the
year).
Unfortunately, there is no format which only says the month name, and
nothing else.
The other way, which is slightly more complex, is to use a combination
of
the Today, Month, and Choose functions as follows:
=CHOOSE(MONTH(TODAY()), "January", "February", ..... "December")
This will give you just the current month, as text.
If you don't want it to neccessarily show the current month, you can
always
off-set it by inserting +/- some number after the month function:
=CHOOSE(MONTH(TODAY())+1, "January"....)
I hope this gives you what you wanted.

"Ola2B" wrote:

I have a file which contains 3 worksheets. The problem I am having is
that every month I have had to highlight the 3 worksheets to change
the period i.e. from April to May. I use the replace function to do
this and this sometimes take too long.

What I am thinking now is inserting a 4th sheet and creating a list
of
months From April to March so that once a month is selected the
period
in the 3 worksheets will be authomatically replaced i.e. from April
to
May. Has anyone got a better idea on how to do this using macro or
any
other authomated means??


Many thanks in advance.




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,202
Default REPLACE FUNCTION!!!!!!

There's a couple of good ways to do this with functions. The simplest is
to
put the formula =TODAY() in the cell, and then format the cell for any
date
format you like (I'm thinking the one that says the month name and the
year).
Unfortunately, there is no format which only says the month name, and
nothing else.
The other way, which is slightly more complex, is to use a combination of
the Today, Month, and Choose functions as follows:
=CHOOSE(MONTH(TODAY()), "January", "February", ..... "December")
This will give you just the current month, as text.

Or, you could do this...

=TEXT(TODAY(),"mmmm")

(or use "mmm" for the abbreviated month name)

Rick

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
Replace function!!!!!! Ola2B Excel Discussion (Misc queries) 1 June 26th 07 09:34 AM
Using the replace function less caldog Excel Worksheet Functions 0 January 4th 07 07:48 PM
Replace Function Autumn Dreams Excel Discussion (Misc queries) 3 June 4th 06 12:33 PM
replace function andrewm Excel Worksheet Functions 3 July 19th 05 12:29 PM
How i can replace function Luka Excel Worksheet Functions 3 December 27th 04 09:04 PM


All times are GMT +1. The time now is 02:29 AM.

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"