Try this formula =IF((B2>=7/24)*(B2<=9/24),"NO","YES")
On Wed, Mar 30, 2011 at 6:53 PM, <zinknax.zin...@gmail.com> wrote: > Hi All, > > I need formula to update column C, value if the time is between 7:00 AM to > 9:00 PM "YES" else "NO" > Find attached for the same. > > Column A Column B Column C > Date Time (MST) 7:00 AM 9:00 PM > 3/28/2011 6:26 AM YES IF LESS THAN 7:00:00 AM THEN YES > 3/28/2011 6:47 AM YES IF GREATER THAN 9:00:00 PM THEN YES > 3/28/2011 6:51 AM YES Between 7:00 Am to 9:00 Pm, Cell > value "NO" > 3/28/2011 6:59 AM YES > 3/28/2011 7:13 AM NO > 3/28/2011 7:32 AM NO > 3/28/2011 7:45 AM NO > 3/28/2011 7:46 AM NO > > Thanks, > Mayur > > -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> Like our page on facebook , Just follow below link http://www.facebook.com/discussexcel