Sum(indirect

ron.bo

Board Regular
Joined
Mar 15, 2011
Messages
129
Office Version
  1. 2007
Platform
  1. Windows
Does anyone know of a routine or a way to change a number of formulas from SUM to SUM(INDIRECT ?

It seems to me that this would be a fairly common problem, but I can not find a solution.

Thanks for any help.
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
And what do your full formulas look like? I can't tell if Edit/Replaces are going to work, as you've given no examples.
 
Upvote 0
Check out Cell D2
Excel Workbook
ABCDEFGH
11.00Range Name
22.00The Total35The Sum:Assigned
33.00Start Line:5SRow
44.00End Line:9ERow
55.00
66.00
77.00
88.00
99.00
1010.00
Sheet1
Excel 2007
Cell Formulas
RangeFormula
D2=SUM(INDIRECT("A"&SRow&":A"&ERow))
Excel Workbook
NameRefers To
ERow=Sheet1!$G$4
SRow=Sheet1!$G$3
Workbook Defined Names
 
Upvote 0
I use find/replace for simple formulas but in the following example find/replace gets to be a lot of work.

<TABLE style="WIDTH: 60pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=80 x:str><COLGROUP><COL style="WIDTH: 60pt; mso-width-source: userset; mso-width-alt: 2925" width=80><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 12.75pt; COLOR: red; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid; mso-ignore: style" class=xl41 height=17 width=80 align=right x:num="-2.6975149957155099E-2"></TD></TR></TBODY></TABLE>
IF($C6=0,"",(SUM(C6:N6)-SUM(O6:Z6))/SUM(O6:Z6))
 
Upvote 0
I use find/replace for simple formulas but in the following example find/replace gets to be a lot of work.

<TABLE style="WIDTH: 60pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=80 x:str><COLGROUP><COL style="WIDTH: 60pt; mso-width-source: userset; mso-width-alt: 2925" width=80><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; HEIGHT: 12.75pt; COLOR: red; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid; mso-ignore: style" class=xl41 height=17 width=80 align=right x:num="-2.6975149957155099E-2"></TD></TR></TBODY></TABLE>
IF($C6=0,"",(SUM(C6:N6)-SUM(O6:Z6))/SUM(O6:Z6))
Yeah, that's about 4 times the amount of work. But it still might be easier than typing into each cell by hand. It depends whether there's a good set of characters to match the end of the SUM function argument. Like, in your example, the 6) is a good place to start replacing things, so I'd go:
Edit/Replace:
= with #
6) with 6"))
SUM( with SUM(INDIRECT("
# with =

That's the best I can offer in native Excel.
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,292
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top