ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Cut and Paste a column of a Table (https://www.excelbanter.com/excel-discussion-misc-queries/266350-cut-paste-column-table.html)

AT--o

Cut and Paste a column of a Table
 
Hi,

After cutting and pasting a column from a Table, the formulas that were referring to the mentioned column, stick to the now empty column.
For example I have a column named A, I cut it and paste it but the cells referring to A now refer to Column1 which is the default name excel assigns to the now empty column.

Thank you all.

Sepeteus Jedermann

Quote:

Originally Posted by AT--o (Post 960108)
Hi,

After cutting and pasting a column from a Table, the formulas that were referring to the mentioned column, stick to the now empty column.
For example I have a column named A, I cut it and paste it but the cells referring to A now refer to Column1 which is the default name excel assigns to the now empty column.

Thank you all.

Hello.


Have you used INDIRECT function at your formulas ?

If you have for exsample at cell C5 the following formula

=SUM(INDIRECT("A10:A100"))

it will always refer to range A10:A100, no matter which changes you
will make to the worksheet.



If you copy or cut the contents from that area to somewhwre else the
reference at cell C5 will remain pointing to a10:A100. This is the case even if
you remove the column A or remove some rows from your workbook.


I tested both direct and relative referrences to whole column A.
On both cases the formula at C5 changed its formula to point to new location correctly.

=SUM(A:A)

=SUM(A$:A$)


Don't use just column letters as names or other that kind of names which are
reserved for Excel's internal use. That might cause confuse or even erroneous
function of Excel.


***

AT--o

Quote:

Originally Posted by Sepeteus Jedermann (Post 960121)
Hello.


Have you used INDIRECT function at your formulas ?

If you have for exsample at cell C5 the following formula

=SUM(INDIRECT("A10:A100"))

it will always refer to range A10:A100, no matter which changes you
will make to the worksheet.



If you copy or cut the contents from that area to somewhwre else the
reference at cell C5 will remain pointing to a10:A100. This is the case even if
you remove the column A or remove some rows from your workbook.


I tested both direct and relative referrences to whole column A.
On both cases the formula at C5 changed its formula to point to new location correctly.

=SUM(A:A)

=SUM(A$:A$)


Don't use just column letters as names or other that kind of names which are
reserved for Excel's internal use. That might cause confuse or even erroneous
function of Excel.


***

Hi, the formula is a simple if else referring to column PS.A, I think the problem might be that Im deleting the "Table name and this row" and just leaving [PS.A] which works OK until of course cutting. Im gonna give it a try.


All times are GMT +1. The time now is 02:37 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com