LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 184
Default Multiply cells in range by corresponding factor

Hi, try something like this in a standard module:

Sub myCalc()
Dim myCell As Range
Dim C&
For Each myCell In Selection
If Application.WorksheetFunction.IsNumber(myCell.Valu e) Then
C = myCell.Column
myCell.Value = Cells(2, C) * myCell.Value
End If
Next
End Sub

HTH--Lonnie M.

 
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
multiply range of cells by a fluctuating exchange rate Oliver Excel Discussion (Misc queries) 8 September 3rd 06 09:07 AM
How to multiply all cells in array by factor rhauff Excel Discussion (Misc queries) 2 March 21st 06 03:01 PM
multiply all values in all cells by a factor [email protected] Excel Discussion (Misc queries) 1 March 14th 06 09:51 PM
Would like one cell to both count and multiply a range of cells golfer18 Excel Worksheet Functions 2 February 27th 06 03:33 AM
Multiply one cell by a factor and make that result round Machel_C Excel Worksheet Functions 7 March 15th 05 08:04 PM


All times are GMT +1. The time now is 09:15 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"