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
 

Some videos you may like

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

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.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,371
Messages
5,595,784
Members
414,020
Latest member
Meghdad

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