+ Reply to Thread
Results 1 to 5 of 5

Formula for coping cell content AND format

  1. #1
    Registered User
    Join Date
    05-22-2019
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    66

    Question Formula for coping cell content AND format

    Hello,
    I am looking for a formula that would copy cell content and format (font color) from one excel sheet into another cell in another excel sheet.

    For example:

    Cell A4 in "sheet 1" contains the phrase "Class Room 1" and the color of the phrase is red. I want the same phrase and its color to be copied into cell A4 in "sheet 2".

    It is also important to me to that if I ever change the color or the phrase in A4-Sheet 1, the same changes (in color and/or phrase) will take place in A4-Sheet 2. So, if I changed the phrase into "Class Room 2" and the color is blue, the phrase and color in sheet 2 will change automatically.

    I hope this makes sense.

    Thank you!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Formula for coping cell content AND format

    Formulas cannot copy anything anywhere - they ONLY operate in the cell they reside.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    05-22-2019
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    66

    Re: Formula for coping cell content AND format

    Well, I think you can copy the content of a cell into another with a formula. For example, =Sheet 1!A4! Will copy the content of cell A4 in sheet
    1 into another cell.

    Does this make sense? I want the same, but not only the content, but also the color of the font.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Formula for coping cell content AND format

    I think you may be confusing the term "copy" with the term "reference".

    When you copy/paste 1 cell contents to another, there is no link between them - if the source changes, the destination does not update

    When you reference another cell with a formula, a link is created from the destination cell to the source cell (but not from destination to source). The formula in the other cell is referencing sheet1 A4, and pulling it's values, it is not copying. If the source changes, so does the destination.

    Having said that though, formulas cannot "see" formatting (color/font etc), so they cannot reference that aspect.

    If the color in the source was manually applied, the only way to pull that in would be though VBA. If the color was applied via Conditional Formatting, then we may be able to use that rule

  5. #5
    Registered User
    Join Date
    05-22-2019
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    66

    Re: Formula for coping cell content AND format

    Thank you. This makes sense.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Formula to input data based on cell text content format
    By Daniel-plattmounts in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-09-2018, 10:49 AM
  2. [SOLVED] Formula to judge if format of a cells content are the same
    By ANH1102 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-05-2016, 12:59 PM
  3. Date format error when coping from VBA to excel range
    By acoaton in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-18-2015, 11:19 AM
  4. Formula to copy format and content
    By cacaip in forum Excel General
    Replies: 1
    Last Post: 05-05-2010, 07:20 PM
  5. Cell Content and Format to VBA
    By mohitp in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-31-2009, 04:11 AM
  6. [SOLVED] Retain Format When Coping Visible Cells Only to New Worksheet
    By Ronster in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-12-2006, 05:25 PM
  7. Replies: 0
    Last Post: 02-09-2005, 08:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1