<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dw="https://www.dreamwidth.org">
  <id>tag:dreamwidth.org,2009-05-06:301081</id>
  <title>Darkoshi</title>
  <subtitle>Darkoshi</subtitle>
  <author>
    <name>Darkoshi</name>
  </author>
  <link rel="alternate" type="text/html" href="https://darkoshi.dreamwidth.org/"/>
  <link rel="self" type="text/xml" href="https://darkoshi.dreamwidth.org/data/atom"/>
  <updated>2020-04-19T08:03:11Z</updated>
  <dw:journal username="darkoshi" type="personal"/>
  <entry>
    <id>tag:dreamwidth.org,2009-05-06:301081:741041</id>
    <link rel="alternate" type="text/html" href="https://darkoshi.dreamwidth.org/741041.html"/>
    <link rel="self" type="text/xml" href="https://darkoshi.dreamwidth.org/data/atom/?itemid=741041"/>
    <title>Spreadsheet formula copy/paste/edit</title>
    <published>2020-04-12T19:34:20Z</published>
    <updated>2020-04-19T08:03:11Z</updated>
    <category term="spreadsheets"/>
    <category term="software"/>
    <category term="notes to self"/>
    <dw:security>public</dw:security>
    <dw:reply-count>0</dw:reply-count>
    <content type="html">This is based on LibreOffice Calc but probably works the same in Excel.&lt;br /&gt;&lt;br /&gt;Say I have a column where several cells have formulas in them like:&lt;br /&gt;=AVERAGE(C10:C18)&lt;br /&gt;&lt;br /&gt;In the next column, I want to have the same formulas but using MIN instead of AVERAGE.&lt;br /&gt;&lt;br /&gt;When I copy and paste the cells from the first column to the second, it changes the formulas like:&lt;br /&gt;=AVERAGE(D10:D18)&lt;br /&gt;&lt;br /&gt;To update the formulas in the 2nd column, select those cells and select from the menu, Edit - Find &amp; Replace.&lt;br /&gt;On the Find&amp;Replace window, make sure these options are selected:&lt;br /&gt;Current Selection Only&lt;br /&gt;Search in: Formulas&lt;br /&gt;&lt;br /&gt;Enter "AVERAGE" in the "Find:" field, and "MIN" in the "Replace:" field.&lt;br /&gt;Click the Replace All button.&lt;br /&gt;&lt;br /&gt;Then repeat that process to change all "D" to "C".&lt;br /&gt;&lt;br /&gt;Alternately, this method should also work for keeping the original cell references when copying the formulas:&lt;br /&gt;&lt;a href="https://www.groovypost.com/news/microsoft-releases-windows-10-20h1-preview-build-18970/"&gt;https://www.groovypost.com/news/microsoft-releases-windows-10-20h1-preview-build-18970/&lt;/a&gt;&lt;br /&gt;First use Find&amp;Replace to change all equal signs to a hashtag or other unique character.&lt;br /&gt;Then copy/paste the cells to another column, and use Find&amp;Replace to change the hashtag back to the equal sign again.&lt;br /&gt;(This method could also be used for copying the formulas out of the spreadsheet into a text file, for easier editing.)&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=darkoshi&amp;ditemid=741041" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
</feed>
