Vlookup

Closed
vishnugj Posts 8 Registration date Monday May 3, 2010 Status Member Last seen April 14, 2015 - Jun 15, 2010 at 11:07 PM
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Jun 16, 2010 at 03:59 AM
Hello,

I have provided a link of an excel file.

https://authentification.site/files/22981980/example_1.xls

In column V , comments column i need the data to be displayed as ,

example row 5 : very good , english : excellent, Maths : fair , chemistry : very good

when i copy paste column o roll Nos.

If the cells in the english, chemistry, maths column is balnk, i need only the comments from table A to be displayed in table, else if english, chemistry, maths column has some values , i need that to be displayed as in example row 5.

Can you please help me in this ?



1 response

rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 766
Jun 16, 2010 at 03:59 AM
One ugly way would be

=IF(ISERROR(VLOOKUP($O4,$A:$A,1,FALSE)),"",IF(VLOOKUP($O4,$A:$L,9,FALSE)="","",VLOOKUP($O4,$A:$L,9,FALSE)) & IF(VLOOKUP($O4,$A:$L,10,FALSE)="","", CHAR(10) &"English: " & VLOOKUP($O4,$A:$L,10,FALSE)) & IF(VLOOKUP($O4,$A:$L,11,FALSE)="","",CHAR(10) & "Maths: " & VLOOKUP($O4,$A:$L,11,FALSE)) & IF(VLOOKUP($O4,$A:$L,12,FALSE)="","", CHAR(10) & "Chemistry: " & VLOOKUP($O4,$A:$L,12,FALSE)) )

Dont forget to format the column to ensure that word wrapping is ON

Having said that. You are better off by using a formula based column to join all comments together and using that consolidated comments column in look up, You could use on a different sheet if you want or on a hidden column
0