[Solved] LOOKUP in LO Calc

Discuss the spreadsheet application
Post Reply
spriha
Posts: 2
Joined: Tue Feb 20, 2024 10:31 am

[Solved] LOOKUP in LO Calc

Post by spriha »

This post was automatically translated into English.
Hello everyone,
I have the following problem with -REFERENCE-.
I would like to use LOOKUP to transfer a number from a sorted list to another list. A name is entered in the second list that is not present in the first list.
That's why there should be a zero or an empty cell for this name in the second list.
See attached file.
The letter F is missing in the table (A1:B12) = List 1. From here the reference to column E should be transferred to the names in column D. The letter F appears in the second list.
There should be a zero or an empty cell in the cell (column E).
I hope that someone can help me with this.

Appendix is ​​included.

Thank you spriha
Attachments
Vereinswertung.ods
(11.19 KiB) Downloaded 51 times
Last edited by MrProgrammer on Tue Feb 20, 2024 5:11 pm, edited 1 time in total.
Reason: Tagged ✓ [Solved] -- MrProgrammer, forum moderator
LibreOffice 7.5.9.2 on WIN 10
User avatar
karolus
Volunteer
Posts: 1160
Joined: Sat Jul 02, 2011 9:47 am

Re: LOOKUP in LO Calc

Post by karolus »

Hallo
Start in E1 with:

Code: Select all

=WENNNV(SVERWEIS(D1;$A$1:$B$13;2;0);0)
# en
=IFNA(VLOOKUP(D1;$A$1:$B$13;2;0);0)
and pull down
AOO4, Libreoffice 6.1 on Rasbian OS (on ARM)
Libreoffice 7.4 on Debian 12 (Bookworm) (on RaspberryPI4)
Libreoffice 7.6 flatpak on Debian 12 (Bookworm) (on RaspberryPI4)
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: LOOKUP in LO Calc

Post by Villeroy »

LOOKUP in LO Calc
It's the same LOOKUP function since the very first version of Visicalc in the year 1979 and successive spreadsheet applications such as Lotus 1-2-3, Excel and Calc. LOOKUP never did what most users expect it to do.
In your specific example =CODE(D1)-43 returns a correct result without any lookup table.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
spriha
Posts: 2
Joined: Tue Feb 20, 2024 10:31 am

Re: LOOKUP in LO Calc

Post by spriha »

Thanks for the quick help

spriha
LibreOffice 7.5.9.2 on WIN 10
Post Reply