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

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
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.
 
Upvote 0

Forum statistics

Threads
1,214,951
Messages
6,122,442
Members
449,083
Latest member
Ava19

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