Excel help please
 

MegaSack DRAW - This year's winner is user - rgwb
We will be in touch

[Closed] Excel help please

10 Posts
4 Users
0 Reactions
79 Views
Posts: 0
Free Member
Topic starter
 

I'm sure i knew how to do this but i must be doing something wrong, basically i'm trying to make a tracking sheet where i want the cell in the end column to turn green (showing full completion)if the previous cells in the row have been set to green (showing completion of individual units).

So it laymans terms it's for eg IF C2 and D2 are green then turn K2 to green, also to complicate things further can i have an or function eg IF C2 or D2 are green then turn K2 to green

thanks

thanks


 
Posted : 09/10/2009 9:09 am
Posts: 0
Free Member
 

Are cells C2 and D2 turned green based on other values (eg conditional format) or are you manually changing their colour?


 
Posted : 09/10/2009 9:11 am
Posts: 0
Free Member
Topic starter
 

no, i'll just be changing them manually


 
Posted : 09/10/2009 9:12 am
Posts: 0
Free Member
 

Had a quick look and it seems like the only way to do that then is with a macro (eg VB code).

A better (easier) solution would be for cells C2 and D2 to just enter r,y or g (red, yellow, green) in the cell and have a conditional format set on the cell to change the colour to green.

Then for your K2 cell, you just have a formula that says if C2 and D2 are "g" then set K2 to "g" and use the same conditional format to change the colour of cell K2.


 
Posted : 09/10/2009 9:15 am
Posts: 3729
Free Member
 

Whilst I'm not sure of the exact conditional formatting that you'll need to use, you certainly don't need both functions. If you use

IF C2 or D2 = green, then K2 = green

you don't need

IF C2 and D2 = green, then K2 = green

as there are no situations where the first function is false when the second one is true.


 
Posted : 09/10/2009 9:17 am
Posts: 0
Free Member
 

example here:

[url] http://www.clubber.pwp.blueyonder.co.uk/colour.xls [/url]


 
Posted : 09/10/2009 9:22 am
Posts: 0
Free Member
Topic starter
 

thanks clubber yeh that works, just to suss out the 'or' bits

ta


 
Posted : 09/10/2009 9:34 am
Posts: 0
Free Member
 

I'm sure you can do it better than I did - I figured you needed both to be green to make K2 green so it's and rather than or.


 
Posted : 09/10/2009 9:35 am
Posts: 0
Free Member
Topic starter
 

yeh, it's fine, now i'm up and running i'll suss it out,

ta


 
Posted : 09/10/2009 9:40 am
Posts: 1
Free Member
 

If you go with clubber's option of entering actual values and using conditional formatting to colour them (which seems more sensible than just colouring empty cells) you could use COUNTIF in K2 to check for the "g" in your range e.g. =COUNTIF(C2:D2,"g") then use conditional formatting to colour K2 green if >0


 
Posted : 09/10/2009 9:43 am
Posts: 0
Free Member
Topic starter
 

thanks, yeh i like that


 
Posted : 09/10/2009 11:45 am