conditioning formatting

Folks

I have a conditional format that looks at a start date in columm b and end date in c and
checks out the week numbers, if this corresponds in a weeknumber range d1 to bc1 then it highlights the cells yellow ,like so

•=AND(D$1>=WEEKNUM($B1),D$1<=WEEKNUM($C1))

what I would like is to also have have condition format the cell with a letter "X" but also, how can I build functionality that if I remove the "X" for that cell , that the code goes and changes either the start date or end date with the new revise date range

all help will do, below is the atatched sample which I already have
gannt.xlsx
rutgermonsAsked:
Who is Participating?
 
gowflowCommented:
Your correct 100%. Usually users are the best troubleshooters !!!
Does this makes it better ?
gowflow
ganntV03.xlsm
0
 
gowflowCommented:
Well put this formula in D2 and drag it right most and down as much as you want.

=IF(AND(D$1>=WEEKNUM($B2),D$1<=WEEKNUM($C2)),"X","")

chk the file
gowflow
gannt.xlsx
0
 
IrogSintaCommented:
if I remove the "X" for that cell , that the code goes and changes either the start date or end date with the new revise date range

How would it know what the revised date would be since each "X" represents a week number?  If you remove the first "X" in a row where the start date is 1/4/2014, the revised start date could be anywhere between 1/5/2014 and 1/11/2014 since that range represents week number 2.
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
rutgermonsAuthor Commented:
and "x"  specifies a week so it should subtract a week if removed, im conscious it might not be possible, but keen to understand if it is
0
 
gowflowCommented:
Ok now I understand what you want.

Pls try this file and play with the X the way you want and see the colors changes as well as the dates. Is this what you want ???
gowflow
ganntV01.xlsx
0
 
gowflowCommented:
Any chance to have tried the above solution posted ?
gowflow
0
 
rutgermonsAuthor Commented:
doesnt work, i would like the code to work both ways, when changing the start /end dates it should set the highlighting with marking the calls yellow/x if between the spcified dates and vice versa, if I remove the x then it should update the dates itself
0
 
gowflowCommented:
ok now got it !!!
You then need a mixture of macro as well !!! hmmm :)

here you are
Enjoy

I hope this does it ... play with the x .... and put dates ...
just make sure macros are activated prior to loading the file
let me know
gowflow
ganntV02.xlsm
0
 
rutgermonsAuthor Commented:
nearly nearly, i would like all the weeks filled with a "x" so if I remove the x from week 5 then it only recalculates the end date to week 4
0
 
gowflowCommented:
well even if no xxxx try what you just said and see the result
if x in wk4 then x in week 10
if you want shorter remove x from week 10 then only week4 is yellow and put where you want.

similarly if you put x in week 2 it will remove week 4 and you will have 2 to 10

gowflow
0
 
rutgermonsAuthor Commented:
did see if I set the end date to an earlier finish date the highlighted yellow works and adjust's accordingly but the x in the orginal end date still displays
0
 
gowflowCommented:
give me a specific example so I see where is what is not functioning as I tested quite long and it was working here.

What version of excel you have I developed this in Excel 2007 sometimes Excel 2010 have weired behaviours.

Let me know
gowflow
0
 
rutgermonsAuthor Commented:
line 9, set end date to 5/5/14 (x keeps showing on 5/1/14 ,show only reflect on 5/5/14 for end date

line 9, set end date back to 5/2/14 (x keeps showing on 5/5/14 ,show only reflect on 5/2/14 for end date
0
 
rutgermonsAuthor Commented:
thanks GowFlow for your hardwork, I took the easyroute and had u do the work, thanks for letting me learn from you

i may log a follow up call on this today so enhance it further
0
 
gowflowCommented:
No problem tks your comments. Pls post a link in here and will b glad to assist.
gowflow
0
 
gowflowCommented:
I don't get it with your new question what are you trying to achieve ?? it is not clear !!! isn't it the same as this one with the x ??

If this question is done with  please close it prior to opening new questions with the same scoope and subject !!
gowflow
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.