+ Reply to Thread
Results 1 to 16 of 16

Conditional Formula for fill colour in rows

  1. #1
    Registered User
    Join Date
    10-28-2010
    Location
    UK, Swansea
    MS-Off Ver
    Excel 2010
    Posts
    64

    Conditional Formula for fill colour in rows

    Hi
    I need to change the fill colour in the range AH1 : BD1 in row 1 based on the fill colour I use in A1, so that as I change
    the fill colour in A1 then the same colour fills AH1 to BD1.
    Can anyone please give me some advice or a conditional formula that I can use to do this.
    Many thanks
    Mikey

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Conditional Formula for fill colour in rows

    Hi Mikey7346,

    I am not sure if that can be done using conditional formula.. I guess the only solution is VBA (macros). thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    10-28-2010
    Location
    UK, Swansea
    MS-Off Ver
    Excel 2010
    Posts
    64

    Re: Conditional Formula for fill colour in rows

    Hi Dilpandey,
    Not so simple then. I wanted to copy the formula used in AH1 to BD1 to apply to other other rows of my worksheet!
    Looks like I will have to continue with my manual fill.
    Thanks
    Mikey

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Conditional Formula for fill colour in rows

    Earlier you wanted to copy the fill color from A1 to this range.. .
    and now, you said that ..
    you want to copy the formula used in this range to apply to other rows of your worksheet...

    Anyways, both of these actions requires macros (vba). Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  5. #5
    Registered User
    Join Date
    10-28-2010
    Location
    UK, Swansea
    MS-Off Ver
    Excel 2010
    Posts
    64

    Re: Conditional Formula for fill colour in rows

    Hi DILIPandey,
    Yes originally I just wanted a formula, then I would have been able to copy and paste to other sections of the worksheet.
    Sorry if I misled you, I should have been more precise.
    Regards
    Mikey

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Conditional Formula for fill colour in rows

    No problem

    So what is your requirement now? Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  7. #7
    Registered User
    Join Date
    10-28-2010
    Location
    UK, Swansea
    MS-Off Ver
    Excel 2010
    Posts
    64

    Re: Conditional Formula for fill colour in rows

    Hi DILIPandey,
    Was hoping there was a conditional formula solution and didnt really want to go down the macro route so think will continue with my manual fill.
    Many thanks, I appreciate that you have tried to help.
    Best regards
    Mikey

  8. #8
    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: Conditional Formula for fill colour in rows

    are you using CF to change the color of te 1st set of data? if you, you could probably use the samew criteria through CF to change color of the 2nd set of data?

    perhaps upload a sample workbook?
    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

  9. #9
    Registered User
    Join Date
    10-28-2010
    Location
    UK, Swansea
    MS-Off Ver
    Excel 2010
    Posts
    64

    Re: Conditional Formula for fill colour in rows

    Hi
    Have attached my sample worksheet as suggested. There is no conditional format in the choice of colour and the choice is arbitrary and is normally based on the crew leaders football team colours!
    I was adding columns into the worksheet today and copying the formulae from row 59 into rows 61 to 65 As I was adding colour to the newly formatted rows I wondered if there was a way to automate the colour in the row based on the colour I had chosen in Cells A61 to A65,(but at the same time to keep the number format). Sorry DILIpandey this is a bit different to my original question but was hoping there was a simple formula I could use then copy and paste to the relevant section of my worksheet.
    Regards
    Mikey
    Attached Files Attached Files

  10. #10
    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: Conditional Formula for fill colour in rows

    in 2007, i dont believe there is any function to identify cell colors for use in other functions, unless you want to go the VBA route

  11. #11
    Registered User
    Join Date
    10-28-2010
    Location
    UK, Swansea
    MS-Off Ver
    Excel 2010
    Posts
    64

    Re: Conditional Formula for fill colour in rows

    Hi
    Am now using excel 2010 if that makes a difference but dont really want to go down the macro route.
    However as a last resort what would happen if I were to add a working hidden column in B and insert a 1,2,3,4.5 cells B61 to B65 adjacent to the crews and used that as my criterion to change the row colour. Would it then be possible to have a conditional formula to say if
    B61 is 1 then make A61 blue and I61 to BO 61 blue, and again if B62 is 2 then make A62 orange and make I62 to BO62 orange etc etc.
    Thanks
    Mikey

  12. #12
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Conditional Formula for fill colour in rows

    Yes.. that seems to be possible.

    But how these numbers i.e. 1,2,3,4,5 etc will be changed ? will you change these manually or through some formula ? thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  13. #13
    Registered User
    Join Date
    10-28-2010
    Location
    UK, Swansea
    MS-Off Ver
    Excel 2010
    Posts
    64

    Re: Conditional Formula for fill colour in rows

    Hi Dilipandey
    No, initially I would change manually and if I add a crew would go to No 6 with a different colour.
    Regards
    Mikey

  14. #14
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Conditional Formula for fill colour in rows

    Hi Mikey7346,

    Basis your post#11, below is the solution which you can further customize as per your needs.
    conditional formula to fill colors.xlsx

    Go to conditional formatting window to see the logic / formula used .. thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  15. #15
    Registered User
    Join Date
    10-28-2010
    Location
    UK, Swansea
    MS-Off Ver
    Excel 2010
    Posts
    64

    Re: Conditional Formula for fill colour in rows

    Hi Dilipandey
    Sorry for not getting back on the forum to thank you for sorting out my query
    Thanks again.
    Best regards
    Mikey

  16. #16
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Conditional Formula for fill colour in rows

    You are welcome Mikey...

    cheers

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

+ 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