Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Autumn Dreams
 
Posts: n/a
Default Change Year Date In A Formula Throughout The Spreadsheet

I am using the formula =COUNTIF('Jan-06'!$D$3:$D$500,"Sales"). We copy the
data down within the same spreadsheet to create one for the new year. The
Jan-06 is based on the tab name, therefore when the year changes to 2007 the
added new tab will be Jan-07. This is used for all 12 months in 12 columns
with the "Sales" changing for each item that needs counting. Is there a way
to create a formula that when the year is changed in the first formula in
Column B5, the year in every formula in the spreadsheet is changed within
that section only?

  #2   Report Post  
Posted to microsoft.public.excel.misc
Pete_UK
 
Posts: n/a
Default Change Year Date In A Formula Throughout The Spreadsheet

As your tab names will be text, you can do Find and Replace to do this
in one operation.

Highlight all the cells in the new sheet (CTRL-A, or click the
intersection between row and column identifiers), then Edit | Replace
(or CTRL-H) and enter in the two boxes:

Find What: -06
Replace With: -07

then click Replace All. This should accomplish what you want to do.

Hope this helps.

Pete

Autumn Dreams wrote:
I am using the formula =COUNTIF('Jan-06'!$D$3:$D$500,"Sales"). We copy the
data down within the same spreadsheet to create one for the new year. The
Jan-06 is based on the tab name, therefore when the year changes to 2007 the
added new tab will be Jan-07. This is used for all 12 months in 12 columns
with the "Sales" changing for each item that needs counting. Is there a way
to create a formula that when the year is changed in the first formula in
Column B5, the year in every formula in the spreadsheet is changed within
that section only?


  #3   Report Post  
Posted to microsoft.public.excel.misc
Autumn Dreams
 
Posts: n/a
Default Change Year Date In A Formula Throughout The Spreadsheet

This works, except a window comes up "Update Values -06" and opens into My
Documents. To get rid of it you have to click cancel for each formula
highlighted and that would entail 240 times. How do I get past this?

"Pete_UK" wrote:

As your tab names will be text, you can do Find and Replace to do this
in one operation.

Highlight all the cells in the new sheet (CTRL-A, or click the
intersection between row and column identifiers), then Edit | Replace
(or CTRL-H) and enter in the two boxes:

Find What: -06
Replace With: -07

then click Replace All. This should accomplish what you want to do.

Hope this helps.

Pete

Autumn Dreams wrote:
I am using the formula =COUNTIF('Jan-06'!$D$3:$D$500,"Sales"). We copy the
data down within the same spreadsheet to create one for the new year. The
Jan-06 is based on the tab name, therefore when the year changes to 2007 the
added new tab will be Jan-07. This is used for all 12 months in 12 columns
with the "Sales" changing for each item that needs counting. Is there a way
to create a formula that when the year is changed in the first formula in
Column B5, the year in every formula in the spreadsheet is changed within
that section only?



  #4   Report Post  
Posted to microsoft.public.excel.misc
Pete_UK
 
Posts: n/a
Default Change Year Date In A Formula Throughout The Spreadsheet

I've never come across this, so sorry, can't advise what's happening.
Perhaps it means you've got links to other workbooks.

Pete

Autumn Dreams wrote:
This works, except a window comes up "Update Values -06" and opens into My
Documents. To get rid of it you have to click cancel for each formula
highlighted and that would entail 240 times. How do I get past this?

"Pete_UK" wrote:

As your tab names will be text, you can do Find and Replace to do this
in one operation.

Highlight all the cells in the new sheet (CTRL-A, or click the
intersection between row and column identifiers), then Edit | Replace
(or CTRL-H) and enter in the two boxes:

Find What: -06
Replace With: -07

then click Replace All. This should accomplish what you want to do.

Hope this helps.

Pete

Autumn Dreams wrote:
I am using the formula =COUNTIF('Jan-06'!$D$3:$D$500,"Sales"). We copy the
data down within the same spreadsheet to create one for the new year. The
Jan-06 is based on the tab name, therefore when the year changes to 2007 the
added new tab will be Jan-07. This is used for all 12 months in 12 columns
with the "Sales" changing for each item that needs counting. Is there a way
to create a formula that when the year is changed in the first formula in
Column B5, the year in every formula in the spreadsheet is changed within
that section only?




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
change year date kevin Excel Worksheet Functions 1 January 20th 06 04:34 PM
Vacation Accrual Formula MissNadine Excel Worksheet Functions 0 August 18th 05 04:02 AM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Date formula: return Quarter and Fiscal Year of a date Rob Excel Discussion (Misc queries) 7 May 11th 05 08:48 PM
Formula to get a day of the year from a date [email protected] Excel Discussion (Misc queries) 4 February 1st 05 02:53 PM


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

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

About Us

"It's about Microsoft Excel"