+ Reply to Thread
Results 1 to 5 of 5

format a cell background colour based on a manual background colour of an adjacent cell

  1. #1
    Registered User
    Join Date
    04-25-2015
    Location
    Penicuik, Scotland
    MS-Off Ver
    MS 365
    Posts
    12

    Question format a cell background colour based on a manual background colour of an adjacent cell

    Hi

    I have a spreadsheet which is basically an organisation chart - with over 300 staff who are based at 1 of 6 campuses (therefore 6 colours).

    Cell 1 has Staff name and FTE and a background colour to identify campus, e.g. Person A (1.0) - background colour pale blue.
    Cell 2 has a formula that extracts the FTE e.g 1.0

    I would like cell 2 to have the same background as Cell 1.

    The result will allow me to sum all staff members FTE by colour for each campus. I have attached a sample of my spreadsheet.

    Many thanks in advance for any help.
    Attached Files Attached Files

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: format a cell background colour based on a manual background colour of an adjacent cel

    You may give this a try...

    The following code will prompt you to select the Staff Cells and color the adjacent FTE cells with the same color.

    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: format a cell background colour based on a manual background colour of an adjacent cel

    similar to sktneer

    Please Login or Register  to view this content.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  4. #4
    Registered User
    Join Date
    04-25-2015
    Location
    Penicuik, Scotland
    MS-Off Ver
    MS 365
    Posts
    12

    Re: format a cell background colour based on a manual background colour of an adjacent cel

    Thanks to you both - both ways do exactly what I want.

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: format a cell background colour based on a manual background colour of an adjacent cel

    You're welcome Nampara! Glad we could help.
    Thanks for the rep.

+ 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. [SOLVED] Search cells based on student name, cell background colour and return a tally for colour
    By drof_06 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-26-2016, 04:31 AM
  2. Replies: 2
    Last Post: 01-05-2016, 06:36 PM
  3. [SOLVED] Setting cell format dependent on background colour
    By ARowbot in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-05-2015, 04:01 AM
  4. moving cell to top of list based on colour of background
    By kevinless in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 2
    Last Post: 06-18-2014, 08:26 AM
  5. IF formula based on background cell colour
    By mr_teacher in forum Excel General
    Replies: 1
    Last Post: 11-28-2007, 10:44 AM
  6. [SOLVED] change a cell background colour to my own RGB colour requirements
    By Stephen Doughty in forum Excel General
    Replies: 4
    Last Post: 06-16-2006, 08:15 AM
  7. Changing Background Colour Based on Cell Contents
    By Sukh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-12-2006, 09:00 AM

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