Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 34
Default Product calculation macro

I need my macro to do a calculation in cell h3. The calculation logic should
be:

Multiply value in cell G3 by value in cell H1. This value should then show
up in cell H3. Then I need it to do the same thing for the next row
(multiply value in cell G4 by value in cell H1 and place answer in cell H4.
I need to this to fill down for all used rows.

Thanks in advance.

Mike
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 10,593
Default Product calculation macro


iLastRow = Cells(Rows.Count, "G").End(xlUp).Row
For i = 3 To iLatRow
Cells(i,"H).Value = Cells(i,"G").Value * Range("H1").Value
Next i

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"MikeD1224" wrote in message
...
I need my macro to do a calculation in cell h3. The calculation logic
should
be:

Multiply value in cell G3 by value in cell H1. This value should then
show
up in cell H3. Then I need it to do the same thing for the next row
(multiply value in cell G4 by value in cell H1 and place answer in cell
H4.
I need to this to fill down for all used rows.

Thanks in advance.

Mike



Reply
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
macro to go to cell based upon a calculation MARK M Excel Discussion (Misc queries) 7 November 30th 08 01:28 AM
MACRO TO SET THE AUTOMATIC CALCULATION OB Excel Discussion (Misc queries) 2 November 15th 06 05:36 PM
how to raise the Macro security level in a product I can't execute vfstevenson Excel Discussion (Misc queries) 0 September 15th 05 09:48 PM
product calculation in excel JCLim Excel Worksheet Functions 1 July 22nd 05 03:24 PM
How to automatic calculation and macro execution between 3 workbooks? c Excel Worksheet Functions 1 July 22nd 05 05:38 AM


All times are GMT +1. The time now is 06:04 PM.

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

About Us

"It's about Microsoft Excel"