+ Reply to Thread
Results 1 to 15 of 15

Excel 2007 : Formatting a cell to match other cells (if they match)

  1. #1
    Registered User
    Join Date
    10-18-2010
    Location
    chicago
    MS-Off Ver
    Excel 2003
    Posts
    16

    Formatting a cell to match other cells (if they match)

    Hi,
    I have a question - I would like to format a cell (its fill in colour) to match two other cells (assuming they match). this is a resource pipeline view - cell A3 has a specific project (highlighted in yellow), cell a4 has another (highlighted in blue), etc. dynamic list of projects that can have upto 12 projects (some day more). Resources are listed in rows 18 through 33. dates are listed in columns C through CZ. When I assign a resource to a project for a specific date i highlight the approprate cells with the corresponding color for the project. what i would like excel to do is automatically highlight the project line as well - rows 3 through 10.

    the way i see it, i would need a fomula in cell 3C; if format of 3A=18C or 19C or 20C or 21C or 22C or 23C, etc., then format 3C is the same as 3A.

    any direction or help would be great,
    thanks,
    Teddy
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    05-29-2009
    Location
    Kalgoorlie Australia
    MS-Off Ver
    Excel 2007/10
    Posts
    251

    Re: Formatting a cell to match other cells (if they match)

    hello teddy
    It can be done in 2007 or greater, but as you are using 2003 you are limited to three cond formats, to any one cell. Actually 4 including the default format.
    Regards
    Peter
    Last edited by peterjuhnke; 10-18-2010 at 05:13 PM.

  3. #3
    Registered User
    Join Date
    10-18-2010
    Location
    chicago
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Formatting a cell to match other cells (if they match)

    Peter,
    I guess I am in Luck - I am using 2007. Any suggestions on how?
    Teddy

  4. #4
    Forum Contributor
    Join Date
    05-29-2009
    Location
    Kalgoorlie Australia
    MS-Off Ver
    Excel 2007/10
    Posts
    251

    Re: Formatting a cell to match other cells (if they match)

    Just looking Teddy
    There are no values in c18 etc, I assume that you would type a number in c18 eg 6193, and it turn yellow, if 6176 was in c18 it would turn orange, etc
    Regards
    Peter
    PS sadly I'm off to work now, if the above this is the case I'll get back to you tonight sorry.
    But as you suggest, if you were to type into the cond formatting, = if(C18=$A$3,true,false), and then set the reqired formatting, this is all you need to do. Repeat the same process for each colour matching the numeral typed into the cell
    Last edited by peterjuhnke; 10-18-2010 at 05:33 PM.

  5. #5
    Registered User
    Join Date
    10-18-2010
    Location
    chicago
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Formatting a cell to match other cells (if they match)

    Peter,
    thanks in advnace for your help (especially at this early hour).
    I was going to manually format cell C18 - either yellow or orange, etc. If i do the manual format, how would I then compare the formating of cells C18 and A3?
    Teddy

  6. #6
    Forum Contributor
    Join Date
    05-29-2009
    Location
    Kalgoorlie Australia
    MS-Off Ver
    Excel 2007/10
    Posts
    251

    Re: Formatting a cell to match other cells (if they match)

    Sorry Teddy
    I'm still unsure of what you want. Are you intending to input a value into C18, and then it looks up that value in the Projects List and match the colour of the applicable cell, then also match that colour in C3.
    Eg if you typed in C18 6193, both C3 and C18 would turn yellow, if you typed into D18 6387, both D3 and D18 would turn green.

    Or are you manually colouring C18 what ever colour is in C18 you want in C3, and this has no real connection to the projects list; is it just a guide?
    If the latter is the case I'm sorry but I don't think it can be done, well not without VBA, and I'm not clued up enough to help you.

    The only way I could think of is that you add a column and number the Projects 1,2,3,4, next to the 6193, or 6193 etc, so instead of typing in 6193, or 6176, you would type in a single number, eg 1, 2 or 3 etc, this then matches the format of the apllicable cell. If you didn't want to see the number in the cell we could format the number so that it is the same colour as the cell, there for you can't see it.
    Regards
    Peter
    Last edited by peterjuhnke; 10-19-2010 at 07:04 AM.

  7. #7
    Forum Contributor
    Join Date
    05-29-2009
    Location
    Kalgoorlie Australia
    MS-Off Ver
    Excel 2007/10
    Posts
    251

    Re: Formatting a cell to match other cells (if they match)

    Please have a look at this, I have added only 3 formats in at the moment, but as many as you want can be added.
    Try typing in an 1,2 or 3 into the range D18 to CQ26.
    Are we heading in the right direction?
    Regards
    Peter
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    10-18-2010
    Location
    chicago
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Formatting a cell to match other cells (if they match)

    Peter,
    Yes this is certainly in the right direction. now i just need to populate rows 3-9 with the correct format/color based on the value i enter in rows 18-26. right now if i enter a 2 in D18, it turns cell 3D orange - it should turn 4D orange only (no mater how many times i enter a 2 in column D)

    Once again, thanks for your help.
    Teddy

  9. #9
    Registered User
    Join Date
    10-18-2010
    Location
    chicago
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Formatting a cell to match other cells (if they match)

    Peter,
    I was playing around with this and think I figured it out. I am using the formula below in row 3, could you please let me know if there is a better way to write this formula and/or a better way to edit it (the formula bar in "conditional formating" is small and not very user friendly)

    =IF(D18=$A$3,TRUE,IF(D19=$A$3,TRUE,IF(D20=$A$3,TRUE,IF(D21=$A$3,TRUE,IF(D22=$A$3,TRUE,IF(D23=$A$3,TRUE,IF(D24=$A$3,TRUE,IF(D25=$A$3,TRUE,IF(D26=$A$3,TRUE,FALSE)))))))))

    Thanks,
    Teddy

  10. #10
    Forum Contributor
    Join Date
    05-29-2009
    Location
    Kalgoorlie Australia
    MS-Off Ver
    Excel 2007/10
    Posts
    251

    Re: Formatting a cell to match other cells (if they match)

    Teddy,
    The formula is fine, you could of also used the "or" funtion; EXCEPT you don't have a value in D18, D19,D20,D21,D22,D23,D24,D25 OR D26, and I'm still trying to figure out what your intentions are.I would love to help except, each post I've asked are you intenting to type in a value. I don't have a crystal ball, I don't have the back ground history, I still don't fully understand what you want as a result.
    So please answer the questions otherwise I find imposable to help you.
    Regards
    Peter

  11. #11
    Registered User
    Join Date
    10-18-2010
    Location
    chicago
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Formatting a cell to match other cells (if they match)

    Peter,
    Sorry - I didn’t realize I wasn’t clear. This is the back ground. There are several managers with several resources working on several projects. This tool is intended to help organize and communicate what everyone is working on. The list of projects (which are in B3:B10) is dynamic and last around 2-3 months. The list of resources (which is B18:B26) is less dynamic but in reality there are more resources. The idea is for the manager to assign there resources to projects – they would enter the appropriate project reference number (1,2,3,etc.) in the row of the resource under the appropriate weekly date range. They could assign a resource to work on several projects within that week (it is not important to show what project the resource worked on a specific date (e.g. Resource 1 work on project 6193 on Monday and Tuesday and then 7120 the rest of the week). All we need to know is that Resource 1 is working on two projects 6193 and 7120. This way everyone can see what projects they are working on, how long they will be working on these projects.
    The final piece of the puzzle is to rollup the actual resource info up to the project level. In rows 3 through 10, the cell would be highlighted if one or more resource are working on a specific project (based on the manager assignment). This would be a dash board view so managers/upper management could see when projects would be started, worked and completed.
    I really appreciate your help and I hope this explains better.
    Teddy

  12. #12
    Registered User
    Join Date
    10-18-2010
    Location
    chicago
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Formatting a cell to match other cells (if they match)

    Peter,
    In the attached file you can see how I think this should work – however I a open to any suggestions you may have.

    The manager entered the following info for their resource work for the week of Oct 25th (on rows 18 through 20):
    Resource 1, assigned to project 6193 for 25% and project 6176 for 25% of his time (the remaining time is open/available)
    Resource 2, assigned to project 6176 for 50% of his time (the remaining time is open/available)
    Resource 3, assigned to project 6387 for 25% and project 6193 for 25% and project 6176 for 50% of his time (fully loaded)

    The rollup shows that only these three projects are being worked. With more data (real world info.) it will also show when projects start and finish – in this sample case I would know 6193 will start and finish in mid week, 6176 will take the whole week and 6387 will be done early in the week.
    Teddy
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    10-18-2010
    Location
    chicago
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Formatting a cell to match other cells (if they match)

    Peter,
    by the way, is there a way to lock the formating of boarders and still allow a user to modify the text?
    Teddy

  14. #14
    Registered User
    Join Date
    10-18-2010
    Location
    chicago
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Formatting a cell to match other cells (if they match)

    Peter,
    I think I am there - the only question Ihave is with formulas. This formula is not correct, =IF((OR(C38:C51=$A$3)),TRUE,FALSE). What I was hoping to do is to reture a True or False if any value in the C38:C51 range was the same as A3.

    Any suggestions?
    Teddy

  15. #15
    Registered User
    Join Date
    10-18-2010
    Location
    chicago
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Formatting a cell to match other cells (if they match)

    Peter,
    sorry it took me a while to get back to you - thanks again for all your help.

    this is resolved.
    teddy
    Last edited by teddy.montoya; 12-07-2010 at 11:15 PM. Reason: Resolved

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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