A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Multi-Condition Formula



 
 
Thread Tools Display Modes
  #1  
Old June 1st, 2010, 12:58 PM posted to microsoft.public.excel.worksheet.functions
malcolm
external usenet poster
 
Posts: 106
Default Multi-Condition Formula

I’m using this formula;
=IF(OR(‘Source Sheet’!C10={“”,”C”, “B”}),’Source Sheet’!B10).
This allows what I enter into the source sheet to also enter into the
destination sheet unless, “C” or “B” are present and then nothing is entered
into the destination sheet. This only leaves two conditions that would allow
data entered into the source sheet to appear in the destination sheet. These
conditions are “S” and “D”. If “S” I would like to have any number entered in
the source sheet to appear in the destination sheet, but if the “D” condition
is entered in the source sheet, I would like the number 2 and only 2 to be
entered in the destination sheet. So, if I have not confused this too much,
my question is; is it possible to keep the initial two false conditions; “C”
and “B” in the formula and add the two true conditions “S” and “D”. I hope
that my explanation is not too confusing. I don’t have a good record of being
either clear or concise.
Thank you,
Malcolm

  #2  
Old June 1st, 2010, 01:15 PM posted to microsoft.public.excel.worksheet.functions
Bob Phillips[_3_]
external usenet poster
 
Posts: 489
Default Multi-Condition Formula

Do you mean

=IF(OR('Source Sheet'!C10={"","C","B"}),'Source Sheet'!B10,IF(OR('Source
Sheet'!C10={"","D","S"}),2,""))

--

HTH

Bob

"Malcolm" wrote in message
...
I'm using this formula;
=IF(OR('Source Sheet'!C10={"","C", "B"}),'Source Sheet'!B10).
This allows what I enter into the source sheet to also enter into the
destination sheet unless, "C" or "B" are present and then nothing is
entered
into the destination sheet. This only leaves two conditions that would
allow
data entered into the source sheet to appear in the destination sheet.
These
conditions are "S" and "D". If "S" I would like to have any number entered
in
the source sheet to appear in the destination sheet, but if the "D"
condition
is entered in the source sheet, I would like the number 2 and only 2 to be
entered in the destination sheet. So, if I have not confused this too
much,
my question is; is it possible to keep the initial two false conditions;
"C"
and "B" in the formula and add the two true conditions "S" and "D". I hope
that my explanation is not too confusing. I don't have a good record of
being
either clear or concise.
Thank you,
Malcolm



  #3  
Old June 1st, 2010, 01:39 PM posted to microsoft.public.excel.worksheet.functions
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default Multi-Condition Formula

Try

=IF(OR(C10={"","C","B"}),B10,IF(ISNUMBER(B10),IF(C 10="S",B10,
IF(AND(C10="D",B10=2),2,"")),""))

--
Jacob (MVP - Excel)


"Malcolm" wrote:

I’m using this formula;
=IF(OR(‘Source Sheet’!C10={“”,”C”, “B”}),’Source Sheet’!B10).
This allows what I enter into the source sheet to also enter into the
destination sheet unless, “C” or “B” are present and then nothing is entered
into the destination sheet. This only leaves two conditions that would allow
data entered into the source sheet to appear in the destination sheet. These
conditions are “S” and “D”. If “S” I would like to have any number entered in
the source sheet to appear in the destination sheet, but if the “D” condition
is entered in the source sheet, I would like the number 2 and only 2 to be
entered in the destination sheet. So, if I have not confused this too much,
my question is; is it possible to keep the initial two false conditions; “C”
and “B” in the formula and add the two true conditions “S” and “D”. I hope
that my explanation is not too confusing. I don’t have a good record of being
either clear or concise.
Thank you,
Malcolm

  #4  
Old June 1st, 2010, 04:08 PM posted to microsoft.public.excel.worksheet.functions
malcolm
external usenet poster
 
Posts: 106
Default Multi-Condition Formula

Jacob, Hi,
I entered your formula and it worked except for the last condition “D”. I
was not clear, but if the source sheet (End Bal) in cell C10 is “D” there is
no number in the source sheet (End Bal )C10. That is why I wanted to add the
2 to the destination sheet B10. So, does the “'End Bal'!B10=2) refer to the
source sheet? If so, there is no number there. If I am unclear please let me
know.

=IF(OR('End Bal'!C10={"","C","B"}),'End Bal'!B10,IF(ISNUMBER('End
Bal'!B10),IF('End Bal'!C10="S",'End Bal'!B10,IF(AND('End Bal'!C10="D",'End
Bal'!B10=2),2,"")),""))

Regards,
Malcolm


"Jacob Skaria" wrote:

Try

=IF(OR(C10={"","C","B"}),B10,IF(ISNUMBER(B10),IF(C 10="S",B10,
IF(AND(C10="D",B10=2),2,"")),""))

--
Jacob (MVP - Excel)


"Malcolm" wrote:

I’m using this formula;
=IF(OR(‘Source Sheet’!C10={“”,”C”, “B”}),’Source Sheet’!B10).
This allows what I enter into the source sheet to also enter into the
destination sheet unless, “C” or “B” are present and then nothing is entered
into the destination sheet. This only leaves two conditions that would allow
data entered into the source sheet to appear in the destination sheet. These
conditions are “S” and “D”. If “S” I would like to have any number entered in
the source sheet to appear in the destination sheet, but if the “D” condition
is entered in the source sheet, I would like the number 2 and only 2 to be
entered in the destination sheet. So, if I have not confused this too much,
my question is; is it possible to keep the initial two false conditions; “C”
and “B” in the formula and add the two true conditions “S” and “D”. I hope
that my explanation is not too confusing. I don’t have a good record of being
either clear or concise.
Thank you,
Malcolm

  #5  
Old June 2nd, 2010, 05:03 AM posted to microsoft.public.excel.worksheet.functions
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default Multi-Condition Formula

Hi Malcolm

From your statement "I would like the number 2 and only 2 to be entered in
the destination sheet." I thought the source sheet will have the value; but
you need that to be returned only if the value is 2...

If that is not the case; then try the below version

=IF(OR('End Bal'!C10={"","C","B"}),'End Bal'!B10,
IF(ISNUMBER('End Bal'!B10),IF('End Bal'!C10="S",'End al'!B10,
IF('End Bal'!C10="D",2,"")),""))

--
Jacob (MVP - Excel)


"Malcolm" wrote:

Jacob, Hi,
I entered your formula and it worked except for the last condition “D”. I
was not clear, but if the source sheet (End Bal) in cell C10 is “D” there is
no number in the source sheet (End Bal )C10. That is why I wanted to add the
2 to the destination sheet B10. So, does the “'End Bal'!B10=2) refer to the
source sheet? If so, there is no number there. If I am unclear please let me
know.

=IF(OR('End Bal'!C10={"","C","B"}),'End Bal'!B10,IF(ISNUMBER('End
Bal'!B10),IF('End Bal'!C10="S",'End Bal'!B10,IF(AND('End Bal'!C10="D",'End
Bal'!B10=2),2,"")),""))

Regards,
Malcolm


"Jacob Skaria" wrote:

Try

=IF(OR(C10={"","C","B"}),B10,IF(ISNUMBER(B10),IF(C 10="S",B10,
IF(AND(C10="D",B10=2),2,"")),""))

--
Jacob (MVP - Excel)


"Malcolm" wrote:

I’m using this formula;
=IF(OR(‘Source Sheet’!C10={“”,”C”, “B”}),’Source Sheet’!B10).
This allows what I enter into the source sheet to also enter into the
destination sheet unless, “C” or “B” are present and then nothing is entered
into the destination sheet. This only leaves two conditions that would allow
data entered into the source sheet to appear in the destination sheet. These
conditions are “S” and “D”. If “S” I would like to have any number entered in
the source sheet to appear in the destination sheet, but if the “D” condition
is entered in the source sheet, I would like the number 2 and only 2 to be
entered in the destination sheet. So, if I have not confused this too much,
my question is; is it possible to keep the initial two false conditions; “C”
and “B” in the formula and add the two true conditions “S” and “D”. I hope
that my explanation is not too confusing. I don’t have a good record of being
either clear or concise.
Thank you,
Malcolm

  #6  
Old June 2nd, 2010, 02:27 PM posted to microsoft.public.excel.worksheet.functions
malcolm
external usenet poster
 
Posts: 106
Default Multi-Condition Formula

Jacob, Hi,
My bad again. 'End Bal!'C10="D", 'End Bal'!B10 is an empty cell on the
source sheet. I want 'Close Bal'!C10="D" and 'Close Bal'B10=2 on the
destination sheet. Again my screwup led to to a formula based on my bad
information, my apologies.

Best Regards,
Malcolm

"Jacob Skaria" wrote:

Hi Malcolm

From your statement "I would like the number 2 and only 2 to be entered in
the destination sheet." I thought the source sheet will have the value; but
you need that to be returned only if the value is 2...

If that is not the case; then try the below version

=IF(OR('End Bal'!C10={"","C","B"}),'End Bal'!B10,
IF(ISNUMBER('End Bal'!B10),IF('End Bal'!C10="S",'End al'!B10,
IF('End Bal'!C10="D",2,"")),""))

--
Jacob (MVP - Excel)


"Malcolm" wrote:

Jacob, Hi,
I entered your formula and it worked except for the last condition “D”. I
was not clear, but if the source sheet (End Bal) in cell C10 is “D” there is
no number in the source sheet (End Bal )C10. That is why I wanted to add the
2 to the destination sheet B10. So, does the “'End Bal'!B10=2) refer to the
source sheet? If so, there is no number there. If I am unclear please let me
know.

=IF(OR('End Bal'!C10={"","C","B"}),'End Bal'!B10,IF(ISNUMBER('End
Bal'!B10),IF('End Bal'!C10="S",'End Bal'!B10,IF(AND('End Bal'!C10="D",'End
Bal'!B10=2),2,"")),""))

Regards,
Malcolm


"Jacob Skaria" wrote:

Try

=IF(OR(C10={"","C","B"}),B10,IF(ISNUMBER(B10),IF(C 10="S",B10,
IF(AND(C10="D",B10=2),2,"")),""))

--
Jacob (MVP - Excel)


"Malcolm" wrote:

I’m using this formula;
=IF(OR(‘Source Sheet’!C10={“”,”C”, “B”}),’Source Sheet’!B10).
This allows what I enter into the source sheet to also enter into the
destination sheet unless, “C” or “B” are present and then nothing is entered
into the destination sheet. This only leaves two conditions that would allow
data entered into the source sheet to appear in the destination sheet. These
conditions are “S” and “D”. If “S” I would like to have any number entered in
the source sheet to appear in the destination sheet, but if the “D” condition
is entered in the source sheet, I would like the number 2 and only 2 to be
entered in the destination sheet. So, if I have not confused this too much,
my question is; is it possible to keep the initial two false conditions; “C”
and “B” in the formula and add the two true conditions “S” and “D”. I hope
that my explanation is not too confusing. I don’t have a good record of being
either clear or concise.
Thank you,
Malcolm

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:19 PM.


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