[Solved] VLOOKUP cannot find "A (low)" or "A (high)"

Discuss the spreadsheet application
Post Reply
ruub7
Posts: 2
Joined: Mon Dec 05, 2022 3:53 pm

[Solved] VLOOKUP cannot find "A (low)" or "A (high)"

Post by ruub7 »

Hello,

I am trying to convert selections from a dropdown menu (text) to a numerical value, so I can use this as input for calculations.

I don't know if this is the easiest or best way to do it, but I used a VLOOKUP function to try and convert the text from the dropdown menu to a value.
I thought this would be very simple, but it sometimes gives errors and sometimes it just completely returns the wrong value...

So I have made a simple version of the real file to show what the issue is.

Hopefully you'll be able to figure out what I am doing wrong...

 Edit: Changed subject, was VLOOKUP with dropdown menu 
Make your post understandable by others 
-- MrProgrammer, forum moderator 
Attachments
VLOOKUP Dropdown.ods
(11.57 KiB) Downloaded 94 times
Last edited by ruub7 on Mon Dec 05, 2022 6:58 pm, edited 1 time in total.
OpenOffice 4.1.13 on Windows 10
User avatar
MrProgrammer
Moderator
Posts: 5468
Joined: Fri Jun 04, 2010 7:57 pm
Location: Wisconsin, USA

Re: VLOOKUP with dropdown menu

Post by MrProgrammer »

Hi, and welcome to the forum. Thank you for the attachment.
ruub7 wrote: Mon Dec 05, 2022 4:00 pm it sometimes gives errors and sometimes it just completely returns the wrong value
[Tutorial] VLOOKUP questions and answers, especially Q6/A6

If this solved your problem please go to your first post use the Edit button and add [Solved] to the start of the Subject field. Select the green checkmark icon at the same time.

[Tutorial] Ten concepts that every Calc user should know
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.7.8, iMac Intel.   The locale for any menus or Calc formulas in my posts is English (USA).
ruub7
Posts: 2
Joined: Mon Dec 05, 2022 3:53 pm

Re: VLOOKUP with dropdown menu

Post by ruub7 »

Thanks, that solved the problem!

Silly question:
Why is this option automatically on, when it is an option that most users want/need to have disabled for their formula's to work properly according to that tutorial?
OpenOffice 4.1.13 on Windows 10
User avatar
karolus
Volunteer
Posts: 1252
Joined: Sat Jul 02, 2011 9:47 am

Re: [Solved] VLOOKUP with dropdown menu

Post by karolus »

Hallo

For what reason do you imply: "most users do not need this feature"?
Libreoffice 25.2… on Debian 13 (trixie) (on RaspberryPI5)
Libreoffice 25.8… flatpak on Debian 13 (trixie) (on RaspberryPI5)
User avatar
Villeroy
Volunteer
Posts: 31365
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: [Solved] VLOOKUP with dropdown menu

Post by Villeroy »

Most users don't know what it is and it is difficult to understand why search expressions fail when they include some special characters such as braces, plus sign and dots. LibreOffice turned it off by default. Anybody who still insists in using OpenOffice has to cope with weird defaults and missing functionality.
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
Post Reply