No Blanks

  • Thread starter Thread starter Antonyo
  • Start date Start date
A

Antonyo

Can someone please help me to make this formula
=SUMA(SI(S!D4:D1000=S!G4:G1000,1,0))
not to count blanks

Thanks in Advance

Anthony
 
In English...

=sumproduct(--(d4:d1000=g4:g1000),--(d4:d1000<>""))
 
Mr. Peterson Thanks for you replay

=SUMA(SI(S!D4:D1000=S!G4:G1000,1,0))

This formula works Good Only it's also count empty cells
I need to count duplicate numbers that are in the same row
Example:
D4 G4
300.00 300.00
Count like one
 
Select the cell that should have the formula.
Then hit alt-f11 (to get to the VBE)
then hit ctrl-g (to see the immediate window)

Type this and hit enter:
activecell.formula = "=sumproduct(--(d4:d1000=g4:g1000),--(d4:d1000<>""""))"

Then swap back to excel and look at that formula. (It'll be translated for
you.)

Did it work?
 
Mr. Peterson

It did not work



Dave Peterson said:
Select the cell that should have the formula.
Then hit alt-f11 (to get to the VBE)
then hit ctrl-g (to see the immediate window)

Type this and hit enter:
activecell.formula =
 
Sorry,

Mr. Peterson

It did not work

Dave Peterson said:
Select the cell that should have the formula.
Then hit alt-f11 (to get to the VBE)
then hit ctrl-g (to see the immediate window)

Type this and hit enter:
activecell.formula =
 

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