OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

LookUp Returns Data Though there's no Corresponding Data

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
Kerry Lange
Newbie
Newbie


Joined: 30 May 2005
Posts: 1

PostPosted: Mon May 30, 2005 1:21 pm    Post subject: LookUp Returns Data Though there's no Corresponding Data Reply with quote

I've got two spreadsheets each with a customer list and data for their account--amounts paid, taxes applied, and so on. I'll call the spreadsheets "spreadsheet 1" and "spreadsheet 2".

I use the LookUp function,setup in spreadsheet 1, to search spreadsheet 2 for account numbers. The LookUp function first looks in spreadsheet 1 for the account number it's supposed to find in spreadsheet 2. When it finds the corresponding account number, it returns the amount paid from spreadsheet 2.

However, there are always a few customers on spreadsheet 1 that don't appear on spreadsheet 2. Yet, even for the account numbers that don't appear in spreadsheet 2 the LookUp function returns values. Shouldn't it be returning an error or a zero?
Back to top
View user's profile Send private message
JohnV
Administrator
Administrator


Joined: 07 Mar 2003
Posts: 9183
Location: Lexinton, Kentucky, USA

PostPosted: Mon May 30, 2005 2:46 pm    Post subject: Reply with quote

See "Sort order" from the following from Help on VLOOKUP.

Syntax
=VLOOKUP(Search criterion;array;index;sort order)
Search criterion is the value searched for in the first column of the array.

array is the reference, which is to comprise at least two columns.

index is the number of the column in the array that contains the value to be returned. The first column has the number 1.

Sort order is an optional parameter that indicates whether the first column in the array is sorted in ascending order. Enter the Boolean value FALSE if the first column is not sorted in ascending order. Sorted columns can be searched much faster and the function always returns a value, even if the search value was not matched exactly, if it is between the lowest and highest value of the sorted list. In unsorted lists, the search value must be matched exactly. Otherwise the function will return this message: Error: Value Not Available.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group