View Single Post
  #1   Report Post  
elsg elsg is offline
Junior Member
 
Posts: 2
Default [SOLVED] using the SUMIF function

Hello
I Have various data in column "E", and would like to put the result in each cell of column "F"

Sub teste()
Dim vResultado
Dim LR As Long
LR = Range("E" & Rows.Count).End(xlDown).Row
vResultado = Application.SumIf(Range("A2:A3000"), Range("E3"), Range("B2:B3000"))
Cells(LR + 1) = vResultado
End Sub


does anyone know how to do?

Thank you!

Last edited by elsg : May 23rd 12 at 01:43 AM