This solution isn't going to work.#1) date(today) isn't a valid syntax. "today" is a text string. if you named a range in your workbook "today" then it MIGHT return the value from that range.today() (with "()") is a function that returns the serial number of today's date. #2) the Date() function converts a set of numbers representing the year, month and day into a date serial number. (=DATE(2016,5,16) returns 42506)so, date(today), or more properly date(today()) implies creating a date serial number from a date serial number, which will cause an error. Next: an IF() function cannot change the values of a cell other than the one where it currently resides.The intent in this example, B1=date(today) was to set the value of B1 equal to today's date.However, the IF() function will interpret the "=" as a Logical test and return true/false (once the date function is corrected)
Now, you COULD use =IF(A1>0,TODAY(),"") But a potential problem with this is that whenever you open the file, the date will change to the current date. If, what you're wanting is to record the date in which a cell is changed to a non-zero value,about the only way to do so is to create a VBA Change Event.In that event, you can test to see if the changed cell is the target cell (A1),then test to see if the date cell already has a value.If the changed cell is A1 and the date is blank, then put in the current date. If you need help with a Change Event, I'd be glad to help. Paul----------------------------------------- “Do all the good you can, By all the means you can, In all the ways you can, In all the places you can, At all the times you can, To all the people you can, As long as ever you can.” - John Wesley ----------------------------------------- On Sunday, May 15, 2016 9:29 PM, babulal sahu <babulals...@gmail.com> wrote: =if(a1>0,b1=date(today),"") -- Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups "MS EXCEL AND VBA MACROS" group. To unsubscribe from this group and stop receiving emails from it, send an email to excel-macros+unsubscr...@googlegroups.com. To post to this group, send email to excel-macros@googlegroups.com. Visit this group at https://groups.google.com/group/excel-macros. For more options, visit https://groups.google.com/d/optout. -- Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups "MS EXCEL AND VBA MACROS" group. To unsubscribe from this group and stop receiving emails from it, send an email to excel-macros+unsubscr...@googlegroups.com. To post to this group, send email to excel-macros@googlegroups.com. Visit this group at https://groups.google.com/group/excel-macros. For more options, visit https://groups.google.com/d/optout.