Este fórum está sendo desativado

Depois de 9 anos, este fórum será desativado. Mas calma.... estamos migrando para uma comunidade no DISCORD. Junte-se a nós.

ENTRAR PARA DISCORD

Tópicos relacionados a códigos VBA, gravação de macros, etc.
Por vitordmd
#65027
estou tentando usar a fórmula de somar produto e contse em conjunto para que me retorno a quantidade de valores diferentes em um determinado intervalo, porém está aparecendo um erro de TIPOS INCOMPÁTIVEIS.
Você não está autorizado a ver ou baixar esse anexo.
Por osvaldomp
#65030
Me parece que em VBA a função CountIf() não aceita uma matriz no segundo argumento.

Seguem alternativas.
Código: Selecionar todos
   Cells(1, 3) = Evaluate("SumProduct(1 / CountIf(" & Range(Cells(1, 2), Cells(6, 2)).Address & "," & Range(Cells(1, 2), Cells(6, 2)).Address & "))")
#
ou com Sum no lugar de SumProduct
Código: Selecionar todos
  Cells(1, 3) = Evaluate("Sum(1 / CountIf(" & Range(Cells(1, 2), Cells(6, 2)).Address & "," & Range(Cells(1, 2), Cells(6, 2)).Address & "))")
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]

Estamos migrando para uma comunidade no Discord