You can use EDATE if using Excel 2007. Rest you can define in Macro.
Regards, C.G.Kumar On Sat, Oct 23, 2010 at 12:07 AM, halpie97 <shal...@sterlingstamos.com>wrote: > I'm a beginner with VBA and looking for some guidance in how to > establish what I'm trying to do. > > Column A Column B Column C Column D > 1/15/2010 6/30/2009 > 3/2/2010 4/15/2008 > > I'm trying to create a VBA formula that will do the following in > columns C and D: > Column C should just be one year from Column A and insert the new > date. > Column D should be 180 days from Column B only if the date in Column A > is less than 180 days and column B is greater than Column B. > (Bascially trying to create a schedule for a date stamp of one year > from Column A and then 180 dats from Column B but not if Column A > happened within the 180 days). > > I'm looking for the function to insert the calcuated date value in > both columns C and D for future reference. > > Thanks in advance for the help. > > -- > > ---------------------------------------------------------------------------------- > 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/pages/discussexcelcom/160307843985936?v=wall&ref=ts > -- Regards, C.G.Kumar -- ---------------------------------------------------------------------------------- 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/pages/discussexcelcom/160307843985936?v=wall&ref=ts