IF and AND

kumara_faith

Well-known Member
Joined
Aug 19, 2006
Messages
775
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
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

mikerickson

MrExcel MVP
Joined
Jan 15, 2007
Messages
24,208
Try this.

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

kumara_faith

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

That worked. Thank you for your time and patience.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,863
Messages
5,834,051
Members
430,259
Latest member
msthiagu

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