Excel if function - multiple clauses, one target cell

Elegia

New Member
Joined
May 12, 2010
Messages
10
Hi!

I am not very good at describing this problem, but I hope this clears it - and hopefully someone knows the answer! My problem is as follows:
I would like excel to check 3 cells, for instance:
x1: talent
x2: motivation
x3: innovation

Then I want excel to write something according to them in one cell, the cell Y. For instance:
if x1 > 10 write "got talent" then if x 2 > 20 "got motivation" then if x3 > 15 write "got innovation"
so the result could look like "got talent, got motivation, got innovation" all in one cell or simplu "got talent". It is easy to make excel write something in one cell, but how to make it evaluate multiple clauses (without AND function?).

Thanks in advance!
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Code:
=IF(A1="talent,","got talent","")&IF(A2="motivation","got motivation,","")&IF(A3="innovation","got innovation","")
 
Last edited:
Upvote 0
Maybe I could have been more clear about this:

lets say there are 10 things to consider and evaluate:
then the combinatory tree is quite huge for instance:
1 - - - - - 7 8 9 10
1 - 3 - - - - - - 10

therefore making a specific if/and clause for each specific case is not possible. It would be easier if the excel could just check does this meet the requirement: if not do not write anything, if it does then write something and do the same 10 (or x) times over in one cell.
 
Upvote 0
Understood. So has Sektor's suggestion done the job?
 
Last edited:
Upvote 0
Try a lookup

=LOOKUP(X1,{10,15,20},{"got talent","got innovation","got motivation"})
 
Upvote 0

Forum statistics

Threads
1,224,559
Messages
6,179,513
Members
452,921
Latest member
BBQKING

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top