+ Reply to Thread
Results 1 to 9 of 9

Cell Colouring Diagonally

  1. #1
    Registered User
    Join Date
    06-23-2005
    Posts
    86

    Cell Colouring Diagonally

    Hi all

    Can anyone help?

    I want to be able to colour an excel cell diagonally. By that I want to have one half white and one half Red (for example).

    Can this be done?

    If so please help.
    Very grateful
    Regards
    Mark

  2. #2
    Valued Forum Contributor
    Join Date
    09-23-2005
    Location
    Bristol, UK
    MS-Off Ver
    2007
    Posts
    664
    Hi,

    You can use triangles in Autoshapes to create the appearance of a colour split - it's not perfect, but I've used it on a couple of occasions to good effect.

    HTH,

    SamuelT

  3. #3
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    3,993
    Hi,

    You can also insert objects which have the exact same size as a cell ...
    objects that you customize with Paint ...

    HTH
    Carim

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,099
    If you are using Auto Shapes, it's best to set the zoom level at say 400%. You can then make a triangle to fit the borders of the cell exactly. Format the triangle with on border colour and fill with a colour. Make a copy of it, change the colour, then turn it upside down to sit on the first triangle to form an oblong. Get them centered over your cell, then use the "Select Objects" arrow and select both triangles and group them. Now click off the "Arrow" and set your zoom level back to 100%.

    Looks perfect!
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  5. #5
    Forum Contributor
    Join Date
    10-27-2006
    Location
    United Kingdom
    MS-Off Ver
    EXCEL 2003 (2007 at home)
    Posts
    517

    Diagonal Colours AND Values.

    Thats all well and good, as long as you don't also want a value in the cell...
    I've tried the idea of adding an autoshape, and it is always in front of the text for the cell value.
    "Send to back" did not seem to make any difference.
    The best I came up with was to set the shape to 50% transparency.
    I also found it helped if I set the relevent cell borders to red, and included a red diagonal "border".
    Mark.

  6. #6
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,099
    Quote Originally Posted by Mark@Work
    Thats all well and good, as long as you don't also want a value in the cell...
    I've tried the idea of adding an autoshape, and it is always in front of the text for the cell value.
    "Send to back" did not seem to make any difference.
    The best I came up with was to set the shape to 50% transparency.
    I also found it helped if I set the relevent cell borders to red, and included a red diagonal "border".
    Mark.
    Hi Mark,

    There's no need to set at 50% transparency, you can get over it this way. If you have a value in the cell, say B5, you can make a Text Box active and put your cursor in the formula bar and put =B5, then whatever is in the cell will appear in the text box. Format the text box to no fill and no border and place it over the triangles.

    Perfect again!

  7. #7
    Registered User
    Join Date
    06-23-2005
    Posts
    86

    Many Thanks SamuelT, Carim, oldchippy and Mark

    Hey Guys!!!

    Thanks for responses and I understand all what you are trying to do.
    However as soon as I insert new lines etc the triangles do not move with it.

    I'm afraid it is not exactly what I wanted to do.

    What I was experimenting with yesterday was trying to modify the Excel colour palette to include a new colour which has (for example) white at the top and blue at the bottom (using a custom colour).

    That way I could shade every cell in accordingly just like using a normal colour.

    However, after much hair pulling and keyboard bangin I gave in!!

    Any more suggestions anybody?
    Thanks
    Mark

  8. #8
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,099
    There's possibly another solution? Do an Autoshape box, then right click to format, Colours and Lines > Fill drop down > Fill Effects > Gradient > Colours Preset > Choose "Early Sunset" > Shading Styles > Diagonal Up, then choose bottom left variant.

    Or a variation on that theme maybe?

  9. #9
    Registered User
    Join Date
    06-23-2005
    Posts
    86

    Thanks OldChippy!

    Hey m8,

    Yep I actually got to that point yesterday but as I will be shading in several cells its a bit of a pain to do.

    Thanks mate
    Nice one!

+ 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