Comemnt faire pour écrire la fonction Nb.Si d'excel dans VBA
Voila le code
Private Sub CommandButton1_Click()
Dim maPlage As Range
Set maPlage = Worksheets("Vente Produits Février 2004").Range("A64:A6000")
reponse = Application.WorksheetFunction.Nb.Si(maPlage, "cells(1,1))
MsgBox reponse
End Sub
Ca marche pas... Pourquoi?
Quelqu'un peut m'aider?
------------------------------------ Site @ccess : http://access.jessy.free.fr/ Pour l'efficacité de tous : http://users.skynet.be/mpfa/ ------------------------------------ "Guillaume" a écrit dans le message news: #
Bonjour a tous,
Comemnt faire pour écrire la fonction Nb.Si d'excel dans VBA
Voila le code
Private Sub CommandButton1_Click() Dim maPlage As Range Set maPlage = Worksheets("Vente Produits Février 2004").Range("A64:A6000") reponse = Application.WorksheetFunction.Nb.Si(maPlage, "cells(1,1)) MsgBox reponse End Sub
Ca marche pas... Pourquoi? Quelqu'un peut m'aider?
Merci Et bon Week End!! lol
Guillaume
Bonjour
Tu peux regarder du côté de SUMIF()
@+
Jessy Sempere - Access MVP
news@access.fr.vu
------------------------------------
Site @ccess : http://access.jessy.free.fr/
Pour l'efficacité de tous :
http://users.skynet.be/mpfa/
------------------------------------
"Guillaume" <ggaufroy@free.fr> a écrit dans le message news:
#NiQmT69DHA.888@tk2msftngp13.phx.gbl...
Bonjour a tous,
Comemnt faire pour écrire la fonction Nb.Si d'excel dans VBA
Voila le code
Private Sub CommandButton1_Click()
Dim maPlage As Range
Set maPlage = Worksheets("Vente Produits Février 2004").Range("A64:A6000")
reponse = Application.WorksheetFunction.Nb.Si(maPlage, "cells(1,1))
MsgBox reponse
End Sub
Ca marche pas... Pourquoi?
Quelqu'un peut m'aider?
------------------------------------ Site @ccess : http://access.jessy.free.fr/ Pour l'efficacité de tous : http://users.skynet.be/mpfa/ ------------------------------------ "Guillaume" a écrit dans le message news: #
Bonjour a tous,
Comemnt faire pour écrire la fonction Nb.Si d'excel dans VBA
Voila le code
Private Sub CommandButton1_Click() Dim maPlage As Range Set maPlage = Worksheets("Vente Produits Février 2004").Range("A64:A6000") reponse = Application.WorksheetFunction.Nb.Si(maPlage, "cells(1,1)) MsgBox reponse End Sub
Ca marche pas... Pourquoi? Quelqu'un peut m'aider?
Merci Et bon Week End!! lol
Guillaume
Guillaume
en fait je crois que c'est countif.... mais je sais pas comment ca fonctionne
Merci de l'info
"Jessy Sempere [MVP]" a écrit dans le message de news: c14rjb$be7$
Bonjour
Tu peux regarder du côté de SUMIF()
@+ Jessy Sempere - Access MVP
------------------------------------ Site @ccess : http://access.jessy.free.fr/ Pour l'efficacité de tous : http://users.skynet.be/mpfa/ ------------------------------------ "Guillaume" a écrit dans le message news: #
Bonjour a tous,
Comemnt faire pour écrire la fonction Nb.Si d'excel dans VBA
Voila le code
Private Sub CommandButton1_Click() Dim maPlage As Range Set maPlage = Worksheets("Vente Produits Février 2004").Range("A64:A6000")
reponse = Application.WorksheetFunction.Nb.Si(maPlage, "cells(1,1)) MsgBox reponse End Sub
Ca marche pas... Pourquoi? Quelqu'un peut m'aider?
Merci Et bon Week End!! lol
Guillaume
en fait je crois que c'est countif.... mais je sais pas comment ca
fonctionne
Merci de l'info
"Jessy Sempere [MVP]" <jessy.sempere@prg.sncf.fr> a écrit dans le message de
news: c14rjb$be7$1@muguet.sncf.fr...
Bonjour
Tu peux regarder du côté de SUMIF()
@+
Jessy Sempere - Access MVP
news@access.fr.vu
------------------------------------
Site @ccess : http://access.jessy.free.fr/
Pour l'efficacité de tous :
http://users.skynet.be/mpfa/
------------------------------------
"Guillaume" <ggaufroy@free.fr> a écrit dans le message news:
#NiQmT69DHA.888@tk2msftngp13.phx.gbl...
Bonjour a tous,
Comemnt faire pour écrire la fonction Nb.Si d'excel dans VBA
Voila le code
Private Sub CommandButton1_Click()
Dim maPlage As Range
Set maPlage = Worksheets("Vente Produits Février
2004").Range("A64:A6000")
reponse = Application.WorksheetFunction.Nb.Si(maPlage, "cells(1,1))
MsgBox reponse
End Sub
Ca marche pas... Pourquoi?
Quelqu'un peut m'aider?
en fait je crois que c'est countif.... mais je sais pas comment ca fonctionne
Merci de l'info
"Jessy Sempere [MVP]" a écrit dans le message de news: c14rjb$be7$
Bonjour
Tu peux regarder du côté de SUMIF()
@+ Jessy Sempere - Access MVP
------------------------------------ Site @ccess : http://access.jessy.free.fr/ Pour l'efficacité de tous : http://users.skynet.be/mpfa/ ------------------------------------ "Guillaume" a écrit dans le message news: #
Bonjour a tous,
Comemnt faire pour écrire la fonction Nb.Si d'excel dans VBA
Voila le code
Private Sub CommandButton1_Click() Dim maPlage As Range Set maPlage = Worksheets("Vente Produits Février 2004").Range("A64:A6000")
reponse = Application.WorksheetFunction.Nb.Si(maPlage, "cells(1,1)) MsgBox reponse End Sub
Ca marche pas... Pourquoi? Quelqu'un peut m'aider?
Merci Et bon Week End!! lol
Guillaume
Modeste
;-))) tsss.....tssss... plutot :
COUNTIF Counts the number of cells within a range that meet the given criteria. Syntax COUNTIF(range,criteria) Range : is the range of cells from which you want to count cells. Criteria : is the criteria in the form of a number, expression, or text that defines which cells will be counted. For example, criteria can be expressed as 32, "32", ">32", "apples".
'--------------------------- SUMIF Adds the cells specified by a given criteria. Syntax SUMIF(range,criteria,sum_range) Range is the range of cells you want evaluated. Criteria is the criteria in the form of a number, expression, or text that defines which cells will be added. For example, criteria can be expressed as 32, "32", ">32", "apples".
Sum_range are the actual cells to sum.
@+
-----Message d'origine----- Bonjour
Tu peux regarder du côté de SUMIF()
@+ Jessy Sempere - Access MVP
------------------------------------ Site @ccess : http://access.jessy.free.fr/ Pour l'efficacité de tous : http://users.skynet.be/mpfa/ ------------------------------------ "Guillaume" a écrit dans le message news:
#
Bonjour a tous,
Comemnt faire pour écrire la fonction Nb.Si d'excel dans VBA
Voila le code
Private Sub CommandButton1_Click() Dim maPlage As Range Set maPlage = Worksheets("Vente Produits Février 2004").Range("A64:A6000")
Ca marche pas... Pourquoi? Quelqu'un peut m'aider?
Merci Et bon Week End!! lol
Guillaume
.
;-)))
tsss.....tssss...
plutot :
COUNTIF
Counts the number of cells within a range that meet the
given criteria.
Syntax
COUNTIF(range,criteria)
Range : is the range of cells from which you want to
count cells.
Criteria : is the criteria in the form of a number,
expression, or text that defines which cells will be
counted. For example, criteria can be expressed as
32, "32", ">32", "apples".
'---------------------------
SUMIF
Adds the cells specified by a given criteria.
Syntax
SUMIF(range,criteria,sum_range)
Range is the range of cells you want evaluated.
Criteria is the criteria in the form of a number,
expression, or text that defines which cells will be
added. For example, criteria can be expressed as
32, "32", ">32", "apples".
Sum_range are the actual cells to sum.
@+
-----Message d'origine-----
Bonjour
Tu peux regarder du côté de SUMIF()
@+
Jessy Sempere - Access MVP
news@access.fr.vu
------------------------------------
Site @ccess : http://access.jessy.free.fr/
Pour l'efficacité de tous :
http://users.skynet.be/mpfa/
------------------------------------
"Guillaume" <ggaufroy@free.fr> a écrit dans le message
news:
#NiQmT69DHA.888@tk2msftngp13.phx.gbl...
Bonjour a tous,
Comemnt faire pour écrire la fonction Nb.Si d'excel
dans VBA
Voila le code
Private Sub CommandButton1_Click()
Dim maPlage As Range
Set maPlage = Worksheets("Vente Produits Février
2004").Range("A64:A6000")
COUNTIF Counts the number of cells within a range that meet the given criteria. Syntax COUNTIF(range,criteria) Range : is the range of cells from which you want to count cells. Criteria : is the criteria in the form of a number, expression, or text that defines which cells will be counted. For example, criteria can be expressed as 32, "32", ">32", "apples".
'--------------------------- SUMIF Adds the cells specified by a given criteria. Syntax SUMIF(range,criteria,sum_range) Range is the range of cells you want evaluated. Criteria is the criteria in the form of a number, expression, or text that defines which cells will be added. For example, criteria can be expressed as 32, "32", ">32", "apples".
Sum_range are the actual cells to sum.
@+
-----Message d'origine----- Bonjour
Tu peux regarder du côté de SUMIF()
@+ Jessy Sempere - Access MVP
------------------------------------ Site @ccess : http://access.jessy.free.fr/ Pour l'efficacité de tous : http://users.skynet.be/mpfa/ ------------------------------------ "Guillaume" a écrit dans le message news:
#
Bonjour a tous,
Comemnt faire pour écrire la fonction Nb.Si d'excel dans VBA
Voila le code
Private Sub CommandButton1_Click() Dim maPlage As Range Set maPlage = Worksheets("Vente Produits Février 2004").Range("A64:A6000")
Ca marche pas... Pourquoi? Quelqu'un peut m'aider?
Merci Et bon Week End!! lol
Guillaume
.
Guillaume
Heu merci...
Donc en gros ca fait
toto = countif("A20:A300", "zaza")
Car ca marche po chez moi...
Désolé
Guillaume
"Modeste" a écrit dans le message de news: 12f1f01c3f7aa$4a2781f0$ ;-))) tsss.....tssss... plutot :
COUNTIF Counts the number of cells within a range that meet the given criteria. Syntax COUNTIF(range,criteria) Range : is the range of cells from which you want to count cells. Criteria : is the criteria in the form of a number, expression, or text that defines which cells will be counted. For example, criteria can be expressed as 32, "32", ">32", "apples".
'--------------------------- SUMIF Adds the cells specified by a given criteria. Syntax SUMIF(range,criteria,sum_range) Range is the range of cells you want evaluated. Criteria is the criteria in the form of a number, expression, or text that defines which cells will be added. For example, criteria can be expressed as 32, "32", ">32", "apples".
Sum_range are the actual cells to sum.
@+
-----Message d'origine----- Bonjour
Tu peux regarder du côté de SUMIF()
@+ Jessy Sempere - Access MVP
------------------------------------ Site @ccess : http://access.jessy.free.fr/ Pour l'efficacité de tous : http://users.skynet.be/mpfa/ ------------------------------------ "Guillaume" a écrit dans le message news:
#
Bonjour a tous,
Comemnt faire pour écrire la fonction Nb.Si d'excel dans VBA
Voila le code
Private Sub CommandButton1_Click() Dim maPlage As Range Set maPlage = Worksheets("Vente Produits Février 2004").Range("A64:A6000")
Ca marche pas... Pourquoi? Quelqu'un peut m'aider?
Merci Et bon Week End!! lol
Guillaume
.
Heu merci...
Donc en gros ca fait
toto = countif("A20:A300", "zaza")
Car ca marche po chez moi...
Désolé
Guillaume
"Modeste" <gee-dee-@discussions.microsoft.com> a écrit dans le message de
news: 12f1f01c3f7aa$4a2781f0$a101280a@phx.gbl...
;-)))
tsss.....tssss...
plutot :
COUNTIF
Counts the number of cells within a range that meet the
given criteria.
Syntax
COUNTIF(range,criteria)
Range : is the range of cells from which you want to
count cells.
Criteria : is the criteria in the form of a number,
expression, or text that defines which cells will be
counted. For example, criteria can be expressed as
32, "32", ">32", "apples".
'---------------------------
SUMIF
Adds the cells specified by a given criteria.
Syntax
SUMIF(range,criteria,sum_range)
Range is the range of cells you want evaluated.
Criteria is the criteria in the form of a number,
expression, or text that defines which cells will be
added. For example, criteria can be expressed as
32, "32", ">32", "apples".
Sum_range are the actual cells to sum.
@+
-----Message d'origine-----
Bonjour
Tu peux regarder du côté de SUMIF()
@+
Jessy Sempere - Access MVP
news@access.fr.vu
------------------------------------
Site @ccess : http://access.jessy.free.fr/
Pour l'efficacité de tous :
http://users.skynet.be/mpfa/
------------------------------------
"Guillaume" <ggaufroy@free.fr> a écrit dans le message
news:
#NiQmT69DHA.888@tk2msftngp13.phx.gbl...
Bonjour a tous,
Comemnt faire pour écrire la fonction Nb.Si d'excel
dans VBA
Voila le code
Private Sub CommandButton1_Click()
Dim maPlage As Range
Set maPlage = Worksheets("Vente Produits Février
2004").Range("A64:A6000")
"Modeste" a écrit dans le message de news: 12f1f01c3f7aa$4a2781f0$ ;-))) tsss.....tssss... plutot :
COUNTIF Counts the number of cells within a range that meet the given criteria. Syntax COUNTIF(range,criteria) Range : is the range of cells from which you want to count cells. Criteria : is the criteria in the form of a number, expression, or text that defines which cells will be counted. For example, criteria can be expressed as 32, "32", ">32", "apples".
'--------------------------- SUMIF Adds the cells specified by a given criteria. Syntax SUMIF(range,criteria,sum_range) Range is the range of cells you want evaluated. Criteria is the criteria in the form of a number, expression, or text that defines which cells will be added. For example, criteria can be expressed as 32, "32", ">32", "apples".
Sum_range are the actual cells to sum.
@+
-----Message d'origine----- Bonjour
Tu peux regarder du côté de SUMIF()
@+ Jessy Sempere - Access MVP
------------------------------------ Site @ccess : http://access.jessy.free.fr/ Pour l'efficacité de tous : http://users.skynet.be/mpfa/ ------------------------------------ "Guillaume" a écrit dans le message news:
#
Bonjour a tous,
Comemnt faire pour écrire la fonction Nb.Si d'excel dans VBA
Voila le code
Private Sub CommandButton1_Click() Dim maPlage As Range Set maPlage = Worksheets("Vente Produits Février 2004").Range("A64:A6000")
Ca marche pas... Pourquoi? Quelqu'un peut m'aider?
Merci Et bon Week End!! lol
Guillaume
.
ChrisV
Bonjour Guillaume,
toto = Application.CountIf(Range("A20:A300"), "zaza")
ChrisV
"Guillaume" a écrit dans le message de news:
Heu merci...
Donc en gros ca fait
toto = countif("A20:A300", "zaza")
Car ca marche po chez moi...
Désolé
Guillaume
"Modeste" a écrit dans le message de news: 12f1f01c3f7aa$4a2781f0$ ;-))) tsss.....tssss... plutot :
COUNTIF Counts the number of cells within a range that meet the given criteria. Syntax COUNTIF(range,criteria) Range : is the range of cells from which you want to count cells. Criteria : is the criteria in the form of a number, expression, or text that defines which cells will be counted. For example, criteria can be expressed as 32, "32", ">32", "apples".
'--------------------------- SUMIF Adds the cells specified by a given criteria. Syntax SUMIF(range,criteria,sum_range) Range is the range of cells you want evaluated. Criteria is the criteria in the form of a number, expression, or text that defines which cells will be added. For example, criteria can be expressed as 32, "32", ">32", "apples".
Sum_range are the actual cells to sum.
@+
-----Message d'origine----- Bonjour
Tu peux regarder du côté de SUMIF()
@+ Jessy Sempere - Access MVP
------------------------------------ Site @ccess : http://access.jessy.free.fr/ Pour l'efficacité de tous : http://users.skynet.be/mpfa/ ------------------------------------ "Guillaume" a écrit dans le message news:
#
Bonjour a tous,
Comemnt faire pour écrire la fonction Nb.Si d'excel dans VBA
Voila le code
Private Sub CommandButton1_Click() Dim maPlage As Range Set maPlage = Worksheets("Vente Produits Février 2004").Range("A64:A6000")
Ca marche pas... Pourquoi? Quelqu'un peut m'aider?
Merci Et bon Week End!! lol
Guillaume
.
Bonjour Guillaume,
toto = Application.CountIf(Range("A20:A300"), "zaza")
ChrisV
"Guillaume" <ggaufroy@free.fr> a écrit dans le message de news:
O0G7Yv69DHA.2308@TK2MSFTNGP09.phx.gbl...
Heu merci...
Donc en gros ca fait
toto = countif("A20:A300", "zaza")
Car ca marche po chez moi...
Désolé
Guillaume
"Modeste" <gee-dee-@discussions.microsoft.com> a écrit dans le message de
news: 12f1f01c3f7aa$4a2781f0$a101280a@phx.gbl...
;-)))
tsss.....tssss...
plutot :
COUNTIF
Counts the number of cells within a range that meet the
given criteria.
Syntax
COUNTIF(range,criteria)
Range : is the range of cells from which you want to
count cells.
Criteria : is the criteria in the form of a number,
expression, or text that defines which cells will be
counted. For example, criteria can be expressed as
32, "32", ">32", "apples".
'---------------------------
SUMIF
Adds the cells specified by a given criteria.
Syntax
SUMIF(range,criteria,sum_range)
Range is the range of cells you want evaluated.
Criteria is the criteria in the form of a number,
expression, or text that defines which cells will be
added. For example, criteria can be expressed as
32, "32", ">32", "apples".
Sum_range are the actual cells to sum.
@+
-----Message d'origine-----
Bonjour
Tu peux regarder du côté de SUMIF()
@+
Jessy Sempere - Access MVP
news@access.fr.vu
------------------------------------
Site @ccess : http://access.jessy.free.fr/
Pour l'efficacité de tous :
http://users.skynet.be/mpfa/
------------------------------------
"Guillaume" <ggaufroy@free.fr> a écrit dans le message
news:
#NiQmT69DHA.888@tk2msftngp13.phx.gbl...
Bonjour a tous,
Comemnt faire pour écrire la fonction Nb.Si d'excel
dans VBA
Voila le code
Private Sub CommandButton1_Click()
Dim maPlage As Range
Set maPlage = Worksheets("Vente Produits Février
2004").Range("A64:A6000")
toto = Application.CountIf(Range("A20:A300"), "zaza")
ChrisV
"Guillaume" a écrit dans le message de news:
Heu merci...
Donc en gros ca fait
toto = countif("A20:A300", "zaza")
Car ca marche po chez moi...
Désolé
Guillaume
"Modeste" a écrit dans le message de news: 12f1f01c3f7aa$4a2781f0$ ;-))) tsss.....tssss... plutot :
COUNTIF Counts the number of cells within a range that meet the given criteria. Syntax COUNTIF(range,criteria) Range : is the range of cells from which you want to count cells. Criteria : is the criteria in the form of a number, expression, or text that defines which cells will be counted. For example, criteria can be expressed as 32, "32", ">32", "apples".
'--------------------------- SUMIF Adds the cells specified by a given criteria. Syntax SUMIF(range,criteria,sum_range) Range is the range of cells you want evaluated. Criteria is the criteria in the form of a number, expression, or text that defines which cells will be added. For example, criteria can be expressed as 32, "32", ">32", "apples".
Sum_range are the actual cells to sum.
@+
-----Message d'origine----- Bonjour
Tu peux regarder du côté de SUMIF()
@+ Jessy Sempere - Access MVP
------------------------------------ Site @ccess : http://access.jessy.free.fr/ Pour l'efficacité de tous : http://users.skynet.be/mpfa/ ------------------------------------ "Guillaume" a écrit dans le message news:
#
Bonjour a tous,
Comemnt faire pour écrire la fonction Nb.Si d'excel dans VBA
Voila le code
Private Sub CommandButton1_Click() Dim maPlage As Range Set maPlage = Worksheets("Vente Produits Février 2004").Range("A64:A6000")