POV-Ray : Newsgroups : povray.off-topic : Excel lookup() trouble : Re: Excel lookup() trouble Server Time
29 Sep 2024 23:24:46 EDT (-0400)
  Re: Excel lookup() trouble  
From: scott
Date: 26 Jan 2009 08:51:14
Message: <497dbfd2$1@news.povray.org>
>> The lookup() function only works if the list you are looking up in is 
>> sorted in ascending order.  By sorting the cells by column B, 
>> concatenate(a1:a9,b1:b9) is no longer is ascending order.
>
> The question is...why?  What use is something that looks things up that 
> requires you do its work for it first?

It's because lookup always returns a "closest match" result, even if it 
can't match exactly.

Use hlookup or vlookup instead, it lets you set a flag which will only 
return exact matches, then the list does not need to be ordered.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.