Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 11829

Excel 2013 - Copy and Paste Issue

$
0
0

if I select andcopy a cell that contains a formula that references cells all on the same work sheet andpaste that cell in the same cell in the same work sheet in another work book, the pasted cell looks exactly like the copied cell.

For example, I copied cell V41 from the ‘Rating Summary’ work sheet in the ‘Analysis_Distr#3_QA#3.xls’ file and pasted it in cell V41 in the ‘Rating Summary’ work sheet in the ‘Analysis_Distr#3_QA#4.xls’ work book and obtained the following results.

Copied Cell   "   =IF(AND(FLOOR(U41,1)<=T41,U41>0),FLOOR(U41,1),"N/A")

Pasted Cell   "   =IF(AND(FLOOR(U41,1)<=T41,U41>0),FLOOR(U41,1),"N/A")

The pasted cell is exactly the same as the copied cell.

But, if I select andcopy a cell that contains a formula that references cells on other work sheets in the same file andpaste that cell in the same cell in the same work sheet in another work book, the pasted cell looks different than the copied becausethe formula in the pasted cell references cells on other worksheets that are now preceded by links to the source work book.

For example, I copied cell X46 from the ‘Rating Summary’ work sheet in the ‘Analysis_Distr#3_QA#3.xls’ file and pasted it in cell X46 in the ‘Rating Summary’ work sheet in the ‘Analysis_Distr#3_QA#4.xls’ work book and obtained the following results.

Copied Cell   "   =IF(AND(LEFT(J30,1)="D",'Safe Load Capacities'!H27="N/R"),"District Original File OPR Ratings",IF(AND(LEFT(J30,1)="D",'Safe Load Capacities'!H27=1),"District Original File OPR Ratings",IF(AND(LEFT(J30,1)="D",OR('Safe Load Capacities'!H27=0.9,'Safe Load Capacities'!H27=0.8),'Safe Load Capacities'!H28="No"),"District Original File OPR Ratings",IF(AND(LEFT(J30,1)="D",OR('Safe Load Capacities'!H27=0.9,'Safe Load Capacities'!H27=0.8),'Safe Load Capacities'!H28="Yes"),"District Original File SLC Ratings",""))))

Pasted Cell   "   =IF(AND(LEFT(J30,1)="D",'[Analysis_Distr#3_QA#3.xls]Safe Load Capacities'!H27="N/R"),"District Original File OPR Ratings",IF(AND(LEFT(J30,1)="D",'[Analysis_Distr#3_QA#3.xls]Safe Load Capacities'!H27=1),"District Original File OPR Ratings",IF(AND(LEFT(J30,1)="D",OR('[Analysis_Distr#3_QA#3.xls]Safe Load Capacities'!H27=0.9,'[Analysis_Distr#3_QA#3.xls]Safe Load Capacities'!H27=0.8),'[Analysis_Distr#3_QA#3.xls]Safe Load Capacities'!H28="No"),"District Original File OPR Ratings",IF(AND(LEFT(J30,1)="D",OR('[Analysis_Distr#3_QA#3.xls]Safe Load Capacities'!H27=0.9,'[Analysis_Distr#3_QA#3.xls]Safe Load Capacities'!H27=0.8),'[Analysis_Distr#3_QA#3.xls]Safe Load Capacities'!H28="Yes"),"District Original File SLC Ratings",""))))

The pasted cell is different from the copied cell because the formula in the pasted cell references cells on other worksheets that are now preceded by links to the source work book.

However, if I select acell that contains a formula that references cells on another work sheet butcopy the text for that cell from the formula bar andpaste the text in the formula bar for the same cell in the same work sheet in another file, the pasted cell looks exactly the same as the copied cell.

For example, I copied the text in the formula bar for cell X46 from the ‘Rating Summary’ work sheet in the ‘Analysis_Distr#3_QA#3.xls’ file and pasted it in the formula bar for cell X46 in the ‘Rating Summary’ work sheet in the ‘Analysis_Distr#3_QA#4.xls’ file and obtained the following results.

Copied Cell   "   =IF(AND(LEFT(J30,1)="D",'Safe Load Capacities'!H27="N/R"),"District Original File OPR Ratings",IF(AND(LEFT(J30,1)="D",'Safe Load Capacities'!H27=1),"District Original File OPR Ratings",IF(AND(LEFT(J30,1)="D",OR('Safe Load Capacities'!H27=0.9,'Safe Load Capacities'!H27=0.8),'Safe Load Capacities'!H28="No"),"District Original File OPR Ratings",IF(AND(LEFT(J30,1)="D",OR('Safe Load Capacities'!H27=0.9,'Safe Load Capacities'!H27=0.8),'Safe Load Capacities'!H28="Yes"),"District Original File SLC Ratings",""))))

Pasted Cell   "   =IF(AND(LEFT(J30,1)="D",'Safe Load Capacities'!H27="N/R"),"District Original File OPR Ratings",IF(AND(LEFT(J30,1)="D",'Safe Load Capacities'!H27=1),"District Original File OPR Ratings",IF(AND(LEFT(J30,1)="D",OR('Safe Load Capacities'!H27=0.9,'Safe Load Capacities'!H27=0.8),'Safe Load Capacities'!H28="No"),"District Original File OPR Ratings",IF(AND(LEFT(J30,1)="D",OR('Safe Load Capacities'!H27=0.9,'Safe Load Capacities'!H27=0.8),'Safe Load Capacities'!H28="Yes"),"District Original File SLC Ratings",""))))

The pasted cell is exactly the same as the copied cell.

I want to select, copy and paste a group of cells as described above in ‘red’ but obtain the results as described above in ‘green’; in other words, I don’t want the links to the source work book preceding the references to cells on other work sheets.

At this point, the only solution I know is to apply the procedure described above in ‘green’ one cell at a time.  As you can imagine, this would be a tedious process if there are sixteen cells to copy involving seventy-two work books. Thanks


Viewing all articles
Browse latest Browse all 11829

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>