LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default CHOOSE & VLOOKUP; Weird Behavior

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
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 -




 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird Links Behavior Jon Oakdale Links and Linking in Excel 5 November 13th 08 08:44 AM
Weird Do...Until behavior... IT_roofer Excel Programming 0 May 23rd 07 06:34 PM
weird macro behavior Dave F Excel Discussion (Misc queries) 0 November 30th 06 03:35 PM
Weird Sorting Behavior Jim Thomlinson[_3_] Excel Programming 1 May 4th 05 04:42 AM
Weird behavior of VLOOKUP John Simons Excel Programming 2 April 30th 05 02:21 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"