Range with VBA

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I need help to design a VBA Formula that would sum up in column L all rows
in Column E with the text "paid" and delete the duplicate rows, but the range
to look for those rows has to be from Column E with the text "Cleared items"
to column E with the text "End of month"
Is this possible?
Jeff
 
no. as soon as you said "delete".
formulas return an value, they cannot perform an action
like delete a line.
you can do the sum.
Assume data to sum is in c2 to c20 then at c21 put
sumif(E2:E20,"Paid",C2:C20)
 
=IF(E2="paid",1,0)

Copy that formula down, then sort or AutoFilter on that column. If you sort,
those rows will be at the bottom, where you can delete them.

If you AutoFilter, just select the visible rows and delete them.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top