I need to add some number together in d4:d14, but only add the numbers if a4:a14 say 730.

so...

a d

730 1
730 1
830 0
600 0
900 1

So i need the answer to be 2.