if statements

  • Thread starter the richard and judy show
  • Start date
T

the richard and judy show

I want to enter one of two values in column A and one of two
(different) values in column B.

In column C I want Excel to compute a value for each of the 4 possible
combinations of values in columns A and B on a particular row.

Eg

if A1 = urgent and B1 = important, C1 = 'Q1'
if A1 = non-urgent and B1 = important, C2 = 'Q2'
 
S

Sam Wilson

in C1:

=IF(A1="Urgent",IF(B1="Important","Q1","Q3"),IF(B1="Important","Q2","Q4"))

(I've assumed Q4 is Non-urgent/Non-Important and Q4 is Urgent/Non-Importnant)
 
P

Pete_UK

What are the allowed values in A1 and in B1, and what are the outcomes
that you require? In your last example, should it be C1 = 'Q2' ?

Pete
 
T

the richard and judy show

in C1:

=IF(A1="Urgent",IF(B1="Important","Q1","Q3"),IF(B1="Important","Q2","Q4"))

(I've assumed Q4 is Non-urgent/Non-Important and Q4 is Urgent/Non-Importnant)

:
Perfect - thanks a ton.
 

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