using nested If AND function?

Mr Dean

New Member
Joined
Jun 28, 2019
Messages
5
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
 

Some videos you may like

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

gaz_chops

Well-known Member
Joined
Apr 29, 2003
Messages
6,468
Platform
  1. MacOS
Maybe

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

1594214436209.png
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,412
Office Version
  1. 365
Platform
  1. Windows
How about
=IF(A2>=1,"Sad",IF(B2>=1,"Neutral","Happy"))
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
55,412
Office Version
  1. 365
Platform
  1. Windows
Glad we could help & thanks for the feedback.
 

Watch MrExcel Video

Forum statistics

Threads
1,127,331
Messages
5,624,063
Members
416,010
Latest member
NJT

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
Top