Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I'm not sure I'm posting this in the right place but here goes.
I'm using Excel 2007. Excel is "supposed" to default to copying formulas into inserted rows by default (assuming previous rows have the same formula). I've also ensured the option to Extend data range formats and formulas is checked in [Windows Symbol]-Excel Options-Advanced. My formulas are not being copied to the inserted row and one formula in the row below where a relative reference to the row above is not adjusted correctly (i.e. a simple "=A5" for row 6 on insert remains "=A5" rather than adjusting to "=A6"). So two different problems but both occurring when I try to insert a row. Any idea why this isn't working properly? MJS |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You want to use
in row 6 =OFFSET(A5,-1,0) instead of =A5 see http://www.mvps.org/dmcritchie/excel/offset.htm http://www.mvps.org/dmcritchie/excel/insrtrow.htm -- HTH, David McRitchie, Microsoft MVP -- Excel My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm "MJS" wrote in message ... I'm not sure I'm posting this in the right place but here goes. I'm using Excel 2007. Excel is "supposed" to default to copying formulas into inserted rows by default (assuming previous rows have the same formula). I've also ensured the option to Extend data range formats and formulas is checked in [Windows Symbol]-Excel Options-Advanced. My formulas are not being copied to the inserted row and one formula in the row below where a relative reference to the row above is not adjusted correctly (i.e. a simple "=A5" for row 6 on insert remains "=A5" rather than adjusting to "=A6"). So two different problems but both occurring when I try to insert a row. Any idea why this isn't working properly? MJS |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
In A6: =INDIRECT("A"&ROW()-1)
"MJS" wrote: I'm not sure I'm posting this in the right place but here goes. I'm using Excel 2007. Excel is "supposed" to default to copying formulas into inserted rows by default (assuming previous rows have the same formula). I've also ensured the option to Extend data range formats and formulas is checked in [Windows Symbol]-Excel Options-Advanced. My formulas are not being copied to the inserted row and one formula in the row below where a relative reference to the row above is not adjusted correctly (i.e. a simple "=A5" for row 6 on insert remains "=A5" rather than adjusting to "=A6"). So two different problems but both occurring when I try to insert a row. Any idea why this isn't working properly? MJS |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks all. But this doesn't explain why, currently, no formulas are showing
up in those columns in the inserted row. Is there something else I'm missing (an option/parameter) that ensure all formulas are copied to new rows? M. "Teethless mama" wrote: In A6: =INDIRECT("A"&ROW()-1) "MJS" wrote: I'm not sure I'm posting this in the right place but here goes. I'm using Excel 2007. Excel is "supposed" to default to copying formulas into inserted rows by default (assuming previous rows have the same formula). I've also ensured the option to Extend data range formats and formulas is checked in [Windows Symbol]-Excel Options-Advanced. My formulas are not being copied to the inserted row and one formula in the row below where a relative reference to the row above is not adjusted correctly (i.e. a simple "=A5" for row 6 on insert remains "=A5" rather than adjusting to "=A6"). So two different problems but both occurring when I try to insert a row. Any idea why this isn't working properly? MJS |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Auto Extend is not on by default. And check out it behavior in...
XL2000: How Auto Extend List Behavior Works http://support.microsoft.com/default...;en-us;Q231002 Three of the last five rows must have the formula, you don't have enough rows if you have a header row and something for the formula to work on you do not have enough rows the criteria to kick in with =A5 I would not put much reliance in Auto Extend if not always the same, I keep the option turned on but I rely on the macro that I created to copy formulas down from preceding row. Insert a Row using a Macro to maintain formulas http://www.mvps.org/dmcritchie/excel/insrtrow.htm What the macro does is insert the number of rows requested downward and copies the formulas into the new rows, by copying the entire row and removing constants. Means that the formulas are adjusted. Which is what you asked for, but the use of OFFSET instead of INDIRECT, I think, you would find easier to work with. You main problem was the lack of sufficient rows with he formula in them. My macro requires only the row that you have selected (if multiple rows are selected, the row with the active cell). And you are always asked how many rows you want to insert. If you have a specific number of rows to insert below see the documentation, and change the calling macro not the main macro. -- HTH, David McRitchie, Microsoft MVP -- Excel My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm "MJS" wrote in message ... Thanks all. But this doesn't explain why, currently, no formulas are showing up in those columns in the inserted row. Is there something else I'm missing (an option/parameter) that ensure all formulas are copied to new rows? M. "Teethless mama" wrote: In A6: =INDIRECT("A"&ROW()-1) "MJS" wrote: I'm not sure I'm posting this in the right place but here goes. I'm using Excel 2007. Excel is "supposed" to default to copying formulas into inserted rows by default (assuming previous rows have the same formula). I've also ensured the option to Extend data range formats and formulas is checked in [Windows Symbol]-Excel Options-Advanced. My formulas are not being copied to the inserted row and one formula in the row below where a relative reference to the row above is not adjusted correctly (i.e. a simple "=A5" for row 6 on insert remains "=A5" rather than adjusting to "=A6"). So two different problems but both occurring when I try to insert a row. Any idea why this isn't working properly? MJS |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks David. The macro in question worked.
When I said the extend option is turned on by default, that was based on the online help I researched for Excel 2007. I don't know whether that statement was specific to 2007 or not. In any event, I did have it on. And I did get unreliable results which begs the question, what is it there for if you can't count on the results? Very annoying. Anyway, I also was testing the insert ensuring there were at least 5 rows above my insert point with the formulas I wanted copied. And it didn't work. As I said your macro worked. My next difficulty though is that I will have to deliver this spreadsheet to others (some from other companies). I created my own digital signature and attached it to the macro but I suspect I'd have to deliver the signature file itself. Yes? Where are these files stored? I've been searching help for indication of where they are stored and searching my hard drive for a file that I assume is called the name of the certificate I created. But no luck so far. Also, I had to save the file as a macro enabled version (xlsm) and had to enable digitally signed macros. So I assume that's the way to go. Yes? M. "David McRitchie" wrote: Auto Extend is not on by default. And check out it behavior in... XL2000: How Auto Extend List Behavior Works http://support.microsoft.com/default...;en-us;Q231002 Three of the last five rows must have the formula, you don't have enough rows if you have a header row and something for the formula to work on you do not have enough rows the criteria to kick in with =A5 I would not put much reliance in Auto Extend if not always the same, I keep the option turned on but I rely on the macro that I created to copy formulas down from preceding row. Insert a Row using a Macro to maintain formulas http://www.mvps.org/dmcritchie/excel/insrtrow.htm What the macro does is insert the number of rows requested downward and copies the formulas into the new rows, by copying the entire row and removing constants. Means that the formulas are adjusted. Which is what you asked for, but the use of OFFSET instead of INDIRECT, I think, you would find easier to work with. You main problem was the lack of sufficient rows with he formula in them. My macro requires only the row that you have selected (if multiple rows are selected, the row with the active cell). And you are always asked how many rows you want to insert. If you have a specific number of rows to insert below see the documentation, and change the calling macro not the main macro. -- HTH, David McRitchie, Microsoft MVP -- Excel My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm "MJS" wrote in message ... Thanks all. But this doesn't explain why, currently, no formulas are showing up in those columns in the inserted row. Is there something else I'm missing (an option/parameter) that ensure all formulas are copied to new rows? M. "Teethless mama" wrote: In A6: =INDIRECT("A"&ROW()-1) "MJS" wrote: I'm not sure I'm posting this in the right place but here goes. I'm using Excel 2007. Excel is "supposed" to default to copying formulas into inserted rows by default (assuming previous rows have the same formula). I've also ensured the option to Extend data range formats and formulas is checked in [Windows Symbol]-Excel Options-Advanced. My formulas are not being copied to the inserted row and one formula in the row below where a relative reference to the row above is not adjusted correctly (i.e. a simple "=A5" for row 6 on insert remains "=A5" rather than adjusting to "=A6"). So two different problems but both occurring when I try to insert a row. Any idea why this isn't working properly? MJS |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Sounds round about enough to work for Excel 2007,
I don't like any aspect of 2007, except when I was using it to work with a years worth of data it would have been nice to have more than 256 columns then, but most of the new stuff is so annoying, restrictive, hard to use, and outright annoying. Trying to work without menus and my toolbar buttons is the pits. I at least know some keyboard shortcuts, and have to do practically everything with context menus now.. "MJS" wrote in message ... Thanks David. The macro in question worked. My next difficulty though is that I will have to deliver this spreadsheet to others (some from other companies). I created my own digital signature and attached it to the macro but I suspect I'd have to deliver the signature file itself. Yes? Where are these files stored? I've been searching help for indication of where they are stored and searching my hard drive for a file that I assume is called the name of the certificate I created. But no luck so far. Also, I had to save the file as a macro enabled version (xlsm) and had to enable digitally signed macros. So I assume that's the way to go. Yes? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formulas Affected by Insert Row | Excel Discussion (Misc queries) | |||
I want to prevent a formula from being affected by insert line | Excel Worksheet Functions | |||
Column headers affected by sort function | Excel Discussion (Misc queries) | |||
conditional format: affected by cell size | Excel Discussion (Misc queries) | |||
Drop list affected by previous choice | Excel Worksheet Functions |