Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello all,
How do I create a macro procedure to make a calculation using this rows? the number of columns will vary each time I use the macro: R:R will be the column receiving the results. R:R=((N:N/M:M)*H:H)*100 I appreciate the help |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Abilio,
Try this: Sub Abilio() Range("R2:R" & Cells(Rows.Count, 8).End(xlUp).Row).FormulaR1C1 = _ "=((RC[-4]/RC[-5])*RC[-10])*100" End Sub HTH, Bernie MS Excel MVP "Abilio" wrote in message ... Hello all, How do I create a macro procedure to make a calculation using this rows? the number of columns will vary each time I use the macro: R:R will be the column receiving the results. R:R=((N:N/M:M)*H:H)*100 I appreciate the help |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
It works! I love you Bernie
Thank you very much Abilio "Bernie Deitrick" wrote: Abilio, Try this: Sub Abilio() Range("R2:R" & Cells(Rows.Count, 8).End(xlUp).Row).FormulaR1C1 = _ "=((RC[-4]/RC[-5])*RC[-10])*100" End Sub HTH, Bernie MS Excel MVP "Abilio" wrote in message ... Hello all, How do I create a macro procedure to make a calculation using this rows? the number of columns will vary each time I use the macro: R:R will be the column receiving the results. R:R=((N:N/M:M)*H:H)*100 I appreciate the help |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I love you Bernie
That's the first time anyone has ever posted that in response to one of my replies in these newsgroups! Bernie MS Excel MVP |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macros for calculating the range | Excel Programming | |||
Macros for calculating the range | Excel Programming | |||
Calculating recurring date in following month, calculating # days in that period | Excel Worksheet Functions | |||
CALCULATING WORKSHEETS (INCLUDING AGE CALCULATING SHEETS) FOR DOWNLOADING, GREAT FOR PENSIONS/LIFE INSURANCE CALCULATIONS! | Excel Programming | |||
macros for calculating a new average after inserting a new row | Excel Programming |