auto fill and shortcut keys

lgerick

New Member
Joined
Oct 8, 2008
Messages
25
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Hi Excel guru's ... looking for some help on what is likely a simple issue but has me stumped!!

I am wanting to auto fill formulas in cells to the right of the original formula, but wanting the Column to stay the same and the Row to increase by 1.

for example .. there are 5 cells in question they are

A1 B1 C1 D1 E1
<TABLE style="WIDTH: 220pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=295 border=0 x:str><COLGROUP><COL style="WIDTH: 44pt; mso-width-source: userset; mso-width-alt: 2157" span=5 width=59><TBODY><TR style="HEIGHT: 13.5pt" height=18><TD style="BORDER-RIGHT: #eedfdf; BORDER-TOP: #eedfdf; BORDER-LEFT: #eedfdf; WIDTH: 44pt; BORDER-BOTTOM: #eedfdf; HEIGHT: 13.5pt; BACKGROUND-COLOR: transparent" vAlign=top align=left width=59 height=18><?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" /><v:rect id=_x0000_s37894 style="MARGIN-TOP: -12.75pt; Z-INDEX: 6; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" o:insetmode="auto" strokecolor="windowText [64]" fillcolor="white [9]" filled="f"></v:rect><TABLE cellSpacing=0 cellPadding=0><TBODY><TR><TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: #eedfdf; BORDER-LEFT: windowtext 1pt solid; WIDTH: 44pt; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 13.5pt; BACKGROUND-COLOR: #ff99cc" width=59 height=18 x:num>0</TD></TR></TBODY></TABLE></TD><TD style="BORDER-RIGHT: #eedfdf; BORDER-TOP: #eedfdf; BORDER-LEFT: #eedfdf; WIDTH: 44pt; BORDER-BOTTOM: #eedfdf; BACKGROUND-COLOR: transparent" vAlign=top align=left width=59><v:rect id=_x0000_s37895 style="MARGIN-TOP: -12.75pt; Z-INDEX: 7; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" o:insetmode="auto" strokecolor="windowText [64]" fillcolor="white [9]" filled="f"></v:rect><TABLE cellSpacing=0 cellPadding=0><TBODY><TR><TD class=xl25 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: #eedfdf; BORDER-LEFT: windowtext; WIDTH: 44pt; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 13.5pt; BACKGROUND-COLOR: #ff99cc" width=59 height=18 x:num>0</TD></TR></TBODY></TABLE></TD><TD style="BORDER-RIGHT: #eedfdf; BORDER-TOP: #eedfdf; BORDER-LEFT: #eedfdf; WIDTH: 44pt; BORDER-BOTTOM: #eedfdf; BACKGROUND-COLOR: transparent" vAlign=top align=left width=59><v:rect id=_x0000_s37896 style="MARGIN-TOP: -12.75pt; Z-INDEX: 8; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" o:insetmode="auto" strokecolor="windowText [64]" fillcolor="white [9]" filled="f"></v:rect><v:rect id=_x0000_s37954 style="MARGIN-TOP: -12.75pt; Z-INDEX: 30; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" o:insetmode="auto" strokecolor="windowText [64]" fillcolor="white [9]" filled="f"></v:rect><v:rect id=_x0000_s37956 style="MARGIN-TOP: -12.75pt; Z-INDEX: 31; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" o:insetmode="auto" strokecolor="windowText [64]" fillcolor="white [9]" filled="f"></v:rect><v:rect id=_x0000_s37957 style="MARGIN-TOP: -12.75pt; Z-INDEX: 32; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" o:insetmode="auto" strokecolor="windowText [64]" fillcolor="white [9]" filled="f"></v:rect><v:rect id=_x0000_s37958 style="MARGIN-TOP: -12.75pt; Z-INDEX: 33; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" o:insetmode="auto" strokecolor="windowText [64]" fillcolor="white [9]" filled="f"></v:rect><v:rect id=_x0000_s37961 style="MARGIN-TOP: -12.75pt; Z-INDEX: 36; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" o:insetmode="auto" strokecolor="windowText [64]" fillcolor="white [9]" filled="f"></v:rect><TABLE cellSpacing=0 cellPadding=0><TBODY><TR><TD class=xl25 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: #eedfdf; BORDER-LEFT: windowtext; WIDTH: 44pt; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 13.5pt; BACKGROUND-COLOR: #ff99cc" width=59 height=18 x:num>0</TD></TR></TBODY></TABLE></TD><TD style="BORDER-RIGHT: #eedfdf; BORDER-TOP: #eedfdf; BORDER-LEFT: #eedfdf; WIDTH: 44pt; BORDER-BOTTOM: #eedfdf; BACKGROUND-COLOR: transparent" vAlign=top align=left width=59><v:rect id=_x0000_s37897 style="MARGIN-TOP: -12.75pt; Z-INDEX: 9; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" o:insetmode="auto" strokecolor="windowText [64]" fillcolor="white [9]" filled="f"></v:rect><v:rect id=_x0000_s37959 style="MARGIN-TOP: -12.75pt; Z-INDEX: 34; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" o:insetmode="auto" strokecolor="windowText [64]" fillcolor="white [9]" filled="f"></v:rect><v:rect id=_x0000_s37962 style="MARGIN-TOP: -12.75pt; Z-INDEX: 37; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" o:insetmode="auto" strokecolor="windowText [64]" fillcolor="white [9]" filled="f"></v:rect><TABLE cellSpacing=0 cellPadding=0><TBODY><TR><TD class=xl25 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: #eedfdf; BORDER-LEFT: windowtext; WIDTH: 44pt; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 13.5pt; BACKGROUND-COLOR: #ff99cc" width=59 height=18 x:num>0</TD></TR></TBODY></TABLE></TD><TD style="BORDER-RIGHT: #eedfdf; BORDER-TOP: #eedfdf; BORDER-LEFT: #eedfdf; WIDTH: 44pt; BORDER-BOTTOM: #eedfdf; BACKGROUND-COLOR: transparent" vAlign=top align=left width=59><v:rect id=_x0000_s37898 style="MARGIN-TOP: -12.75pt; Z-INDEX: 10; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" o:insetmode="auto" strokecolor="windowText [64]" fillcolor="white [9]" filled="f"></v:rect><v:rect id=_x0000_s37960 style="MARGIN-TOP: -12.75pt; Z-INDEX: 35; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" o:insetmode="auto" strokecolor="windowText [64]" fillcolor="white [9]" filled="f"></v:rect><v:rect id=_x0000_s37963 style="MARGIN-TOP: -12.75pt; Z-INDEX: 38; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" o:insetmode="auto" strokecolor="windowText [64]" fillcolor="white [9]" filled="f"></v:rect><TABLE cellSpacing=0 cellPadding=0><TBODY><TR><TD class=xl26 style="BORDER-RIGHT: windowtext 1pt solid; BORDER-TOP: #eedfdf; BORDER-LEFT: windowtext; WIDTH: 44pt; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 13.5pt; BACKGROUND-COLOR: #ff99cc" width=59 height=18 x:num>0</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
The Formula in A1 is =SUM(L26) and I would like to use Ctrl + R to
auto fill to the right and have the formula in B1 become =SUM(L27)
and in C1 become =SUM(L28) and in D1 become =SUM(L29) and then in
E1 become =SUM(L30)

but instead it is changing the column and not the row. I have tried
changing it to =SUM($L26) to maintain the column but that does not work
it does keep the column as L but gives the same formula all the way across;

The Formula in A1 is =SUM($L26) and I would like to use Ctrl + R to
auto fill to the right and have the formula in B1 become =SUM($L26)
and in C1 become =SUM($L26) and in D1 become =SUM($L26) and then in
E1 become =SUM($L26)


Any one know how I can make this work so that the formulas change
only the row and not the column.

example again:
<TABLE style="WIDTH: 220pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=295 border=0 x:str><COLGROUP><COL style="WIDTH: 44pt; mso-width-source: userset; mso-width-alt: 2157" span=5 width=59><TBODY><TR style="HEIGHT: 13.5pt" height=18><TD style="BORDER-RIGHT: #eedfdf; BORDER-TOP: #eedfdf; BORDER-LEFT: #eedfdf; WIDTH: 44pt; BORDER-BOTTOM: #eedfdf; HEIGHT: 13.5pt; BACKGROUND-COLOR: transparent" vAlign=top align=left width=59 height=18><v:rect id=_x0000_s37894 style="MARGIN-TOP: -12.75pt; Z-INDEX: 6; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" o:insetmode="auto" strokecolor="windowText [64]" fillcolor="white [9]" filled="f"></v:rect><TABLE cellSpacing=0 cellPadding=0><TBODY><TR><TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: #eedfdf; BORDER-LEFT: windowtext 1pt solid; WIDTH: 44pt; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 13.5pt; BACKGROUND-COLOR: #ff99cc" width=59 height=18 x:num>0</TD></TR></TBODY></TABLE></TD><TD style="BORDER-RIGHT: #eedfdf; BORDER-TOP: #eedfdf; BORDER-LEFT: #eedfdf; WIDTH: 44pt; BORDER-BOTTOM: #eedfdf; BACKGROUND-COLOR: transparent" vAlign=top align=left width=59><v:rect id=_x0000_s37895 style="MARGIN-TOP: -12.75pt; Z-INDEX: 7; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" o:insetmode="auto" strokecolor="windowText [64]" fillcolor="white [9]" filled="f"></v:rect><TABLE cellSpacing=0 cellPadding=0><TBODY><TR><TD class=xl25 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: #eedfdf; BORDER-LEFT: windowtext; WIDTH: 44pt; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 13.5pt; BACKGROUND-COLOR: #ff99cc" width=59 height=18 x:num>0</TD></TR></TBODY></TABLE></TD><TD style="BORDER-RIGHT: #eedfdf; BORDER-TOP: #eedfdf; BORDER-LEFT: #eedfdf; WIDTH: 44pt; BORDER-BOTTOM: #eedfdf; BACKGROUND-COLOR: transparent" vAlign=top align=left width=59><v:rect id=_x0000_s37896 style="MARGIN-TOP: -12.75pt; Z-INDEX: 8; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" o:insetmode="auto" strokecolor="windowText [64]" fillcolor="white [9]" filled="f"></v:rect><v:rect id=_x0000_s37954 style="MARGIN-TOP: -12.75pt; Z-INDEX: 30; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" o:insetmode="auto" strokecolor="windowText [64]" fillcolor="white [9]" filled="f"></v:rect><v:rect id=_x0000_s37956 style="MARGIN-TOP: -12.75pt; Z-INDEX: 31; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" o:insetmode="auto" strokecolor="windowText [64]" fillcolor="white [9]" filled="f"></v:rect><v:rect id=_x0000_s37957 style="MARGIN-TOP: -12.75pt; Z-INDEX: 32; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" o:insetmode="auto" strokecolor="windowText [64]" fillcolor="white [9]" filled="f"></v:rect><v:rect id=_x0000_s37958 style="MARGIN-TOP: -12.75pt; Z-INDEX: 33; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" o:insetmode="auto" strokecolor="windowText [64]" fillcolor="white [9]" filled="f"></v:rect><v:rect id=_x0000_s37961 style="MARGIN-TOP: -12.75pt; Z-INDEX: 36; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" o:insetmode="auto" strokecolor="windowText [64]" fillcolor="white [9]" filled="f"></v:rect><TABLE cellSpacing=0 cellPadding=0><TBODY><TR><TD class=xl25 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: #eedfdf; BORDER-LEFT: windowtext; WIDTH: 44pt; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 13.5pt; BACKGROUND-COLOR: #ff99cc" width=59 height=18 x:num>0</TD></TR></TBODY></TABLE></TD><TD style="BORDER-RIGHT: #eedfdf; BORDER-TOP: #eedfdf; BORDER-LEFT: #eedfdf; WIDTH: 44pt; BORDER-BOTTOM: #eedfdf; BACKGROUND-COLOR: transparent" vAlign=top align=left width=59><v:rect id=_x0000_s37897 style="MARGIN-TOP: -12.75pt; Z-INDEX: 9; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" o:insetmode="auto" strokecolor="windowText [64]" fillcolor="white [9]" filled="f"></v:rect><v:rect id=_x0000_s37959 style="MARGIN-TOP: -12.75pt; Z-INDEX: 34; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" o:insetmode="auto" strokecolor="windowText [64]" fillcolor="white [9]" filled="f"></v:rect><v:rect id=_x0000_s37962 style="MARGIN-TOP: -12.75pt; Z-INDEX: 37; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" o:insetmode="auto" strokecolor="windowText [64]" fillcolor="white [9]" filled="f"></v:rect><TABLE cellSpacing=0 cellPadding=0><TBODY><TR><TD class=xl25 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: #eedfdf; BORDER-LEFT: windowtext; WIDTH: 44pt; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 13.5pt; BACKGROUND-COLOR: #ff99cc" width=59 height=18 x:num>0</TD></TR></TBODY></TABLE></TD><TD style="BORDER-RIGHT: #eedfdf; BORDER-TOP: #eedfdf; BORDER-LEFT: #eedfdf; WIDTH: 44pt; BORDER-BOTTOM: #eedfdf; BACKGROUND-COLOR: transparent" vAlign=top align=left width=59><v:rect id=_x0000_s37898 style="MARGIN-TOP: -12.75pt; Z-INDEX: 10; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" o:insetmode="auto" strokecolor="windowText [64]" fillcolor="white [9]" filled="f"></v:rect><v:rect id=_x0000_s37960 style="MARGIN-TOP: -12.75pt; Z-INDEX: 35; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" o:insetmode="auto" strokecolor="windowText [64]" fillcolor="white [9]" filled="f"></v:rect><v:rect id=_x0000_s37963 style="MARGIN-TOP: -12.75pt; Z-INDEX: 38; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" o:insetmode="auto" strokecolor="windowText [64]" fillcolor="white [9]" filled="f"></v:rect><TABLE cellSpacing=0 cellPadding=0><TBODY><TR><TD class=xl26 style="BORDER-RIGHT: windowtext 1pt solid; BORDER-TOP: #eedfdf; BORDER-LEFT: windowtext; WIDTH: 44pt; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 13.5pt; BACKGROUND-COLOR: #ff99cc" width=59 height=18 x:num>0</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
The Formula in A1 is =SUM(L26) and I would like to use Ctrl + R to
auto fill to the right and have the formula in B1 become =SUM(L27)
and in C1 become =SUM(L28) and in D1 become =SUM(L29) and then in
E1 become =SUM(L30)


Thanking all in advance for you help and consideration

laura :)
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
38,813
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2010
Platform
  1. Windows
  2. MacOS
If that is actually your formula, then you don't need SUM and you can achieve this by entering:
|L26
in the first cell, filling across, then replacing (via Ctrl+H) the '|' character with '='
If that was just an example formula, then there is no built in fill method - you would need to adjust your formula to use the column number as an offset or index number.
 

lgerick

New Member
Joined
Oct 8, 2008
Messages
25
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
If that is actually your formula, then you don't need SUM and you can achieve this by entering:
|L26
in the first cell, filling across, then replacing (via Ctrl+H) the '|' character with '='
If that was just an example formula, then there is no built in fill method - you would need to adjust your formula to use the column number as an offset or index number.



Thanks for your reply .. I tried your suggestion.. it only returned the same for each cell.. Perhaps I am not clear in what I am wanting to accomplish...I will try again ...


laura
 

lgerick

New Member
Joined
Oct 8, 2008
Messages
25
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Thanks for your reply .. I tried your suggestion.. it only returned the same for each cell.. Perhaps I am not clear in what I am wanting to accomplish...I will try again ...


laura


...



I am wanting to auto fill formulas in cells to the right of the original formula, but wanting the Column to stay the same and the Row to increase by 1.

for example .. there are 5 cells (columns) in question they are

A1 B1 C1 D1 E1
<TABLE style="WIDTH: 220pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=295 border=0 x:str><COLGROUP><COL style="WIDTH: 44pt; mso-width-source: userset; mso-width-alt: 2157" span=5 width=59><TBODY><TR style="HEIGHT: 13.5pt" height=18><TD style="BORDER-LEFT-COLOR: #eedfdf; BORDER-BOTTOM-COLOR: #eedfdf; WIDTH: 44pt; BORDER-TOP-COLOR: #eedfdf; HEIGHT: 13.5pt; BACKGROUND-COLOR: transparent; BORDER-RIGHT-COLOR: #eedfdf" vAlign=top align=left width=59 height=18><?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" /><v:rect id=_x0000_s37894 style="MARGIN-TOP: -12.75pt; Z-INDEX: 6; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" filled="f" fillcolor="white [9]" strokecolor="windowText [64]" o:insetmode="auto"></v:rect><TABLE cellSpacing=0 cellPadding=0><TBODY><TR><TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-LEFT: windowtext 1pt solid; WIDTH: 44pt; BORDER-TOP-COLOR: #eedfdf; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 13.5pt; BACKGROUND-COLOR: #ff99cc" width=59 height=18 x:num>0</TD></TR></TBODY></TABLE></TD><TD style="BORDER-LEFT-COLOR: #eedfdf; BORDER-BOTTOM-COLOR: #eedfdf; WIDTH: 44pt; BORDER-TOP-COLOR: #eedfdf; BACKGROUND-COLOR: transparent; BORDER-RIGHT-COLOR: #eedfdf" vAlign=top align=left width=59><v:rect id=_x0000_s37895 style="MARGIN-TOP: -12.75pt; Z-INDEX: 7; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" filled="f" fillcolor="white [9]" strokecolor="windowText [64]" o:insetmode="auto"></v:rect><TABLE cellSpacing=0 cellPadding=0><TBODY><TR><TD class=xl25 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-LEFT-COLOR: windowtext; WIDTH: 44pt; BORDER-TOP-COLOR: #eedfdf; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 13.5pt; BACKGROUND-COLOR: #ff99cc" width=59 height=18 x:num> 0</TD></TR></TBODY></TABLE></TD><TD style="BORDER-LEFT-COLOR: #eedfdf; BORDER-BOTTOM-COLOR: #eedfdf; WIDTH: 44pt; BORDER-TOP-COLOR: #eedfdf; BACKGROUND-COLOR: transparent; BORDER-RIGHT-COLOR: #eedfdf" vAlign=top align=left width=59><v:rect id=_x0000_s37896 style="MARGIN-TOP: -12.75pt; Z-INDEX: 8; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" filled="f" fillcolor="white [9]" strokecolor="windowText [64]" o:insetmode="auto"></v:rect><v:rect id=_x0000_s37954 style="MARGIN-TOP: -12.75pt; Z-INDEX: 30; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" filled="f" fillcolor="white [9]" strokecolor="windowText [64]" o:insetmode="auto"></v:rect><v:rect id=_x0000_s37956 style="MARGIN-TOP: -12.75pt; Z-INDEX: 31; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" filled="f" fillcolor="white [9]" strokecolor="windowText [64]" o:insetmode="auto"></v:rect><v:rect id=_x0000_s37957 style="MARGIN-TOP: -12.75pt; Z-INDEX: 32; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" filled="f" fillcolor="white [9]" strokecolor="windowText [64]" o:insetmode="auto"></v:rect><v:rect id=_x0000_s37958 style="MARGIN-TOP: -12.75pt; Z-INDEX: 33; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" filled="f" fillcolor="white [9]" strokecolor="windowText [64]" o:insetmode="auto"></v:rect><v:rect id=_x0000_s37961 style="MARGIN-TOP: -12.75pt; Z-INDEX: 36; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" filled="f" fillcolor="white [9]" strokecolor="windowText [64]" o:insetmode="auto"></v:rect><TABLE cellSpacing=0 cellPadding=0><TBODY><TR><TD class=xl25 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-LEFT-COLOR: windowtext; WIDTH: 44pt; BORDER-TOP-COLOR: #eedfdf; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 13.5pt; BACKGROUND-COLOR: #ff99cc" width=59 height=18 x:num>0</TD></TR></TBODY></TABLE></TD><TD style="BORDER-LEFT-COLOR: #eedfdf; BORDER-BOTTOM-COLOR: #eedfdf; WIDTH: 44pt; BORDER-TOP-COLOR: #eedfdf; BACKGROUND-COLOR: transparent; BORDER-RIGHT-COLOR: #eedfdf" vAlign=top align=left width=59><v:rect id=_x0000_s37897 style="MARGIN-TOP: -12.75pt; Z-INDEX: 9; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" filled="f" fillcolor="white [9]" strokecolor="windowText [64]" o:insetmode="auto"></v:rect><v:rect id=_x0000_s37959 style="MARGIN-TOP: -12.75pt; Z-INDEX: 34; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" filled="f" fillcolor="white [9]" strokecolor="windowText [64]" o:insetmode="auto"></v:rect><v:rect id=_x0000_s37962 style="MARGIN-TOP: -12.75pt; Z-INDEX: 37; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" filled="f" fillcolor="white [9]" strokecolor="windowText [64]" o:insetmode="auto"></v:rect><TABLE cellSpacing=0 cellPadding=0><TBODY><TR><TD class=xl25 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-LEFT-COLOR: windowtext; WIDTH: 44pt; BORDER-TOP-COLOR: #eedfdf; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 13.5pt; BACKGROUND-COLOR: #ff99cc" width=59 height=18 x:num>0</TD></TR></TBODY></TABLE></TD><TD style="BORDER-LEFT-COLOR: #eedfdf; BORDER-BOTTOM-COLOR: #eedfdf; WIDTH: 44pt; BORDER-TOP-COLOR: #eedfdf; BACKGROUND-COLOR: transparent; BORDER-RIGHT-COLOR: #eedfdf" vAlign=top align=left width=59><v:rect id=_x0000_s37898 style="MARGIN-TOP: -12.75pt; Z-INDEX: 10; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" filled="f" fillcolor="white [9]" strokecolor="windowText [64]" o:insetmode="auto"></v:rect><v:rect id=_x0000_s37960 style="MARGIN-TOP: -12.75pt; Z-INDEX: 35; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" filled="f" fillcolor="white [9]" strokecolor="windowText [64]" o:insetmode="auto"></v:rect><v:rect id=_x0000_s37963 style="MARGIN-TOP: -12.75pt; Z-INDEX: 38; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" filled="f" fillcolor="white [9]" strokecolor="windowText [64]" o:insetmode="auto"></v:rect><TABLE cellSpacing=0 cellPadding=0><TBODY><TR><TD class=xl26 style="BORDER-RIGHT: windowtext 1pt solid; BORDER-LEFT-COLOR: windowtext; WIDTH: 44pt; BORDER-TOP-COLOR: #eedfdf; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 13.5pt; BACKGROUND-COLOR: #ff99cc" width=59 height=18 x:num>0</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>

<v:shapetype id=_x0000_t75 filled="f" stroked="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"><v:stroke joinstyle="miter"></v:stroke><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"></v:f><v:f eqn="sum @0 1 0"></v:f><v:f eqn="sum 0 0 @1"></v:f><v:f eqn="prod @2 1 2"></v:f><v:f eqn="prod @3 21600 pixelWidth"></v:f><v:f eqn="prod @3 21600 pixelHeight"></v:f><v:f eqn="sum @0 0 1"></v:f><v:f eqn="prod @6 1 2"></v:f><v:f eqn="prod @7 21600 pixelWidth"></v:f><v:f eqn="sum @8 21600 0"></v:f><v:f eqn="prod @7 21600 pixelHeight"></v:f><v:f eqn="sum @10 21600 0"></v:f></v:formulas><v:path o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"></v:path><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:lock aspectratio="t" v:ext="edit"></o:lock></v:shapetype><v:shapetype id=_x0000_t75 filled="f" stroked="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"><v:shapetype id=_x0000_t75 filled="f" stroked="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"><v:stroke joinstyle="miter"></v:stroke><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"></v:f><v:f eqn="sum @0 1 0"></v:f><v:f eqn="sum 0 0 @1"></v:f><v:f eqn="prod @2 1 2"></v:f><v:f eqn="prod @3 21600 pixelWidth"></v:f><v:f eqn="prod @3 21600 pixelHeight"></v:f><v:f eqn="sum @0 0 1"></v:f><v:f eqn="prod @6 1 2"></v:f><v:f eqn="prod @7 21600 pixelWidth"></v:f><v:f eqn="sum @8 21600 0"></v:f><v:f eqn="prod @7 21600 pixelHeight"></v:f><v:f eqn="sum @10 21600 0"></v:f></v:formulas><v:path o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"></v:path><o:lock aspectratio="t" v:ext="edit"></o:lock></v:shapetype></v:shapetype>and 5 cells (rows) L26, L27, L28, L29, L30<TABLE style="WIDTH: 30pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=40 border=0 x:str><COLGROUP><COL style="WIDTH: 30pt; mso-width-source: userset; mso-width-alt: 1462" width=40><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 30pt; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.75pt; BACKGROUND-COLOR: #ffcc99" width=40 height=17 x:num>12</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.75pt; BACKGROUND-COLOR: #ffcc99" height=17 x:num>16</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.75pt; BACKGROUND-COLOR: #ffcc99" height=17 x:num>3</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.75pt; BACKGROUND-COLOR: #ffcc99" height=17 x:num>19</TD></TR><TR style="HEIGHT: 12.75pt" height=17><TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 12.75pt; BACKGROUND-COLOR: #ffcc99" height=17 x:num>72</TD></TR></TBODY></TABLE>

The Formula in A1 is =SUM(L26) and I would like to use Ctrl + R to
auto fill to the right and have the formula in B1 become =SUM(L27)
and in C1 become =SUM(L28) and in D1 become =SUM(L29) and then in
E1 become =SUM(L30)

<TABLE style="WIDTH: 220pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=295 border=0 x:str><COLGROUP><COL style="WIDTH: 44pt; mso-width-source: userset; mso-width-alt: 2157" span=5 width=59><TBODY><TR style="HEIGHT: 13.5pt" height=18><TD style="BORDER-LEFT-COLOR: #eedfdf; BORDER-BOTTOM-COLOR: #eedfdf; WIDTH: 44pt; BORDER-TOP-COLOR: #eedfdf; HEIGHT: 13.5pt; BACKGROUND-COLOR: transparent; BORDER-RIGHT-COLOR: #eedfdf" vAlign=top align=left width=59 height=18><v:rect id=_x0000_s37894 style="MARGIN-TOP: -12.75pt; Z-INDEX: 6; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" filled="f" fillcolor="white [9]" strokecolor="windowText [64]" o:insetmode="auto"></v:rect><TABLE cellSpacing=0 cellPadding=0><TBODY><TR><TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-LEFT: windowtext 1pt solid; WIDTH: 44pt; BORDER-TOP-COLOR: #eedfdf; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 13.5pt; BACKGROUND-COLOR: #ff99cc" width=59 height=18 x:num> 12</TD></TR></TBODY></TABLE></TD><TD style="BORDER-LEFT-COLOR: #eedfdf; BORDER-BOTTOM-COLOR: #eedfdf; WIDTH: 44pt; BORDER-TOP-COLOR: #eedfdf; BACKGROUND-COLOR: transparent; BORDER-RIGHT-COLOR: #eedfdf" vAlign=top align=left width=59><v:rect id=_x0000_s37895 style="MARGIN-TOP: -12.75pt; Z-INDEX: 7; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" filled="f" fillcolor="white [9]" strokecolor="windowText [64]" o:insetmode="auto"></v:rect><TABLE cellSpacing=0 cellPadding=0><TBODY><TR><TD class=xl25 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-LEFT-COLOR: windowtext; WIDTH: 44pt; BORDER-TOP-COLOR: #eedfdf; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 13.5pt; BACKGROUND-COLOR: #ff99cc" width=59 height=18 x:num> 16 </TD></TR></TBODY></TABLE></TD><TD style="BORDER-LEFT-COLOR: #eedfdf; BORDER-BOTTOM-COLOR: #eedfdf; WIDTH: 44pt; BORDER-TOP-COLOR: #eedfdf; BACKGROUND-COLOR: transparent; BORDER-RIGHT-COLOR: #eedfdf" vAlign=top align=left width=59><v:rect id=_x0000_s37896 style="MARGIN-TOP: -12.75pt; Z-INDEX: 8; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" filled="f" fillcolor="white [9]" strokecolor="windowText [64]" o:insetmode="auto"></v:rect><v:rect id=_x0000_s37954 style="MARGIN-TOP: -12.75pt; Z-INDEX: 30; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" filled="f" fillcolor="white [9]" strokecolor="windowText [64]" o:insetmode="auto"></v:rect><v:rect id=_x0000_s37956 style="MARGIN-TOP: -12.75pt; Z-INDEX: 31; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" filled="f" fillcolor="white [9]" strokecolor="windowText [64]" o:insetmode="auto"></v:rect><v:rect id=_x0000_s37957 style="MARGIN-TOP: -12.75pt; Z-INDEX: 32; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" filled="f" fillcolor="white [9]" strokecolor="windowText [64]" o:insetmode="auto"></v:rect><v:rect id=_x0000_s37958 style="MARGIN-TOP: -12.75pt; Z-INDEX: 33; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" filled="f" fillcolor="white [9]" strokecolor="windowText [64]" o:insetmode="auto"></v:rect><v:rect id=_x0000_s37961 style="MARGIN-TOP: -12.75pt; Z-INDEX: 36; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" filled="f" fillcolor="white [9]" strokecolor="windowText [64]" o:insetmode="auto"></v:rect><TABLE cellSpacing=0 cellPadding=0><TBODY><TR><TD class=xl25 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-LEFT-COLOR: windowtext; WIDTH: 44pt; BORDER-TOP-COLOR: #eedfdf; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 13.5pt; BACKGROUND-COLOR: #ff99cc" width=59 height=18 x:num> 3</TD></TR></TBODY></TABLE></TD><TD style="BORDER-LEFT-COLOR: #eedfdf; BORDER-BOTTOM-COLOR: #eedfdf; WIDTH: 44pt; BORDER-TOP-COLOR: #eedfdf; BACKGROUND-COLOR: transparent; BORDER-RIGHT-COLOR: #eedfdf" vAlign=top align=left width=59><v:rect id=_x0000_s37897 style="MARGIN-TOP: -12.75pt; Z-INDEX: 9; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" filled="f" fillcolor="white [9]" strokecolor="windowText [64]" o:insetmode="auto"></v:rect><v:rect id=_x0000_s37959 style="MARGIN-TOP: -12.75pt; Z-INDEX: 34; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" filled="f" fillcolor="white [9]" strokecolor="windowText [64]" o:insetmode="auto"></v:rect><v:rect id=_x0000_s37962 style="MARGIN-TOP: -12.75pt; Z-INDEX: 37; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" filled="f" fillcolor="white [9]" strokecolor="windowText [64]" o:insetmode="auto"></v:rect><TABLE cellSpacing=0 cellPadding=0><TBODY><TR><TD class=xl25 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-LEFT-COLOR: windowtext; WIDTH: 44pt; BORDER-TOP-COLOR: #eedfdf; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 13.5pt; BACKGROUND-COLOR: #ff99cc" width=59 height=18 x:num> 19</TD></TR></TBODY></TABLE></TD><TD style="BORDER-LEFT-COLOR: #eedfdf; BORDER-BOTTOM-COLOR: #eedfdf; WIDTH: 44pt; BORDER-TOP-COLOR: #eedfdf; BACKGROUND-COLOR: transparent; BORDER-RIGHT-COLOR: #eedfdf" vAlign=top align=left width=59><v:rect id=_x0000_s37898 style="MARGIN-TOP: -12.75pt; Z-INDEX: 10; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" filled="f" fillcolor="white [9]" strokecolor="windowText [64]" o:insetmode="auto"></v:rect><v:rect id=_x0000_s37960 style="MARGIN-TOP: -12.75pt; Z-INDEX: 35; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" filled="f" fillcolor="white [9]" strokecolor="windowText [64]" o:insetmode="auto"></v:rect><v:rect id=_x0000_s37963 style="MARGIN-TOP: -12.75pt; Z-INDEX: 38; MARGIN-LEFT: 0px; WIDTH: 9pt; POSITION: absolute; HEIGHT: 13.5pt" filled="f" fillcolor="white [9]" strokecolor="windowText [64]" o:insetmode="auto"></v:rect><TABLE cellSpacing=0 cellPadding=0><TBODY><TR><TD class=xl26 style="BORDER-RIGHT: windowtext 1pt solid; BORDER-LEFT-COLOR: windowtext; WIDTH: 44pt; BORDER-TOP-COLOR: #eedfdf; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 13.5pt; BACKGROUND-COLOR: #ff99cc" width=59 height=18 x:num> 72</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>

but instead it is changing the column and not the row. I have tried
changing it to =SUM($L26) to maintain the column but that does not work
it does keep the column as L but gives the same formula all the way across;



laura
 

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
38,813
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2010
Platform
  1. Windows
  2. MacOS
I should have specified that when I said Fill across, I meant using the fill handle in the bottom right corner of the first cell. You should then get:
|L26 ... |L27...|L28
and then when you do the replace, you will get:
=L26...=L27...=L28

As I said, if your formula is more complicated, you will need to change the actual formula - you can't simply fill across.
 

lgerick

New Member
Joined
Oct 8, 2008
Messages
25
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
rorya ... thank you thank you and thank you .. it worked like a charm...

have a good day and a GREAT weekend :)

laura
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,523
Messages
5,837,848
Members
430,519
Latest member
abtg1

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top