+ Reply to Thread
Results 1 to 4 of 4

Need to copy formatting when referencing a cell that is displayed using IF

  1. #1
    Registered User
    Join Date
    04-04-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    14

    Need to copy formatting when referencing a cell that is displayed using IF

    I'm using Excel 14.7.7 for Mac.
    iOS 10.12.6

    I have six hidden columns and two unhidden columns. Depending on what is entered in a completely separate and different cell, I will copy the contents from two hidden columns to the unhidden ones. I also need to copy the formatting.

    Is there a way to do this?

    Here is the formula I am using to get the values from the hidden columns to the unhidden columns: =IF($A$49="Autumn",$AW2,IF($A$49="Spring",$AY2,IF($A$49="Summer",$BA2)))

    (So I want the formatting from AW, AY or BA to end up in the cells, too.)

    Thank you in advance.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: Need to copy formatting when referencing a cell that is displayed using IF

    A formula can't be used to return formatting - it can only return a value to the cell in which the formula resides.

    You may be able to use Conditional Formatting if the formatting depends on "Autumn", "Spring" etc.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    04-04-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    14
    Quote Originally Posted by Pete_UK View Post
    A formula can't be used to return formatting - it can only return a value to the cell in which the formula resides.

    You may be able to use Conditional Formatting if the formatting depends on "Autumn", "Spring" etc.

    Hope this helps.

    Pete

    Thank you. The formatting that I need to copy is, in fact, conditional formatting. Does that help my cause?

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: Need to copy formatting when referencing a cell that is displayed using IF

    Yes, you can have 3 CF conditions, along the lines of what you are using already.

    Hope this helps.

    Pete

+ 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. Replies: 3
    Last Post: 01-25-2015, 07:11 PM
  2. [SOLVED] Set number value displayed in cell when certain text value is displayed in another
    By chrisswann in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-18-2013, 09:07 AM
  3. Copy/Paste Referencing Only Original Cell (Conditional Formatting)
    By JONBOY666 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-30-2013, 06:26 PM
  4. Conditional Formatting and referencing cell
    By SUPPO_USN in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-26-2011, 06:38 PM
  5. Replies: 3
    Last Post: 08-31-2009, 01:36 AM
  6. [SOLVED] Cell Formatting Advice:- Text displayed as .........#######
    By Dermot in forum Excel General
    Replies: 1
    Last Post: 05-22-2006, 07:20 PM
  7. #VALUE! displayed when referencing a formula cell
    By bazza825 in forum Excel General
    Replies: 9
    Last Post: 04-29-2006, 01:38 PM

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