Check if cell is blank with additional criteria

mart_mrexcel

Active Member
Joined
Aug 23, 2008
Messages
310
Office Version
  1. 365
Platform
  1. Windows
I was trying to put an indicator message as "Product Expired with No Date▼" in the above heading of date with 2 criteria, that is Expired as "Yes" and Date is blank, using the below formula and it does not work. In below, the message indicator should appear since Prd-001 is Yes and the date if blank.

ABCDE
1=IF(AND(COUNTIF(B3:B5,"="&"Yes"),isblank(C3:C5)),"Product Expired with No Date▼","")
2Product CodeExpired?Date
3Prd-001Yes
4Prd-002
5Prd-003YesJanuary 30, 2024
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Try:
Excel Formula:
=IF(COUNTIFS(B3:B5,"Yes",C3:C5,"<>")>0,"Product Expired with No Date▼","")
 
Upvote 0
I would have thought the other way around.

Book2
ABCDE
1Product Expired with No Date▼ <---- Formula
2ProductExpiredDate
3Prd-001Yes
4Prd-002
5Prd-003Yes28/04/2024
Sheet1
Cell Formulas
RangeFormula
D1D1=IF(COUNTIFS(B3:B5,"Yes",C3:C5,"")>0,"Product Expired with No Date▼","")
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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