Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 130
Default Ron and/or Excelent replies on combining and/or

Thanks for the quick response but Im not getting the correct result

{=AND(OR(G59=K59:N59),OR(H59=K59:N59),1,0)}

The value still comes up false yet the result should prove true. G59 is the
first cell.

7431 478641 FALSE

I was given six numbers and then was given 4. I need to represent a 1 if
both of the first two numbers in the four number group ( 7 and 4 ) are found
in the first four numbers ( 4,7,8,6 ) of the six number group ( 478641).

Thanks again!


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Ron and/or Excelent replies on combining and/or

On Sat, 14 Oct 2006 16:36:02 -0700, Shu of AZ
wrote:

Thanks for the quick response but Im not getting the correct result

{=AND(OR(G59=K59:N59),OR(H59=K59:N59),1,0)}


Since you've changed more in the formula than the cell references, I'm not
surprised you're not getting correct results.

See previous responses when you were not entering it as an array formula.


The value still comes up false yet the result should prove true. G59 is the
first cell.

7431 478641 FALSE

I was given six numbers and then was given 4. I need to represent a 1 if
both of the first two numbers in the four number group ( 7 and 4 ) are found
in the first four numbers ( 4,7,8,6 ) of the six number group ( 478641).

Thanks again!




--ron
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 130
Default Ron and/or Excelent replies on combining and/or

It works with 2 or 3 OR statements but when I try 4 it results in FALSE. Do
you see anything wrong with it?

g h i j k l m n p

59 7 4 3 1 7 4 3 1 FALSE

{=AND(OR(G59=K59:N59),OR(H59=K59:N59),OR(I59=K59:N 59),OR(J59=K59:N59))}


"Ron Rosenfeld" wrote:

On Sat, 14 Oct 2006 16:36:02 -0700, Shu of AZ
wrote:

Thanks for the quick response but Im not getting the correct result

{=AND(OR(G59=K59:N59),OR(H59=K59:N59),1,0)}


Since you've changed more in the formula than the cell references, I'm not
surprised you're not getting correct results.

See previous responses when you were not entering it as an array formula.


The value still comes up false yet the result should prove true. G59 is the
first cell.

7431 478641 FALSE

I was given six numbers and then was given 4. I need to represent a 1 if
both of the first two numbers in the four number group ( 7 and 4 ) are found
in the first four numbers ( 4,7,8,6 ) of the six number group ( 478641).

Thanks again!




--ron

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 130
Default Ron and/or Excelent replies on combining and/or

Just as a note: the braces were there, they do not copy and paste. The 1,0
addition was advice to how to make the cell turn to a 1. I just
conditionally set it to turn red instead.

"Ron Rosenfeld" wrote:

On Sat, 14 Oct 2006 16:36:02 -0700, Shu of AZ
wrote:

Thanks for the quick response but Im not getting the correct result

{=AND(OR(G59=K59:N59),OR(H59=K59:N59),1,0)}


Since you've changed more in the formula than the cell references, I'm not
surprised you're not getting correct results.

See previous responses when you were not entering it as an array formula.


The value still comes up false yet the result should prove true. G59 is the
first cell.

7431 478641 FALSE

I was given six numbers and then was given 4. I need to represent a 1 if
both of the first two numbers in the four number group ( 7 and 4 ) are found
in the first four numbers ( 4,7,8,6 ) of the six number group ( 478641).

Thanks again!




--ron

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Ron and/or Excelent replies on combining and/or

On Sat, 14 Oct 2006 18:27:02 -0700, Shu of AZ
wrote:

It works with 2 or 3 OR statements but when I try 4 it results in FALSE. Do
you see anything wrong with it?

g h i j k l m n p

59 7 4 3 1 7 4 3 1 FALSE

=AND(OR(G59=K59:N59),OR(H59=K59:N59),OR(I59=K59:N 59),OR(J59=K59:N59))



I pasted your data into G59:N59

I copied your formula and pasted it into a cell, entering with <ctrl<shift

I got a result of TRUE.

As I wrote before, the most likely problem is with your data. One or more of
your values are TEXT and not NUMBERS.

Check them with ISTEXT.

In G60 enter the formula: =ISTEXT(G59)

Then copy/drag across to N60 and see if any return TRUE.


--ron


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Ron and/or Excelent replies on combining and/or

On Sat, 14 Oct 2006 18:28:02 -0700, Shu of AZ
wrote:

Just as a note: the braces were there, they do not copy and paste. The 1,0
addition was advice to how to make the cell turn to a 1. I just
conditionally set it to turn red instead.


The 1,0 addition cannot possibly do that. =AND(1,0) will always return FALSE,
no matter how many other conditions are present.


--ron
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 695
Default Ron and/or Excelent replies on combining and/or


xxxx-xxxx
{=IF(OR(G59=K59:N59,H59=K59:N59),1,0)}
{=IF(OR(--G59=--K59:N59,--H59=--K59:N59),1,0)} * use this if any textvalues

xxxx-xxxxxx
{=IF(OR(G59=K59:P59,H59=K59:P59),1,0)}
{=IF(OR(--G59=--K59:P59,--H59=--K59:P59),1,0)} * use this if any textvalues



"Shu of AZ" skrev:

Thanks for the quick response but Im not getting the correct result

{=AND(OR(G59=K59:N59),OR(H59=K59:N59),1,0)}

The value still comes up false yet the result should prove true. G59 is the
first cell.

7431 478641 FALSE

I was given six numbers and then was given 4. I need to represent a 1 if
both of the first two numbers in the four number group ( 7 and 4 ) are found
in the first four numbers ( 4,7,8,6 ) of the six number group ( 478641).

Thanks again!


  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 130
Default Ron and/or Excelent replies on combining and/or

Incorrect result for both types of formulas- all are numbers and not text.
Do you see anything wrong. Ron's results in the wrong answer if the numbers
are moved around ( see bottom example ).
Testing of the formulas by rearranging the numbers proved incorrect on both
formulas.
The oddest is that as you change numbers in the four number set, the result
will remain the same, give you an incorrect result, or change with only one
number being added that is in the entire six set.

It seems to work on the intial test but as you are changing the four set,
things start happening that result in an incorrect result.

(Excelent formula) Gave a 1 when the four set was 4,5,6,7 but remained a 1 when the new set came in as 1,2,7,4


g h i j k l m n o p q

60 1 2 7 4 4 5 6 7 8 2 1

q60 content - {=IF(OR(G60=K60:P60,H60=K60:P60),1,0)}


(Ron's formula) Gave a TRUE at first with 7,4,2,1 but as the numbers came in rearranged in the four set, it went to false.


g h i j k l m n o p q

59 1 2 4 7 7 4 2 1 8 2 FALSE

q59 content - {=AND(OR(G59=K59:N59),OR(H59=K59:N59),OR(I59=K59:N 59),OR(J59=K59:N59))}







"excelent" wrote:


xxxx-xxxx
{=IF(OR(G59=K59:N59,H59=K59:N59),1,0)}
{=IF(OR(--G59=--K59:N59,--H59=--K59:N59),1,0)} * use this if any textvalues

xxxx-xxxxxx
{=IF(OR(G59=K59:P59,H59=K59:P59),1,0)}
{=IF(OR(--G59=--K59:P59,--H59=--K59:P59),1,0)} * use this if any textvalues



"Shu of AZ" skrev:

Thanks for the quick response but Im not getting the correct result

{=AND(OR(G59=K59:N59),OR(H59=K59:N59),1,0)}

The value still comes up false yet the result should prove true. G59 is the
first cell.

7431 478641 FALSE

I was given six numbers and then was given 4. I need to represent a 1 if
both of the first two numbers in the four number group ( 7 and 4 ) are found
in the first four numbers ( 4,7,8,6 ) of the six number group ( 478641).

Thanks again!


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
Can excel have a button to input (stamp) the systems date and/or . abe Excel Worksheet Functions 5 April 24th 07 10:00 PM
Combining data from two columns PCLIVE Excel Discussion (Misc queries) 0 August 2nd 06 08:10 PM
VBA to concatenate Text and/or Numbers and/or dates etc [email protected] Excel Discussion (Misc queries) 2 July 25th 06 02:46 AM
Combining AND/OR in an IF statement dread Excel Worksheet Functions 4 July 20th 06 06:05 PM


All times are GMT +1. The time now is 07:59 AM.

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

About Us

"It's about Microsoft Excel"