Trying to return multiple "values" in one cell based on suffixes in multiple cells

Mw911

New Member
Joined
Nov 1, 2013
Messages
15
Hi all,

This is a bit of a mind bender (to me). The title may not seem so coherent either.

I've got something sorted like below:

..| A | B | C | D |
1 |AB | AC | AD | AB -
AC -
AD -

Then in another sheet I have a table of what the values are like below:
AB | Means this
AC | Means that
AD | Means etc

At the minute I've got three Vlookup formulas in cell "D" which looks at cells A & B & C and then returns their respective values from the second sheet.

However, it seems that once one of these columns is empty and for instance I only have something in A1 then it returns an N/A error =/

I'm just wondering if there was an easier way to go about this?

Really appreciate any help!

Kind regards,
MW
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Please post your formulas. You can wrap a VLOOKUP in IFERROR to suppress #N/A, eg:

=IFERROR(VLOOKUP(A1,B:C,2,FALSE),"")
 
Upvote 0
Apologies,

The formula I have is as follows:
=IFERROR(VLOOKUP(M4,Suffix,2,FALSE),"")&IF(ISNA(VLOOKUP(M4,Suffix,2,FALSE)),"",",
"&VLOOKUP(N4,Suffix,2,FALSE))&IF(OR(ISNA(VLOOKUP(M4,Suffix,2,FALSE)),ISNA(VLOOKUP(N4,Suffix,2,FALSE))),"","")
 
Upvote 0
Andrew, it seems that if I drastically cut down my formula to just IFERROR(Vlookup(1)) & " "&IFERROR(Vlookup(2)) it seems to work great! However, I was just wondering if there were an easier way to do this considering I will have 9 different columns to v lookup?
 
Upvote 0
Ah, that's unfortunate! Hopefully I don't reach the limit for just multiplying this formula out fo each of the other columns..

Thanks for your help!
 
Upvote 0

Forum statistics

Threads
1,214,421
Messages
6,119,392
Members
448,891
Latest member
tpierce

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top