Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Excel VLOOKUP function cannot return newline characters

Please look at this gif.

enter image description here

The function call is =VLOOKUP(A1, A1:B1, 2, FALSE).

I want:

1. b
2. c

but got:

1. b2. c

the newline character loosed.

like image 824
robothy Avatar asked Mar 24 '26 11:03

robothy


1 Answers

You have used the correct formula. However, excel just shows that in one line. click on the cell and do "wrap text". Then it will show them in two lines.Check this image for reference

Also check this link where there is a similar issue: https://www.excelforum.com/excel-formulas-and-functions/649990-vlookup-preserve-carriage-return-alt-enter.html

like image 83
Sreekar Swarnapuri Avatar answered Mar 26 '26 09:03

Sreekar Swarnapuri



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!