View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jack Deuce Jack Deuce is offline
external usenet poster
 
Posts: 30
Default sumproduct by year

Having trouble getting my sumproduct to work. In col A2:A651 I have a
date, mm/dd/yy. Col D2:D651 I have catagory, gas, col E2:E651 I have
amount. I'm trying to tabulate, by year, the amount of each catagory
but can't get sumproduct to work. My table consists of the years
2006-2012 in g661 thru g668. How do I code the sumproduct to look just
at the year in col A against G? I tried left(a2:a651,4)=G661 but am
getting the #value error. I'm assuming it's the way I'm comparing
YEAR?

thanks