Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 40
Default Logical Functions

Hi,
If I have a certain cell with text in it that I am hard coding as Female or
Male, and I want the next cell down to automatically state the opposite sex
than that cell, what logical function would I use?

Thanks,
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Logical Functions

In A2:

=IF(A1="Male","Female",IF(A1="Female","Male",""))

HTH,
Paul

"Eden397" wrote in message
...
Hi,
If I have a certain cell with text in it that I am hard coding as Female
or
Male, and I want the next cell down to automatically state the opposite
sex
than that cell, what logical function would I use?

Thanks,



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Logical Functions

if you place Male or Female in C1
in C2 enter
=if(C1="Male",Female","Male")
and copy down as far as you need

"Eden397" wrote:

Hi,
If I have a certain cell with text in it that I am hard coding as Female or
Male, and I want the next cell down to automatically state the opposite sex
than that cell, what logical function would I use?

Thanks,

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Logical Functions

bj,

Your formula is missing a Quote before Female. Anyway, to keep the cell
from populating when nothing is in the cell above, an additional statement
is needed. Where A1 is the cell to enter Male or Female:

=IF(A1="","",IF(A1="Female","Male",""))

Regards,
Paul


"bj" wrote in message
...
if you place Male or Female in C1
in C2 enter
=if(C1="Male",Female","Male")
and copy down as far as you need

"Eden397" wrote:

Hi,
If I have a certain cell with text in it that I am hard coding as Female
or
Male, and I want the next cell down to automatically state the opposite
sex
than that cell, what logical function would I use?

Thanks,



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 40
Default Logical Functions



"PCLIVE" wrote:

In A2:

=IF(A1="Male","Female",IF(A1="Female","Male",""))

HTH,
Paul

"Eden397" wrote in message
...
Hi,
If I have a certain cell with text in it that I am hard coding as Female
or
Male, and I want the next cell down to automatically state the opposite
sex
than that cell, what logical function would I use?

Thanks,



Thank you very much. This actually helped me clear up nesting issues.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Logical Functions

Example if certain cell is A1:
In A2, formula is:
=IF(A1="Male";"Female";IF(A1="Female";"Male";""))
(If A1 is not "Male" or "Female" then the cell will not display anything
with the above formula.)

Kind regards,
Erny

"Eden397" schrieb im Newsbeitrag
...
Hi,
If I have a certain cell with text in it that I am hard coding as Female
or
Male, and I want the next cell down to automatically state the opposite
sex
than that cell, what logical function would I use?

Thanks,



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Logical Functions

Did you try your formula? You've written it using semi-colons (;) instead
of commas (,).

Anyway, the formula is cleaner if you test for blank first.
=IF(A1="","",IF(A1="Female","Male","Female"))

Regards,
Paul



"Erny" wrote in message
...
Example if certain cell is A1:
In A2, formula is:
=IF(A1="Male";"Female";IF(A1="Female";"Male";""))
(If A1 is not "Male" or "Female" then the cell will not display anything
with the above formula.)

Kind regards,
Erny

"Eden397" schrieb im Newsbeitrag
...
Hi,
If I have a certain cell with text in it that I am hard coding as Female
or
Male, and I want the next cell down to automatically state the opposite
sex
than that cell, what logical function would I use?

Thanks,





  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 40
Default Logical Functions

Thanks, I got it to work and it cleared up my issues. But it lead me to one
other question....Here is my formula:
=IF(Combo_4_000664!C11="All","1",IF(Combo_4_000664 !C11="quota","0",IF(Combo_4_000664!C11="222","1")) )

but I am getting a "FALSE" when I enter 222 in my linked spreadsheet. I
believe it's because I am already using a "1" for my All case, so does anyone
know how to rewrite this to clean it up. I really appreciate this help,
everyone.

"PCLIVE" wrote:

Did you try your formula? You've written it using semi-colons (;) instead
of commas (,).

Anyway, the formula is cleaner if you test for blank first.
=IF(A1="","",IF(A1="Female","Male","Female"))

Regards,
Paul



"Erny" wrote in message
...
Example if certain cell is A1:
In A2, formula is:
=IF(A1="Male";"Female";IF(A1="Female";"Male";""))
(If A1 is not "Male" or "Female" then the cell will not display anything
with the above formula.)

Kind regards,
Erny

"Eden397" schrieb im Newsbeitrag
...
Hi,
If I have a certain cell with text in it that I am hard coding as Female
or
Male, and I want the next cell down to automatically state the opposite
sex
than that cell, what logical function would I use?

Thanks,






  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Logical Functions

Remove the quotes from "222".

=IF(Combo_4_000664!C11="All","1",IF(Combo_4_000664 !C11="quota","0",IF(Combo_4_000664!C11=222,"1")))

Will C11 ever be Blank? If so, what do you want displayed? If you want it
to be blank, then:
=IF(Combo_4_000664!C11="All","1",IF(Combo_4_000664 !C11="quota","0",IF(Combo_4_000664!C11=222,"1","") ))

Regards,
Paul

"Eden397" wrote in message
...
Thanks, I got it to work and it cleared up my issues. But it lead me to
one
other question....Here is my formula:
=IF(Combo_4_000664!C11="All","1",IF(Combo_4_000664 !C11="quota","0",IF(Combo_4_000664!C11="222","1")) )

but I am getting a "FALSE" when I enter 222 in my linked spreadsheet. I
believe it's because I am already using a "1" for my All case, so does
anyone
know how to rewrite this to clean it up. I really appreciate this help,
everyone.

"PCLIVE" wrote:

Did you try your formula? You've written it using semi-colons (;)
instead
of commas (,).

Anyway, the formula is cleaner if you test for blank first.
=IF(A1="","",IF(A1="Female","Male","Female"))

Regards,
Paul



"Erny" wrote in message
...
Example if certain cell is A1:
In A2, formula is:
=IF(A1="Male";"Female";IF(A1="Female";"Male";""))
(If A1 is not "Male" or "Female" then the cell will not display
anything
with the above formula.)

Kind regards,
Erny

"Eden397" schrieb im Newsbeitrag
...
Hi,
If I have a certain cell with text in it that I am hard coding as
Female
or
Male, and I want the next cell down to automatically state the
opposite
sex
than that cell, what logical function would I use?

Thanks,







  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 40
Default Logical Functions

Thanks, that worked. Are numbers not suppose to have quotations? Also, I
would like to have the cell blank if nothing is entered.

"PCLIVE" wrote:

Remove the quotes from "222".

=IF(Combo_4_000664!C11="All","1",IF(Combo_4_000664 !C11="quota","0",IF(Combo_4_000664!C11=222,"1")))

Will C11 ever be Blank? If so, what do you want displayed? If you want it
to be blank, then:
=IF(Combo_4_000664!C11="All","1",IF(Combo_4_000664 !C11="quota","0",IF(Combo_4_000664!C11=222,"1","") ))

Regards,
Paul

"Eden397" wrote in message
...
Thanks, I got it to work and it cleared up my issues. But it lead me to
one
other question....Here is my formula:
=IF(Combo_4_000664!C11="All","1",IF(Combo_4_000664 !C11="quota","0",IF(Combo_4_000664!C11="222","1")) )

but I am getting a "FALSE" when I enter 222 in my linked spreadsheet. I
believe it's because I am already using a "1" for my All case, so does
anyone
know how to rewrite this to clean it up. I really appreciate this help,
everyone.

"PCLIVE" wrote:

Did you try your formula? You've written it using semi-colons (;)
instead
of commas (,).

Anyway, the formula is cleaner if you test for blank first.
=IF(A1="","",IF(A1="Female","Male","Female"))

Regards,
Paul



"Erny" wrote in message
...
Example if certain cell is A1:
In A2, formula is:
=IF(A1="Male";"Female";IF(A1="Female";"Male";""))
(If A1 is not "Male" or "Female" then the cell will not display
anything
with the above formula.)

Kind regards,
Erny

"Eden397" schrieb im Newsbeitrag
...
Hi,
If I have a certain cell with text in it that I am hard coding as
Female
or
Male, and I want the next cell down to automatically state the
opposite
sex
than that cell, what logical function would I use?

Thanks,










  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Logical Functions

If C11 was formatted as Text, then it would work. However, if it is in the
default format of General, then 222 will be seen as a number and "222" with
quotes will not match since the quotation markes make it a text string. Try
this simpler formula below. The "All" and 222 have been combined into an OR
statement since the result will be the same.

=IF(OR(Combo_4_000664!C11="All",(Combo_4_000664!C1 1=222)),"1",IF(Combo_4_000664!C11="quota","0",""))

HTH,
Paul


"Eden397" wrote in message
...
Thanks, that worked. Are numbers not suppose to have quotations? Also, I
would like to have the cell blank if nothing is entered.

"PCLIVE" wrote:

Remove the quotes from "222".

=IF(Combo_4_000664!C11="All","1",IF(Combo_4_000664 !C11="quota","0",IF(Combo_4_000664!C11=222,"1")))

Will C11 ever be Blank? If so, what do you want displayed? If you want
it
to be blank, then:
=IF(Combo_4_000664!C11="All","1",IF(Combo_4_000664 !C11="quota","0",IF(Combo_4_000664!C11=222,"1","") ))

Regards,
Paul

"Eden397" wrote in message
...
Thanks, I got it to work and it cleared up my issues. But it lead me
to
one
other question....Here is my formula:
=IF(Combo_4_000664!C11="All","1",IF(Combo_4_000664 !C11="quota","0",IF(Combo_4_000664!C11="222","1")) )

but I am getting a "FALSE" when I enter 222 in my linked spreadsheet.
I
believe it's because I am already using a "1" for my All case, so does
anyone
know how to rewrite this to clean it up. I really appreciate this
help,
everyone.

"PCLIVE" wrote:

Did you try your formula? You've written it using semi-colons (;)
instead
of commas (,).

Anyway, the formula is cleaner if you test for blank first.
=IF(A1="","",IF(A1="Female","Male","Female"))

Regards,
Paul



"Erny" wrote in
message
...
Example if certain cell is A1:
In A2, formula is:
=IF(A1="Male";"Female";IF(A1="Female";"Male";""))
(If A1 is not "Male" or "Female" then the cell will not display
anything
with the above formula.)

Kind regards,
Erny

"Eden397" schrieb im Newsbeitrag
...
Hi,
If I have a certain cell with text in it that I am hard coding as
Female
or
Male, and I want the next cell down to automatically state the
opposite
sex
than that cell, what logical function would I use?

Thanks,










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
logical functions Ali Akbar Excel Worksheet Functions 3 February 11th 07 08:00 PM
VLOOKUP and logical functions Margherita Excel Worksheet Functions 5 August 21st 06 03:47 PM
using logical functions civilized_engr Excel Worksheet Functions 3 June 10th 06 05:41 PM
logical functions wiz546 Excel Worksheet Functions 1 February 1st 05 09:42 AM
logical functions wiz546 Excel Worksheet Functions 1 February 1st 05 03:02 AM


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