Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

supprimer #N/A résultat d'une formule matricielle

5 réponses
Avatar
Sunburn
bonjour,
j'ai cette formule matricielle:
{=fusion(Liste_GA10;Liste_GA11;Liste_GA12;Liste_GA13)}

mon problème, c'est que à certains endroits (à la fin, là il n'y a plus de
données), il me met 0, puis il me met #N/A......
le problème, c'est que ça m'empeche des calculs par la suite...
comment y remedier ???
merci.
YANN

5 réponses

Avatar
Merguez07
je connais pas la fonction fusion. c'est une fonction personnelle ? si oui
un petit ci-joint serait le bienvenu


"Sunburn" a écrit dans le message de
groupe de discussion :
bonjour,
j'ai cette formule matricielle:
{=fusion(Liste_GA10;Liste_GA11;Liste_GA12;Liste_GA13)}

mon problème, c'est que à certains endroits (à la fin, là il n'y a plus de
données), il me met 0, puis il me met #N/A......
le problème, c'est que ça m'empeche des calculs par la suite...
comment y remedier ???
merci.
YANN


Avatar
Sunburn
ah oui, dsl
http://cjoint.com/?bBpDcaJHH7
------
Function Fusion(champ1, champ2, champ3, champ4)
Dim temp2()
Set mondico1 = CreateObject("Scripting.Dictionary")
For Each C In champ1
If C <> "" Then
If Not mondico1.Exists(C.Value) Then mondico1.Add C.Value, C.Value
End If
Next C
For Each C In champ2
If C <> "" Then
If Not mondico1.Exists(C.Value) Then mondico1.Add C.Value, C.Value
End If
Next C
For Each C In champ3
If C <> "" Then
If Not mondico1.Exists(C.Value) Then mondico1.Add C.Value, C.Value
End If
Next C
For Each C In champ4
If C <> "" Then
If Not mondico1.Exists(C.Value) Then mondico1.Add C.Value, C.Value
End If
Next C
temp = mondico1.items
Call tri(temp, LBound(temp), UBound(temp))
ReDim temp2(1 To champ1.Count + champ2.Count + champ3.Count + champ4.Count)
I = 1
For Each C In temp
temp2(I) = C
I = I + 1
Next
Fusion = Application.Transpose(temp2)
End Function
Sub tri(a, gauc, droi) ' Quick sort
ref = a((gauc + droi) 2)
g = gauc: d = droi
Do
Do While a(g) < ref: g = g + 1: Loop
Do While ref < a(d): d = d - 1: Loop
If g <= d Then
temp = a(g): a(g) = a(d): a(d) = temp
g = g + 1: d = d - 1
End If
Loop While g <= d
If g < droi Then Call tri(a, g, droi)
If gauc < d Then Call tri(a, gauc, d)
End Sub
------
Avatar
JB
http://cjoint.com/?bBtTN3iz3T

JB

On 25 jan, 18:50, Sunburn wrote:
bonjour,
j'ai cette formule matricielle:
{=fusion(Liste_GA10;Liste_GA11;Liste_GA12;Liste_GA13)}

mon problème, c'est que à certains endroits (à la fin, là il n'y a plus de
données), il me met 0, puis il me met #N/A......
le problème, c'est que ça m'empeche des calculs par la suite...
comment y remedier ???
merci.
YANN


Avatar
Sunburn
Merci beaucoup JB, c'est nikel.
YANN

"JB" a écrit :


http://cjoint.com/?bBtTN3iz3T

JB

On 25 jan, 18:50, Sunburn wrote:
> bonjour,
> j'ai cette formule matricielle:
> {=fusion(Liste_GA10;Liste_GA11;Liste_GA12;Liste_GA13)}
>
> mon problème, c'est que à certains endroits (à la fin, là il n'y a plus de
> données), il me met 0, puis il me met #N/A......
> le problème, c'est que ça m'empeche des calculs par la suite...
> comment y remedier ???
> merci.
> YANN




Avatar
Philippe.R
Bonsoir,
As tu essayé avec ce qui suit ?

{=si(estna(fusion(Liste_GA10;Liste_GA11;Liste_GA12;Liste_GA13));0;fusion(Liste_GA10;Liste_GA11;Liste_GA12;Liste_GA13))}
--
Avec plaisir
http://dj.joss.free.fr/trombine.htm
http://jacxl.free.fr/mpfe/trombino.html
Philippe.R
Pour se connecter au forum :
http://www.excelabo.net/mpfe/connexion.php
News://news.microsoft.com/microsoft.public.fr.excel
"Sunburn" a écrit dans le message de
news:
bonjour,
j'ai cette formule matricielle:
{=fusion(Liste_GA10;Liste_GA11;Liste_GA12;Liste_GA13)}

mon problème, c'est que à certains endroits (à la fin, là il n'y a plus de
données), il me met 0, puis il me met #N/A......
le problème, c'est que ça m'empeche des calculs par la suite...
comment y remedier ???
merci.
YANN