using nested If AND function?

Mr Dean

New Member
Joined
Jun 28, 2019
Messages
6
I am trying to create a formulae where the following table is true and the output as provided. Tried usin the nested if function but can not seem to make sense. Table will probably be 100 rows long and could have any combinations of numbers in them. Basically though if there is a recorded Critical regardless of other values it must always be sad, if there are and major or minor but no critical it must be neutral and if there are any minor but no major or critical it must be happy.

Thanks in advance

CriticalMajorminoroutput
Any value >=1Any value >=0Any value >=0sad
value =0Any value >=1Any value >=0neutral
value =0Any value >=0Any value >=1happy
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Maybe

=IF(A2,"Sad",IF(AND(B2<=0,C2),"Happy","Neutral"))

1594214436209.png
 
Upvote 0
How about
=IF(A2>=1,"Sad",IF(B2>=1,"Neutral","Happy"))
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,551
Messages
6,120,159
Members
448,948
Latest member
spamiki

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