I'm using Excel 2010 on Windows XP. I wish that I could upload the document, but unfortunately it uses lots of sensitive data. Due to the nature of my position, I cannot upload any files from my computer so making a general document and uploading it isn't possible either.
Below is a copy of the function that is in use. It works, it searchs through multiple columns of data on another tab and displays all of it within one cell. The problem is that I ended up with at least one set of commas if any of the referenced fields don't have data. I'm just trying to have Excel return the data in a way that doesn't return the commas and space for an empty field.
I found a possible solution here: [URL]http://www.mrexcel.com/forum/excel-questions/603509-multiple-vlookups-one-formula.html#post2990069[/URL].
I'm having a small bit of difficulty in understanding how the solution works and how I should apply it to the above code. Could someone help me please?
I use this function to return the type of access a user may need based upon their role. It saves a lot of time to do it this way since I'm copying the data from Excel to other programs. Some users have multiple roles or other variables that will make their access unique from someone in a similar position (which is why I just don't make separate lists for each role and copy them).
Below is a copy of the function that is in use. It works, it searchs through multiple columns of data on another tab and displays all of it within one cell. The problem is that I ended up with at least one set of commas if any of the referenced fields don't have data. I'm just trying to have Excel return the data in a way that doesn't return the commas and space for an empty field.
Code:
=VLOOKUP(B24,ADATA!$A$2:$AE$20,21)&", "&VLOOKUP(B24,ADATA!$A$2:$AE$20,22)&", "&VLOOKUP(B24,ADATA!$A$2:$AE$20,23)&", "&VLOOKUP(B24,ADATA!$A$2:$AE$20,24)&", "&VLOOKUP(B24,ADATA!$A$2:$AE$20,25)&", "&VLOOKUP(B24,ADATA!$A$2:$AE$20,26)&", "&VLOOKUP(B24,ADATA!$A$2:$AE$20,27)&", "&VLOOKUP(B24,ADATA!$A$2:$AE$20,28)&", "&VLOOKUP(B24,ADATA!$A$2:$AE$20,29)&", "&VLOOKUP(B24,ADATA!$A$2:$AE$20,30)&", "&VLOOKUP(B24,ADATA!$A$2:$AE$20,31)
I found a possible solution here: [URL]http://www.mrexcel.com/forum/excel-questions/603509-multiple-vlookups-one-formula.html#post2990069[/URL].
I'm having a small bit of difficulty in understanding how the solution works and how I should apply it to the above code. Could someone help me please?
I use this function to return the type of access a user may need based upon their role. It saves a lot of time to do it this way since I'm copying the data from Excel to other programs. Some users have multiple roles or other variables that will make their access unique from someone in a similar position (which is why I just don't make separate lists for each role and copy them).
Last edited: