Trying to multiply numbers in a column by numbers previously calculated in another column down to Last Row

Bobaree

New Member
Joined
Aug 13, 2014
Messages
41
Can anyone tell me why I'm getting an answer of #Value! to the code below? In a previous Sub, I have converted the formulas to values. Now I'm trying to multiply by 30 in one case and 10 in the second case. Thank everyone in advance for your incredible help.

Sub Multiplier_for_Big_Safe_Dividends()
'Does the weighting of each of the ratios in the six columns
Dim Multipliers As Range
Dim Cell As Range
Set Multipliers = Columns("Q").SpecialCells(xlCellTypeConstants, xlNumbers)
For Each Cell In Multipliers
Cell.Offset(0, -10).Formula = "=30*(" & Multipliers.Address & "," & Cell.Address(False, False) & ")"
Next Cell
Set Multipliers = Columns("R").SpecialCells(xlCellTypeConstants, xlNumbers)
For Each Cell In Multipliers
Cell.Offset(0, -10).Formula = "=10*(" & Multipliers.Address & "," & Cell.Address(False, False) & ")"
Next Cell
End Sub
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

JLGWhiz

Well-known Member
Joined
Feb 7, 2012
Messages
12,979
Office Version
  1. 2013
Platform
  1. Windows
The formula that you are trying to post is essentially the same as:
Code:
=30*(Q2:Q10,Q2)
Which won't work. I think all you really want is
Code:
Cell.Offset(0, -10).Formula = "=30*" & Cell.Address(False, False)
and same for the =10* line.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,670
Messages
5,838,688
Members
430,563
Latest member
Raeyven

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
Top