Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Applications / Excel / March 2008



Tip: Looking for answers? Try searching our database.

VLOOKUP question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
SHood@officeformac.com - 27 Mar 2008 19:25 GMT
Version: v.X
Operating System: Mac OS X 10.5 (Leopard)
Processor: Power PC

OK, I'm back on this NCAA sheet thing now that I'm using the COUNTIF function. Thanks

Now this pool gives points for picking upsets based on each team's seeding. No problem in the first round but more of a problem in rounds after that.

So I created a table for each grouping listing all the teams that could possibly meet in the next game and each teams seeding within that group and had excel calculate the bonus points for each.

So this list has the team name in one column and the points in the column beside it. Then I've used the VLOOKUP function to return the points if any.

My formula looks like

=VLOOKUP(F110,V110:W112,2)

where F110 is the actual winner and V110:W112 is the list and 2 is the column value to be returned.

I've got 16 VLOOKUP's and 16 lists for round 2. 14 of the VLOOKUP's work but for some reason 2 of the VLOOKUP's return the wrong value.

I checked to be certain that the team names were exactly the same in the bracket and in the list.

I read that there is a TRUE or FALSE argument, that is not required, telling what to do if a match were not found. So I added "FALSE" to those formulas and it returned the correct bonus point value, (in this case 0).

My questions are

What could be the difference between the functions that work and those that don't ?

Why would adding FALSE cause the function to return a zero ? The book says if it can't find a match FALSE will return #N/A.

Thanks
JE McGimpsey - 31 Mar 2008 12:52 GMT
> My formula looks like
>
[quoted text clipped - 20 lines]
> Why would adding FALSE cause the function to return a zero ? The book says if
> it can't find a match FALSE will return #N/A.

If the range_lookup argument is set to TRUE, VLOOKUP assumes that the
first column of the list is sorted, and will return the first value
"less than or equal to" the lookup value, which for strings, means it
finds the lookup value or the value just before one that would sort
alphabetically after the lookup value. So with

     A              B
1     aardvarks      1
2     bluejays       3
3     cheetahs       2
4     dingos         7
5     zebras         8

then

  =VLOOKUP("foxes",A1:B5,2,TRUE)

will return 7, since dingos sorts before foxes, and zebras sorts after.

Conversely

  =VLOOKUP("foxes",A1:B5,2,FALSE)

will return #N/A, since "foxes" is not found in the list.
SHood@officeformac.com - 31 Mar 2008 17:47 GMT
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.