IF and AND

kumara_faith

Well-known Member
Joined
Aug 19, 2006
Messages
618
Office Version
  1. 365
Hi,

I have the following:

If there is any number for Outstanding and there is no Reason, I need a message to populate that says "Alert!!Reason for Outstanding!!. I did the following formula but it does not seems to work. If there is outstanding and the reason column has been filled, then no message should populate. Appreciate any help:

Excel Workbook
BCD
2OutstandingReasonMessage
32Flight DelayAlert!!Provide Reason !!
Sheet1
 

Some videos you may like

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

mikerickson

MrExcel MVP
Joined
Jan 15, 2007
Messages
23,910
Try this.

Code:
=IF(AND(B3>0,COUNTA(C3)=0),"Alert!!Provide Reason !!","")
 

kumara_faith

Well-known Member
Joined
Aug 19, 2006
Messages
618
Office Version
  1. 365
Hi mikerickson,

That worked. Thank you for your time and patience.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,653
Messages
5,597,377
Members
414,141
Latest member
Joey_T92

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