Associer 2 recherchV avec &

bonjour

je souhaite associer le 2 rechercheV dans une cellule , les 2 recherches fonctionnent bien séparément mais quand j'utilise & pour les associer j'ai faux comme résultat.

merci pour votre aide par avance.

With Cells(ligne2, 2)
  .Formula = "=IFERROR(VLOOKUP(R[-1]C[-1],'inscription'!R5C1:R605C6,4,FALSE),"""")" & " - " & .Formula = "=IFERROR(VLOOKUP(R[-1]C[-1],'inscription'!R5C1:R605C6,6,FALSE),"""")"
   .Value = .Value
   End With

Bonjour

A tester

  With Cells(Ligne2, 2)
    .Formula = "=IFERROR(VLOOKUP(R[-1]C[-1],'inscription'!R5C1:R605C6,4,FALSE),"""")&IFERROR(VLOOKUP(R[-1]C[-1],'inscription'!R5C1:R605C6,6,FALSE),"""")"
    .Value = .Value
  End With

bonsoir Banzai64

ok ça fonctionne mais je veux un espace ou un blanc entre les 2 résultats c'est pour cela que j'avais essayé recherchv1 & " " & recherchv2 et dans ce cas là ça ne fonctionne pas

cordialement

Philippe

Bonsoir

A tester

 With Cells(Ligne2, 2)
    .Formula = "=IFERROR(VLOOKUP(R[-1]C[-1],'inscription'!R5C1:R605C6,4,FALSE),"""")&"" ""& IFERROR(VLOOKUP(R[-1]C[-1],'inscription'!R5C1:R605C6,6,FALSE),"""")"
    .Value = .Value
  End With

Banzai64 c'est ok pour moi

par contre j'ai un autre problème dans le même genre sauf que c'est devant la recherchev je veux N° un espace recherchv

With Cells(Ligne2, 2)

   "N°" & "" "" & .Formula = "=IFERROR(VLOOKUP(R[-1]C[-1],'inscription'!R5C1:R605C6,4,FALSE),"""")"
    .Value = .Value
  End With

cordialement

Bonsoir

Ce n'est pas tout à fait ça

  With Cells(Ligne2, 2)
    .Formula = "=""N° "" & IFERROR(VLOOKUP(R[-1]C[-1],'inscription'!R5C1:R605C6,4,FALSE),"""")"
    .Value = .Value
  End With

bonjour Banzai64

merci pour ton aide, j'ai bien le résultat attendu

philippe87

Rechercher des sujets similaires à "associer recherchv"