Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Okay so I feel like this is going to be complicated to explain.
I have this formula:

VB
=IF(LEN(C12)=0,"",IF(COUNTIF(Assignments[DUE DATE],DATE(MoYear,MoMonthNum,C12))>0,"Assignment due!",""))


So with this formula, the first value in my calendar will say that an assignemtn is due, if an assignment on my Assignment sheet has a Due date that matches to the calendar ie. if an assigment is due on October 4th, 2015 the phrase 'Assignment Due!' will be shown on that date.

My problem is, I want that phrase to say the exact assigment corresponding to the date. For instance, if I have 'Work' in my assigment sheet corresponding to October 4th, 2015 I would like the value to say 'Work' instead of 'Assigment Due'. Now I know that I can just go into the formula and change where it says Assignment due>work, but then I would have to do that on every formula on the calendar.

Is there another formula I could put after the DATE(MoYear,MoMonthNum,C12))>0, to where when the IF statement is true, it will give the value of that due date?
Posted
Updated 27-Sep-15 8:34am
v2
Comments
Richard MacCutchan 25-Sep-15 11:09am    
Don't you just need to use the value of the cell with the assignment title rather than the string "Assignment Due"?
Member 12011495 25-Sep-15 11:18am    
Doing that just gives a static answer. If i change value of the cell of the assignment title then value on the calendar will not change with this formula. If that makes sense
Richard MacCutchan 25-Sep-15 11:23am    
It should do if you have auto recalculate on.
Member 12011495 25-Sep-15 12:06pm    
Well there has to be something in place of the Assignment Due portion in order for that to happen. Like some other formula so that when the IF part is true, it will look and see what is in the cell that makes the statement true. Currently it just says Assignment Due when the statment is true.
Richard MacCutchan 25-Sep-15 12:19pm    
I guess the use of COUNTIF is not sufficient here, as you need to find the actual cell that contains that text.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900