Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 47
Default Recalculate formulas when active sheet switches

I'm working on a simple ledger workbook, but I'm having trouble with a
formula that does a vlookup based upon the sheet's name. The trouble is that
when it updates, I then switch to a copy of the sheet (with a changed sheet
name), but the formula doesn't update, and keeps the same value as that of
the last sheet.

How can I have excel recalculate the formulas when the active sheet is
changed?

Formula that isn't updating:
=VALUE(MID(CELL("filename"),FIND("]",CELL("filename"))+1,255))&" -
"&VLOOKUP(VALUE(MID(CELL("filename"),FIND("]",CELL("filename"))+1,255)),
Summary!A5:F38, 2)

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Recalculate formulas when active sheet switches

Try changing all these strings so that they include the cell that holds the
formula:

If the formula is in x9, then
CELL("filename")
becomes
CELL("filename",x9)

If you don't specify a range, then excel will use the workbook/sheet that's
active when it recalcs.

Matthew wrote:

I'm working on a simple ledger workbook, but I'm having trouble with a
formula that does a vlookup based upon the sheet's name. The trouble is that
when it updates, I then switch to a copy of the sheet (with a changed sheet
name), but the formula doesn't update, and keeps the same value as that of
the last sheet.

How can I have excel recalculate the formulas when the active sheet is
changed?

Formula that isn't updating:
=VALUE(MID(CELL("filename"),FIND("]",CELL("filename"))+1,255))&" -
"&VLOOKUP(VALUE(MID(CELL("filename"),FIND("]",CELL("filename"))+1,255)),
Summary!A5:F38, 2)


--

Dave Peterson
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
formulas won't recalculate walark Excel Worksheet Functions 2 May 14th 07 07:24 PM
Big delay to recalculate formulas LACA Excel Discussion (Misc queries) 2 January 12th 06 12:14 AM
Don't show sheet switches when running macro Ben Excel Programming 4 May 25th 05 02:10 PM
Filter Switches vs Sheet Protection? Ken Excel Discussion (Misc queries) 3 February 23rd 05 09:38 PM
Printing switches focus off proper sheet Abi Excel Worksheet Functions 1 January 26th 05 07:42 PM


All times are GMT +1. The time now is 07:37 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"