[Solved] VLOOKUP() does not reconize text with parenthesis

Discuss the spreadsheet application

[Solved] VLOOKUP() does not reconize text with parenthesis

Postby Ferdski » Fri Nov 06, 2009 11:35 am

why does vlookup returns text with parenthesis as #N/A... is there a fix on this? I use many parenthesis on text references.
Last edited by Ferdski on Wed Nov 11, 2009 9:22 am, edited 1 time in total.
OpenOffice 3.1
Windows Vista
Ferdski
 
Posts: 18
Joined: Thu Nov 05, 2009 2:03 pm

Re: vlookup does not reconize text with parenthesis

Postby Villeroy » Fri Nov 06, 2009 2:50 pm

Turn off regular expression in the options. Each option in "menu:Tools>Options...Calc>Calculate" is stored with the current document only.
Please, edit this thread's initial post and add "[Solved]" to the subject line if your problem has been solved.
OOo 3.1.1 on XUbuntu 9.04
User avatar
Villeroy
Moderator
 
Posts: 6558
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: vlookup does not reconize text with parenthesis

Postby Ferdski » Sat Nov 07, 2009 12:37 pm

Thank you for the answer... Is there any other option than turning off the regular expression? because in the same document I use wild card references which needs the regular expressions enabled.
OpenOffice 3.1
Windows Vista
Ferdski
 
Posts: 18
Joined: Thu Nov 05, 2009 2:03 pm

Re: vlookup does not reconize text with parenthesis

Postby Robert Tucker » Sat Nov 07, 2009 2:07 pm

Have you tried preceding the parenthesis with a backslash \ in the formula as Villeroy wrote in the other thread. (Sorry, I didn't point this out there – I wasn't sure whether back-references were available in Calc or used in formulas.)
OOo 3.1.1 on Fedora 12 + Windows 7 (Dual boot)
Robert Tucker
Volunteer
 
Posts: 377
Joined: Mon Oct 08, 2007 1:34 am
Location: Manchester UK

Re: vlookup does not reconize text with parenthesis

Postby Ferdski » Tue Nov 10, 2009 10:18 am

Could not use the backslash \ for the formula as seen on the attached image.

It seems that the only option is to remove the parentheses which are in thousands :( .

Is there any other option?
Attachments
Drawing1.jpg
OpenOffice 3.1
Windows Vista
Ferdski
 
Posts: 18
Joined: Thu Nov 05, 2009 2:03 pm

Re: vlookup does not reconize text with parenthesis

Postby Robert Tucker » Tue Nov 10, 2009 10:42 am

Are you not able to disable both regular expressions and "Operators = and <> match whole cell" as suggested in the other thread (when, of course, there's no need for the backslashes)?
OOo 3.1.1 on Fedora 12 + Windows 7 (Dual boot)
Robert Tucker
Volunteer
 
Posts: 377
Joined: Mon Oct 08, 2007 1:34 am
Location: Manchester UK

Re: vlookup does not reconize text with parenthesis

Postby Ferdski » Tue Nov 10, 2009 11:22 am

Robert Tucker wrote:Are you not able to disable both regular expressions and "Operators = and <> match whole cell" as suggested in the other thread (when, of course, there's no need for the backslashes)?


Yes able to do that but then the sumif will come out blank as seen on the first picture.
OpenOffice 3.1
Windows Vista
Ferdski
 
Posts: 18
Joined: Thu Nov 05, 2009 2:03 pm

Re: vlookup does not reconize text with parenthesis

Postby Robert Tucker » Tue Nov 10, 2009 11:28 am

Ferdski wrote:but then the sumif will come out blank as seen on the first picture.

Not if you use:

=SUMIF(B1:B9;"Subtotal";D1:D9)

(With "Operators = and <> match whole cell" unchecked, you can just match to the part of the text string in the cell you are interested in, without wildcards)

sumif.jpg
vlookup.jpg
OOo 3.1.1 on Fedora 12 + Windows 7 (Dual boot)
Robert Tucker
Volunteer
 
Posts: 377
Joined: Mon Oct 08, 2007 1:34 am
Location: Manchester UK

Re: vlookup does not reconize text with parenthesis

Postby Ferdski » Tue Nov 10, 2009 12:17 pm

Robert Tucker wrote:
Ferdski wrote:but then the sumif will come out blank as seen on the first picture.

Not if you use:

=SUMIF(B1:B9;"Subtotal";D1:D9)

(With "Operators = and <> match whole cell" unchecked, you can just match to the part of the text string in the cell you are interested in, without wildcards)

sumif.jpg
vlookup.jpg


It resulted to Err:510...
OpenOffice 3.1
Windows Vista
Ferdski
 
Posts: 18
Joined: Thu Nov 05, 2009 2:03 pm

Re: vlookup does not reconize text with parenthesis

Postby Robert Tucker » Tue Nov 10, 2009 12:24 pm

Can you paste out the formula you used? Obviously in the example you gave previously there is no problem.
OOo 3.1.1 on Fedora 12 + Windows 7 (Dual boot)
Robert Tucker
Volunteer
 
Posts: 377
Joined: Mon Oct 08, 2007 1:34 am
Location: Manchester UK

Re: vlookup does not reconize text with parenthesis

Postby Ferdski » Tue Nov 10, 2009 12:59 pm

Robert Tucker wrote:Can you paste out the formula you used? Obviously in the example you gave previously there is no problem.


No need... I tried the formula on a simple grid and it works... I'm in a process of debugging and looking for the error on my 7000rows x 35column x 7 sheets spreadsheet
OpenOffice 3.1
Windows Vista
Ferdski
 
Posts: 18
Joined: Thu Nov 05, 2009 2:03 pm

Re: vlookup does not reconize text with parenthesis

Postby Ferdski » Tue Nov 10, 2009 1:11 pm

Now I have another problem... the vlookup does not give the exact reference which resulted to the error. It would display the amount with the same first word it encounters on the table. :cry:
OpenOffice 3.1
Windows Vista
Ferdski
 
Posts: 18
Joined: Thu Nov 05, 2009 2:03 pm

Re: vlookup does not reconize text with parenthesis

Postby Robert Tucker » Tue Nov 10, 2009 2:44 pm

Perhaps time to start a new thread with a little more clarification of the (new) problem.
OOo 3.1.1 on Fedora 12 + Windows 7 (Dual boot)
Robert Tucker
Volunteer
 
Posts: 377
Joined: Mon Oct 08, 2007 1:34 am
Location: Manchester UK

Re: vlookup does not reconize text with parenthesis

Postby Ferdski » Wed Nov 11, 2009 7:10 am

Yes your right... see new thread on multiple formula
OpenOffice 3.1
Windows Vista
Ferdski
 
Posts: 18
Joined: Thu Nov 05, 2009 2:03 pm


Return to Calc

Who is online

Users browsing this forum: Google [Bot], MSN [Bot] and 3 guests