{"id":4844,"date":"2019-11-11T15:36:11","date_gmt":"2019-11-11T15:36:11","guid":{"rendered":"http:\/\/officetuts.net\/excel\/?p=4844"},"modified":"2024-03-26T15:33:08","modified_gmt":"2024-03-26T15:33:08","slug":"formula-to-copy-cell-value-to-another-cell","status":"publish","type":"post","link":"https:\/\/officetuts.net\/excel\/examples\/formula-to-copy-cell-value-to-another-cell\/","title":{"rendered":"Formula to Copy Cell Value to Another Cell in Excel"},"content":{"rendered":"\n
Formula-to-Copy-Cell-Value-to-Another-Cell-in-Excel<\/a>Download File<\/a><\/div>\n\n\n\n

To copy one cell to another is very easy, you just have to\nmake a reference to the cell you want to copy.<\/p>\n\n\n\n

Copy cell value to another cell<\/h2>\n\n\n\n

For example, to copy cell A2<\/strong> to C2<\/strong>, enter =A2<\/strong> in C2<\/strong>.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Copy cell value from another sheet<\/h2>\n\n\n\n

You can also do it with the value that is present on another\nsheet.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Copy and paste the specific value to different cell<\/h2>\n\n\n\n

This VBA function will work in the following way.<\/p>\n\n\n\n

The following function will check whether a cell contains text, numerical value, error, or formula.<\/p>\n\n\n\n

Function CopyCell(ByVal target As Range, cellType As String)\n    If target.HasFormula And cellType = \"formula\" And Not IsError(target.Value) Then\n        CopyCell = target\n    ElseIf Application.IsText(target.Value) And cellType = \"string\" Then\n        CopyCell = target\n    ElseIf IsNumeric(target.Value) And cellType = \"number\" Then\n        CopyCell = target\n    ElseIf IsError(target.Value) And cellType = \"error\" Then\n        CopyCell = target\n    Else\n        CopyCell = \"\"\n    End If\nEnd Function<\/code><\/pre>\n\n\n\n

The function checks a few conditions and if a condition is\nmet it copies the cell, otherwise it places a blank cell.<\/p>\n\n\n\n

The function has a few modifications. For example, under formulas, I added a condition, that it won’t display errors (which are also formulas).<\/p>\n\n\n\n

You might also consider not copying the value in cell<\/a> E4<\/strong> because it’s formatted as text.<\/p>\n\n\n\n

Enter the following formulas into cells:<\/p>\n\n\n\n

C2<\/strong>: =CopyCell(A2,”formula”)<\/p>\n\n\n\n

D2<\/strong>: =CopyCell(A2,”string”)<\/p>\n\n\n\n

E2<\/strong>: =CopyCell(A2,”number”)<\/p>\n\n\n\n

F2<\/strong>: =CopyCell(A2,”error”)<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Press Ctrl + ~<\/strong> to\ndisplay formulas.<\/p>\n\n\n\n

\"\"<\/figure>\n","protected":false},"excerpt":{"rendered":"

To copy one cell to another is very easy, you just have to make a reference to the cell you want to copy….<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[170,190],"yoast_head":"\nFormula to Copy Cell Value to Another Cell in Excel<\/title>\n<meta name=\"description\" content=\"Learn how to copy cell values to another cell or sheet in Excel. Follow our step-by-step guide with examples and download a free Excel formula file.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/officetuts.net\/excel\/examples\/formula-to-copy-cell-value-to-another-cell\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Formula to Copy Cell Value to Another Cell in Excel\" \/>\n<meta property=\"og:description\" content=\"Learn how to copy cell values to another cell or sheet in Excel. Follow our step-by-step guide with examples and download a free Excel formula file.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/officetuts.net\/excel\/examples\/formula-to-copy-cell-value-to-another-cell\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-11-11T15:36:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-26T15:33:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/11\/copy-cell-value-example.png\" \/>\n<meta name=\"author\" content=\"Tomasz Decker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tomasz Decker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/formula-to-copy-cell-value-to-another-cell\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/formula-to-copy-cell-value-to-another-cell\/\"},\"author\":{\"name\":\"Tomasz Decker\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"headline\":\"Formula to Copy Cell Value to Another Cell in Excel\",\"datePublished\":\"2019-11-11T15:36:11+00:00\",\"dateModified\":\"2024-03-26T15:33:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/formula-to-copy-cell-value-to-another-cell\/\"},\"wordCount\":197,\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/formula-to-copy-cell-value-to-another-cell\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/11\/copy-cell-value-example.png\",\"keywords\":[\"file\",\"pinterest\"],\"articleSection\":[\"examples\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/formula-to-copy-cell-value-to-another-cell\/\",\"url\":\"https:\/\/officetuts.net\/excel\/examples\/formula-to-copy-cell-value-to-another-cell\/\",\"name\":\"Formula to Copy Cell Value to Another Cell in Excel\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/formula-to-copy-cell-value-to-another-cell\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/formula-to-copy-cell-value-to-another-cell\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/11\/copy-cell-value-example.png\",\"datePublished\":\"2019-11-11T15:36:11+00:00\",\"dateModified\":\"2024-03-26T15:33:08+00:00\",\"description\":\"Learn how to copy cell values to another cell or sheet in Excel. Follow our step-by-step guide with examples and download a free Excel formula file.\",\"breadcrumb\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/formula-to-copy-cell-value-to-another-cell\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/officetuts.net\/excel\/examples\/formula-to-copy-cell-value-to-another-cell\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/formula-to-copy-cell-value-to-another-cell\/#primaryimage\",\"url\":\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/11\/copy-cell-value-example.png\",\"contentUrl\":\"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/11\/copy-cell-value-example.png\",\"width\":346,\"height\":147},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/formula-to-copy-cell-value-to-another-cell\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/officetuts.net\/excel\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Formula to Copy Cell Value to Another Cell in Excel\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/officetuts.net\/excel\/#website\",\"url\":\"https:\/\/officetuts.net\/excel\/\",\"name\":\"\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/officetuts.net\/excel\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\",\"name\":\"Tomasz Decker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"caption\":\"Tomasz Decker\"},\"logo\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\"},\"description\":\"Spreadsheet and Python enthusiast.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Formula to Copy Cell Value to Another Cell in Excel","description":"Learn how to copy cell values to another cell or sheet in Excel. Follow our step-by-step guide with examples and download a free Excel formula file.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/officetuts.net\/excel\/examples\/formula-to-copy-cell-value-to-another-cell\/","og_locale":"en_US","og_type":"article","og_title":"Formula to Copy Cell Value to Another Cell in Excel","og_description":"Learn how to copy cell values to another cell or sheet in Excel. Follow our step-by-step guide with examples and download a free Excel formula file.","og_url":"https:\/\/officetuts.net\/excel\/examples\/formula-to-copy-cell-value-to-another-cell\/","article_published_time":"2019-11-11T15:36:11+00:00","article_modified_time":"2024-03-26T15:33:08+00:00","og_image":[{"url":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/11\/copy-cell-value-example.png"}],"author":"Tomasz Decker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Tomasz Decker","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/officetuts.net\/excel\/examples\/formula-to-copy-cell-value-to-another-cell\/#article","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/examples\/formula-to-copy-cell-value-to-another-cell\/"},"author":{"name":"Tomasz Decker","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"headline":"Formula to Copy Cell Value to Another Cell in Excel","datePublished":"2019-11-11T15:36:11+00:00","dateModified":"2024-03-26T15:33:08+00:00","mainEntityOfPage":{"@id":"https:\/\/officetuts.net\/excel\/examples\/formula-to-copy-cell-value-to-another-cell\/"},"wordCount":197,"publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"image":{"@id":"https:\/\/officetuts.net\/excel\/examples\/formula-to-copy-cell-value-to-another-cell\/#primaryimage"},"thumbnailUrl":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/11\/copy-cell-value-example.png","keywords":["file","pinterest"],"articleSection":["examples"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/officetuts.net\/excel\/examples\/formula-to-copy-cell-value-to-another-cell\/","url":"https:\/\/officetuts.net\/excel\/examples\/formula-to-copy-cell-value-to-another-cell\/","name":"Formula to Copy Cell Value to Another Cell in Excel","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/#website"},"primaryImageOfPage":{"@id":"https:\/\/officetuts.net\/excel\/examples\/formula-to-copy-cell-value-to-another-cell\/#primaryimage"},"image":{"@id":"https:\/\/officetuts.net\/excel\/examples\/formula-to-copy-cell-value-to-another-cell\/#primaryimage"},"thumbnailUrl":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/11\/copy-cell-value-example.png","datePublished":"2019-11-11T15:36:11+00:00","dateModified":"2024-03-26T15:33:08+00:00","description":"Learn how to copy cell values to another cell or sheet in Excel. Follow our step-by-step guide with examples and download a free Excel formula file.","breadcrumb":{"@id":"https:\/\/officetuts.net\/excel\/examples\/formula-to-copy-cell-value-to-another-cell\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/officetuts.net\/excel\/examples\/formula-to-copy-cell-value-to-another-cell\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/examples\/formula-to-copy-cell-value-to-another-cell\/#primaryimage","url":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/11\/copy-cell-value-example.png","contentUrl":"https:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2019\/11\/copy-cell-value-example.png","width":346,"height":147},{"@type":"BreadcrumbList","@id":"https:\/\/officetuts.net\/excel\/examples\/formula-to-copy-cell-value-to-another-cell\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/officetuts.net\/excel\/"},{"@type":"ListItem","position":2,"name":"Formula to Copy Cell Value to Another Cell in Excel"}]},{"@type":"WebSite","@id":"https:\/\/officetuts.net\/excel\/#website","url":"https:\/\/officetuts.net\/excel\/","name":"","description":"","publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/officetuts.net\/excel\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42","name":"Tomasz Decker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","caption":"Tomasz Decker"},"logo":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/"},"description":"Spreadsheet and Python enthusiast."}]}},"_links":{"self":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/4844"}],"collection":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/comments?post=4844"}],"version-history":[{"count":5,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/4844\/revisions"}],"predecessor-version":[{"id":12596,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/4844\/revisions\/12596"}],"wp:attachment":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/media?parent=4844"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/categories?post=4844"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/tags?post=4844"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}