Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 130
Default Array gives wrong answer

in an adjacent cell i'm attempting to indicate whether or not any of the
first four numbers in H,G,I and J, are present in either K, N, O, or P and
indicate that by displaying a 1. The formual now indicates True by
displaying a 1 yet the formual should indicate False by representing a 0. Is
it the use of commas between the cell designations that is causing this? If
so, what is the character I should be using. It works well with the use of a
: to represent a range but once I add in one lone cell such as the K4, it
does not work. Any ideas?


H G I J K L M N O P
Row4 7 9 3 1 7 3 3 3 3 1

{=--AND(OR(G4=K4,L4,O4,P4),OR(H4=K4,L4,O4,P4),OR(I4=K4 ,L4,O4,P4),OR(J4=K4,L4,O4,P4))}
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Array gives wrong answer

It's not an array formula

=--(OR(OR(G4=K4,G4=L4,G4=O4,G4=P4),OR(H4=K4,H4=L4,H4= O4,H4=P4),OR(I4=K4,I4=L
4,I4=O4),OR(I4=P4,J4=K4,J4=L4,J4=O4,J4=P4)))

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Shu of AZ" wrote in message
...
in an adjacent cell i'm attempting to indicate whether or not any of the
first four numbers in H,G,I and J, are present in either K, N, O, or P and
indicate that by displaying a 1. The formual now indicates True by
displaying a 1 yet the formual should indicate False by representing a 0.

Is
it the use of commas between the cell designations that is causing this?

If
so, what is the character I should be using. It works well with the use

of a
: to represent a range but once I add in one lone cell such as the K4, it
does not work. Any ideas?


H G I J K L M N O P
Row4 7 9 3 1 7 3 3 3 3 1


{=--AND(OR(G4=K4,L4,O4,P4),OR(H4=K4,L4,O4,P4),OR(I4=K4 ,L4,O4,P4),OR(J4=K4,L4
,O4,P4))}


Reply
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
defintion of array function R..VENKATARAMAN Excel Discussion (Misc queries) 2 April 21st 06 03:21 AM
Compound array question - what am I doing wrong? Daesthai Excel Worksheet Functions 4 October 13th 05 02:35 PM
What's wrong with my array formula M.Siler Excel Discussion (Misc queries) 4 May 27th 05 09:19 PM
Logic statement returns wrong answer. Tony Excel Worksheet Functions 2 December 2nd 04 05:07 AM
VBA Import of text file & Array parsing of that data Dennis Excel Discussion (Misc queries) 4 November 28th 04 10:20 PM


All times are GMT +1. The time now is 12:03 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"