Check if cell is blank with additional criteria

mart_mrexcel

Active Member
Joined
Aug 23, 2008
Messages
296
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

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
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,215,851
Messages
6,127,307
Members
449,374
Latest member
analystvar

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