View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bradwin Bradwin is offline
external usenet poster
 
Posts: 3
Default compare cells in column to criteria, then average next column cell

I have a spreadsheet that has two columns. I want to search through the
first column for a specific value, and if the value is met, average the value
in the cell adjacent in the next column to previous values returned. The
formula
=IF(ISERROR(AVERAGE(IF(D$2:$D$1001=1,$E$2:$E$1001) )),0,(AVERAGE(IF($D$2:=1,$E$2:$E$1001))))
is supposed look for a 1 in column D, and if it is there, add the value in
column E to a running average. It does not work.