Concatenate error/problem

B

blommerse

Hi All,

Who can help me with this problem>>??
I have to concatenate 5 items (and between all items an ", " (comma)),
which I let lookup from a list containing 24 rows.
This is what I'm using:
=CONCATENATE((VLOOKUP(B28,I30:N54,6,0)),",
",(VLOOKUP(B32,I30:N54,6,0)),", ",(VLOOKUP(B36,I30:N54,6,0)),",
",(VLOOKUP(B40,I30:N54,6,0)),", ",(VLOOKUP(B44,I30:N54,6,0)),".")

In some cases my lookup value is empty...
Now I get a #N/A error
How can I do this right.
Example: If all my lookup value are filled I get this: 1000, 2000,
3000, 4000, 5000.
If 4 off my lookup value are filled I have to get this: 1000, 2000,
3000, 4000.

Please who can help me>?

Regards,

Berry
 
B

Bob Phillips

=SUBSTITUTE(IF(ISNA(VLOOKUP(B28,I30:N54,6,0)),"",VLOOKUP(B28,I30:N54,6,0)&",
"&
IF(ISNA(VLOOKUP(B32,I30:N54,6,0)),"",VLOOKUP(B32,I30:N54,6,0)&", ")&
IF(ISNA(VLOOKUP(B36,I30:N54,6,0)),"",VLOOKUP(B36,I30:N54,6,0)&", ")&
IF(ISNA(VLOOKUP(B40,I30:N54,6,0)),"",VLOOKUP(B40,I30:N54,6,0)&", ")&
IF(ISNA(VLOOKUP(B44,I30:N54,6,0)),"",VLOOKUP(B44,I30:N54,6,0)))&".",",
..",".")

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
B

Bob Phillips

Almost?

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 

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

Top