#1   Report Post  
Posted to microsoft.public.excel.misc
KS KS is offline
external usenet poster
 
Posts: 33
Default Multiple Conditions

Hi all -
Hoping someone can help he

Columns A and B contain either a Y or N value; C contains a dollar amount
I want to write the Value of C into either of 2 new columns, say D and E

In all cases if A = N then D and E = "N/A"
If A = Y and B = N, then D = dollar amount from C
If A = Y and B = Y, then E = dollar amount from C

Thanks for any assistance!



  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default Multiple Conditions

Hi,
assuming information starts in row 1 try


In column D enter
=if(A1="N","N/A",if(and(A="Y",B="N"),C1,"")

In column E enter

=if(A1="N","N/A",if(and(A="Y",B="N"),"",C1)

"KS" wrote:

Hi all -
Hoping someone can help he

Columns A and B contain either a Y or N value; C contains a dollar amount
I want to write the Value of C into either of 2 new columns, say D and E

In all cases if A = N then D and E = "N/A"
If A = Y and B = N, then D = dollar amount from C
If A = Y and B = Y, then E = dollar amount from C

Thanks for any assistance!



  #3   Report Post  
Posted to microsoft.public.excel.misc
KS KS is offline
external usenet poster
 
Posts: 33
Default Multiple Conditions

Hi
Thank you for your help -

Unfortunately, that did not work - returns #NAME?


"KS" wrote:

Hi all -
Hoping someone can help he

Columns A and B contain either a Y or N value; C contains a dollar amount
I want to write the Value of C into either of 2 new columns, say D and E

In all cases if A = N then D and E = "N/A"
If A = Y and B = N, then D = dollar amount from C
If A = Y and B = Y, then E = dollar amount from C

Thanks for any assistance!



  #4   Report Post  
Posted to microsoft.public.excel.misc
KS KS is offline
external usenet poster
 
Posts: 33
Default Multiple Conditions

Wait!
Yes - it did work - row reference missing and added back in, I didn't notice
at first:

=IF(A1="N","N/A",IF(AND(A1="Y",B1="N"),C1,""))

Many Thanks

"Eduardo" wrote:

Hi,
assuming information starts in row 1 try


In column D enter
=if(A1="N","N/A",if(and(A="Y",B="N"),C1,"")

In column E enter

=if(A1="N","N/A",if(and(A="Y",B="N"),"",C1)

"KS" wrote:

Hi all -
Hoping someone can help he

Columns A and B contain either a Y or N value; C contains a dollar amount
I want to write the Value of C into either of 2 new columns, say D and E

In all cases if A = N then D and E = "N/A"
If A = Y and B = N, then D = dollar amount from C
If A = Y and B = Y, then E = dollar amount from C

Thanks for any assistance!



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default Multiple Conditions

Hi,
It didn't work in both columns??
check you don't have any space in front of the N or the Y

if this was helpful please say yes

"KS" wrote:

Hi
Thank you for your help -

Unfortunately, that did not work - returns #NAME?


"KS" wrote:

Hi all -
Hoping someone can help he

Columns A and B contain either a Y or N value; C contains a dollar amount
I want to write the Value of C into either of 2 new columns, say D and E

In all cases if A = N then D and E = "N/A"
If A = Y and B = N, then D = dollar amount from C
If A = Y and B = Y, then E = dollar amount from C

Thanks for any assistance!





  #6   Report Post  
Posted to microsoft.public.excel.misc
KS KS is offline
external usenet poster
 
Posts: 33
Default Multiple Conditions

Helpful = YES!!! Very. Many thanks

"Eduardo" wrote:

Hi,
It didn't work in both columns??
check you don't have any space in front of the N or the Y

if this was helpful please say yes

"KS" wrote:

Hi
Thank you for your help -

Unfortunately, that did not work - returns #NAME?


"KS" wrote:

Hi all -
Hoping someone can help he

Columns A and B contain either a Y or N value; C contains a dollar amount
I want to write the Value of C into either of 2 new columns, say D and E

In all cases if A = N then D and E = "N/A"
If A = Y and B = N, then D = dollar amount from C
If A = Y and B = Y, then E = dollar amount from C

Thanks for any assistance!



  #7   Report Post  
Posted to microsoft.public.excel.misc
KS KS is offline
external usenet poster
 
Posts: 33
Default Multiple Conditions

I have another:

Column N contains numeric values (page counts)
I need to add the sum of N under 2 conditions:

1) Total of N for all records where A= Y and B= Y
2) Total of N for all records where A= Y and B= N

These 2 totals will reside in two diff cells - doesn't matter where, say M1
and M2 respectively.





"Eduardo" wrote:

Hi,
It didn't work in both columns??
check you don't have any space in front of the N or the Y

if this was helpful please say yes

"KS" wrote:

Hi
Thank you for your help -

Unfortunately, that did not work - returns #NAME?


"KS" wrote:

Hi all -
Hoping someone can help he

Columns A and B contain either a Y or N value; C contains a dollar amount
I want to write the Value of C into either of 2 new columns, say D and E

In all cases if A = N then D and E = "N/A"
If A = Y and B = N, then D = dollar amount from C
If A = Y and B = Y, then E = dollar amount from C

Thanks for any assistance!



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default Multiple Conditions

Hi
In M1 enter
=SUMPRODUCT(--(A:A="Y"),--(B:B="N"),N:N)

in M2 enter

=SUMPRODUCT(--(A:A="Y"),--(B:B="y"),N:N)

is this was helpful please click on yes in the left corner of the post.
thank you

"KS" wrote:

I have another:

Column N contains numeric values (page counts)
I need to add the sum of N under 2 conditions:

1) Total of N for all records where A= Y and B= Y
2) Total of N for all records where A= Y and B= N

These 2 totals will reside in two diff cells - doesn't matter where, say M1
and M2 respectively.





"Eduardo" wrote:

Hi,
It didn't work in both columns??
check you don't have any space in front of the N or the Y

if this was helpful please say yes

"KS" wrote:

Hi
Thank you for your help -

Unfortunately, that did not work - returns #NAME?


"KS" wrote:

Hi all -
Hoping someone can help he

Columns A and B contain either a Y or N value; C contains a dollar amount
I want to write the Value of C into either of 2 new columns, say D and E

In all cases if A = N then D and E = "N/A"
If A = Y and B = N, then D = dollar amount from C
If A = Y and B = Y, then E = dollar amount from C

Thanks for any assistance!



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
SUMPRODUCT or INDEX/MATCH for multiple conditions and multiple rec TravisB Excel Discussion (Misc queries) 21 March 16th 07 09:49 PM
How do I add multiple values that match multiple conditions? Joel Excel Discussion (Misc queries) 5 April 10th 06 01:32 PM
Multiple conditions and multiple return values Minerva Excel Worksheet Functions 3 February 16th 06 06:57 AM
Combining Text from multiple cells under multiple conditions KNS Excel Worksheet Functions 2 June 15th 05 11:00 PM
How to multiple conditions to validate more than 2 conditions to . Bhuvana Govind Excel Worksheet Functions 1 January 28th 05 07:07 PM


All times are GMT +1. The time now is 01:18 PM.

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"