+ Reply to Thread
Results 1 to 4 of 4

Copying Cell Background with Formula

Hybrid View

  1. #1
    Registered User
    Join Date
    06-29-2010
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2016
    Posts
    75

    Copying Cell Background with Formula

    NBVC will cringe at this, but I have another question.

    I have a column which is divided into 5 different color groups, their sizes depending on user input.

    I now need 3 adjacent columns to have the same cell color backgrounds, and to be updated alongside the original column when the user updates the group sizes.

    This seems fairly easy, but I'm not entirely sure where to begin. I don't think conditional formatting would be very helpful, perhaps this is more of a VBA question?

    Cheers,

    Simon

    EDIT: I have attached a sample of the final product, no code involved.
    Attached Files Attached Files
    Last edited by Dynamo418; 07-07-2010 at 07:47 PM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Copying Cell Background with Formula

    Do you mean that you want the new cells to match the changes in the other colums? I can't see why Conditional Formatting wouldn't work
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    06-29-2010
    Location
    Minneapolis, MN
    MS-Off Ver
    Excel 2016
    Posts
    75

    Re: Copying Cell Background with Formula

    Yes, that's what I want; the cell colors to change alongside the original. How would I do this with cond. formatting? Not very familiar with it.. thanks!

    Edit: The other columns will have different numbers than the original, all that should be the same are the backgrounds of the cells, which will change based on user input.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Copying Cell Background with Formula

    If you use the exact same formulas in the all the 4 columns.. ensuring that the column references are absolute (i.e. make sure $ sign before column letter) then the colours should apply the same to all 4 columsn.

    So, for example.

    Condition 1 for all 4 columns (including column C) should be changed from:

    =SUM($C$2:$C$45)-SUM(C2:$C$45)<$F$2

    to

    =SUM($C$2:$C$45)-SUM($C2:$C$45)<$F$2

    and condition 2 should be changed from:

    =AND(SUM($C$2:$C$45)-SUM(C2:$C$45)>$F$2,SUM($C$2:$C$45)-SUM(C2:$C$45)<=SUM($F$2:F$3))

    to

    =AND(SUM($C$2:$C$45)-SUM($C2:$C$45)>$F$2,SUM($C$2:$C$45)-SUM($C2:$C$45)<=SUM($F$2:F$3))

    Notice the $ added.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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