Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi everyone,
I am kind of new to using MSExcel and I am having a little trouble with macros.I have to sum up few rows based on some conditions, so I used a SUMIFS and then I have to count the rows based on some conditions again and so I used a COUNTIFS. I recorded a macro while putting in these formulas.The problem is, if I add more rows to the excel sheet and then run the macro, the new rows will not be included in the computations performed by the macro. Is there a way that this can be resolved?I've done some research on this and all I found was that editing macros is not a good idea. Any inputs would help me greatly. Thanks in advance. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi.
For intance, you may want to use : Range("A1", Range("A65536").End(xlUp)) to select the column A range from A1 to the last non blank cell. Regards. Daniel Hi everyone, I am kind of new to using MSExcel and I am having a little trouble with macros.I have to sum up few rows based on some conditions, so I used a SUMIFS and then I have to count the rows based on some conditions again and so I used a COUNTIFS. I recorded a macro while putting in these formulas.The problem is, if I add more rows to the excel sheet and then run the macro, the new rows will not be included in the computations performed by the macro. Is there a way that this can be resolved?I've done some research on this and all I found was that editing macros is not a good idea. Any inputs would help me greatly. Thanks in advance. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I'm not sure who told you editing macros is not a good idea; often it is the
only way to achieve a 'robust' and adaptable solution. Exercise caution, yes, fear to tread on new ground - no. If you post your recorded macro, I'll bet we can get it to a 'robust and adaptable' state. "msofficehelp" wrote: Hi everyone, I am kind of new to using MSExcel and I am having a little trouble with macros.I have to sum up few rows based on some conditions, so I used a SUMIFS and then I have to count the rows based on some conditions again and so I used a COUNTIFS. I recorded a macro while putting in these formulas.The problem is, if I add more rows to the excel sheet and then run the macro, the new rows will not be included in the computations performed by the macro. Is there a way that this can be resolved?I've done some research on this and all I found was that editing macros is not a good idea. Any inputs would help me greatly. Thanks in advance. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro issue | Excel Discussion (Misc queries) | |||
Macro Issue | New Users to Excel | |||
Doing MS Training in Excel, having Macro Issue | Excel Discussion (Misc queries) | |||
Excel Macro- sort issue in Excel2003 | Excel Worksheet Functions | |||
Excel 2007 Macro/Link Issue (apologies for cross-posting) | Links and Linking in Excel |