In the "total" column, try using a formula like: Starting in row 2: =IF(A3<>A2,SUMIF(A:A,A2,B:B),"")
and copy it down. paul ----- Original Message ---- > From: patrick <pcnormo...@gmail.com> > To: MS EXCEL AND VBA MACROS <excel-macros@googlegroups.com> > Sent: Thursday, February 12, 2009 1:55:48 PM > Subject: $$Excel-Macros$$ excel date range > > > Hello, > I have an excel file that I would like to add up another column based > on a date range in a specific column. The number of entries will > change. For instance: > > date amount total > 2/12 5 > 2/12 7 > 2/12 8 21 > 2/13 1 1 > 2/14 5 > 2/14 10 15 > > The entries are varying. So the total will occur only when the date > changes from x to x+1. > > Any advice would be appreciated. > > Thank you. > > --~--~---------~--~----~------------~-------~--~----~ Visit the blog to download Excel tutorials at http://www.excel-macros.blogspot.com To post to this group, send email to excel-macros@googlegroups.com For more options, visit this group at http://groups.google.com/group/excel-macros?hl=en Visit & Join Our Orkut Community at http://www.orkut.com/Community.aspx?cmm=22913620 To Learn VBA Macros Please visit http://www.vbamacros.blogspot.com To see the Daily Excel Tips, Go to: http://exceldailytip.blogspot.com If you find any spam message in the group, please send an email to Ayush @ jainayus...@gmail.com -~----------~----~----~----~------~----~------~--~---