Multiple Conditions

K

KS

Hi all -
Hoping someone can help here:

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!
 
E

Eduardo

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)
 
E

Eduardo

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
 
K

KS

Helpful = YES!!! Very. Many thanks

Eduardo said:
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
 
K

KS

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.
 
E

Eduardo

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top