PC Review


Reply
Thread Tools Rate Thread

CHOOSE & VLOOKUP; Weird Behavior

 
 
=?Utf-8?B?cnlndXk3Mjcy?=
Guest
Posts: n/a
 
      27th Jul 2007
I entered the following two functions (below) into my spreadsheeet and get
the results I expect, except if I enter "SELLER" or "TAX INSURANCE" into
B276. Does anyone have any thoughts as to why this could be?

=CHOOSE(MATCH(B276,{"BUYER";"SELLER";"TAX INSURANCE";"CONTINGENT
INSURANCE";"DEED REPLACEMENT";"CONTINGENT DEED REPLACEMENT"},1),"FIFTY-FIFTY")

=VLOOKUP(B276,A312:A319,1)


Cordially,
Ryan---
--
RyGuy
 
Reply With Quote
 
 
 
 
=?Utf-8?B?QmFyYiBSZWluaGFyZHQ=?=
Guest
Posts: n/a
 
      27th Jul 2007
I wonder if your array needs to be listed in alphabetical order.

"ryguy7272" wrote:

> I entered the following two functions (below) into my spreadsheeet and get
> the results I expect, except if I enter "SELLER" or "TAX INSURANCE" into
> B276. Does anyone have any thoughts as to why this could be?
>
> =CHOOSE(MATCH(B276,{"BUYER";"SELLER";"TAX INSURANCE";"CONTINGENT
> INSURANCE";"DEED REPLACEMENT";"CONTINGENT DEED REPLACEMENT"},1),"FIFTY-FIFTY")
>
> =VLOOKUP(B276,A312:A319,1)
>
>
> Cordially,
> Ryan---
> --
> RyGuy

 
Reply With Quote
 
Ken
Guest
Posts: n/a
 
      27th Jul 2007
ry

The MATCH function of B276 in your listed array returns 1 for
everything except for SELLER and TAX INSURANCE, so the CHOOSE function
works, and selects "FIFTY-FIFTY" since it is the only option. For
SELLER and TAX INSURANCE, the MATCH function evaluates to 2 and 3
respectively, causing an error since you only have one items in your
list to choose from. Putting the array in alphabetic order may fix
the VLOOKUP function, but, CHOOSE/MATCH combo function will give an
error for everything other than BUYER, since everything else will
cause the MATCH function to return a number greater than 1 and
therefore give an #VALUE since you only list one option from which to
choose. It is easy to see why your formula does not work, but, it is
not clear enough what you wanted it to do to help you fix it.

Good luck.

Ken
Norfolk, Va

On Jul 27, 2:30 pm, Barb Reinhardt
<BarbReinha...@discussions.microsoft.com> wrote:
> I wonder if your array needs to be listed in alphabetical order.
>
>
>
> "ryguy7272" wrote:
> > I entered the following two functions (below) into my spreadsheeet and get
> > the results I expect, except if I enter "SELLER" or "TAX INSURANCE" into
> > B276. Does anyone have any thoughts as to why this could be?

>
> > =CHOOSE(MATCH(B276,{"BUYER";"SELLER";"TAX INSURANCE";"CONTINGENT
> > INSURANCE";"DEED REPLACEMENT";"CONTINGENT DEED REPLACEMENT"},1),"FIFTY-FIFTY")

>
> > =VLOOKUP(B276,A312:A319,1)

>
> > Cordially,
> > Ryan---
> > --
> > RyGuy- Hide quoted text -

>
> - Show quoted text -



 
Reply With Quote
 
=?Utf-8?B?cnlndXk3Mjcy?=
Guest
Posts: n/a
 
      27th Jul 2007
I eliminated one of the items (which turned out to be superfluous) and went
with a five-condition-if-function. It is clunky, but works. Thanks for the
assistance Barb and Ken. Ken, I will look at your comments more closely
tonight.

Regards,
Ryan---


--
RyGuy


"Ken" wrote:

> ry
>
> The MATCH function of B276 in your listed array returns 1 for
> everything except for SELLER and TAX INSURANCE, so the CHOOSE function
> works, and selects "FIFTY-FIFTY" since it is the only option. For
> SELLER and TAX INSURANCE, the MATCH function evaluates to 2 and 3
> respectively, causing an error since you only have one items in your
> list to choose from. Putting the array in alphabetic order may fix
> the VLOOKUP function, but, CHOOSE/MATCH combo function will give an
> error for everything other than BUYER, since everything else will
> cause the MATCH function to return a number greater than 1 and
> therefore give an #VALUE since you only list one option from which to
> choose. It is easy to see why your formula does not work, but, it is
> not clear enough what you wanted it to do to help you fix it.
>
> Good luck.
>
> Ken
> Norfolk, Va
>
> On Jul 27, 2:30 pm, Barb Reinhardt
> <BarbReinha...@discussions.microsoft.com> wrote:
> > I wonder if your array needs to be listed in alphabetical order.
> >
> >
> >
> > "ryguy7272" wrote:
> > > I entered the following two functions (below) into my spreadsheeet and get
> > > the results I expect, except if I enter "SELLER" or "TAX INSURANCE" into
> > > B276. Does anyone have any thoughts as to why this could be?

> >
> > > =CHOOSE(MATCH(B276,{"BUYER";"SELLER";"TAX INSURANCE";"CONTINGENT
> > > INSURANCE";"DEED REPLACEMENT";"CONTINGENT DEED REPLACEMENT"},1),"FIFTY-FIFTY")

> >
> > > =VLOOKUP(B276,A312:A319,1)

> >
> > > Cordially,
> > > Ryan---
> > > --
> > > RyGuy- Hide quoted text -

> >
> > - Show quoted text -

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird Behavior JimS Microsoft Excel Discussion 0 15th Dec 2008 09:33 AM
Weird behavior of VLOOKUP =?Utf-8?B?Sm9obiBTaW1vbnM=?= Microsoft Excel Programming 2 30th Apr 2005 02:21 AM
weird behavior lukasz Microsoft C# .NET 0 13th Dec 2004 01:18 PM
Weird behavior Paul Microsoft Access Forms 1 30th Sep 2004 08:59 PM
Weird behavior... Newbie1 Microsoft Outlook 1 1st Apr 2004 04:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:23 AM.