Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JPS JPS is offline
external usenet poster
 
Posts: 47
Default Adding to an existing formula

I inherited a workbook that has about 20 spreadsheets and I need to add a
round function to 250+ formulas in one of the spreadsheets. The formulas are
in a set range but their references are not relative to allow me to update
one formula and then copy to other cells. A coworker and I have concluded
that each formula will need to be updated individually. Does anyone know of a
shortcut to update all of these formulas?

Thanks,

--
JPS
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default Adding to an existing formula

One way:

http://groups.google.com/group/micro...browse_thread/
thread/a1c45338385e0fff/0afe4bc0c46218c8?lnk=st&q=#0afe4bc0c46218c8

or, equivalently,

http://tinyurl.com/4mdwn2

In article ,
JPS wrote:

I inherited a workbook that has about 20 spreadsheets and I need to add a
round function to 250+ formulas in one of the spreadsheets. The formulas are
in a set range but their references are not relative to allow me to update
one formula and then copy to other cells. A coworker and I have concluded
that each formula will need to be updated individually. Does anyone know of a
shortcut to update all of these formulas?

Thanks,

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Adding to an existing formula

Select the cells you want to modify and run this macro:

Sub rounder()
s1 = "=ROUND(("
s2 = "),0)"
For Each r In Selection
v = r.Formula
l = Len(v) - 1
r.Formula = s1 & Right(v, l) & s2
Next
End Sub


A cell containing:
=A1+A2
will become:
=ROUND((A1+A2),0)
--
Gary''s Student - gsnu200779


"JPS" wrote:

I inherited a workbook that has about 20 spreadsheets and I need to add a
round function to 250+ formulas in one of the spreadsheets. The formulas are
in a set range but their references are not relative to allow me to update
one formula and then copy to other cells. A coworker and I have concluded
that each formula will need to be updated individually. Does anyone know of a
shortcut to update all of these formulas?

Thanks,

--
JPS

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
Adding an extra row after every existing row Josh W Excel Discussion (Misc queries) 10 April 14th 08 09:56 PM
adding a line to an existing chart JudyT Charts and Charting in Excel 2 August 6th 07 04:26 PM
Adding a second series to an existing chart Angela Charts and Charting in Excel 4 February 8th 07 06:46 PM
adding formula to existing database Country Boy Excel Worksheet Functions 3 September 5th 05 03:50 PM
What is the formula for adding a number of days to an existing dat Ivan Excel Worksheet Functions 1 May 4th 05 03:00 AM


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