IF Formula to Specify if cell is empty for users

kumara_faith

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

I have the following table:

1662015453270.png


In the message column, I am trying to have a message for users if:
1) If all cells from Branch to No of Pages is blank, then no message
2) If any of the cells from Branch to No of Pages is blank, then to display message for example " Date is blank. Please complete". This is assuming the Date cell is blank and all other cells is filled.
3) If some of the cells are filled and others are blank, to display message to specify the cells that is blank. Example, Branch, Date and Transaction Type is filled but no of Policy and No of Pages are blank. So message should be " No of Policy and No of Pages are blank. Please Complete".
3) if all cells from Branch to No of Pages is filled, then display message "Complete"

I tried with the following formula but it not working as intended:

Excel Formula:
=IF(COUNTA(B5:F5)="","",IF(B5="","Branch is blank. Please complete",IF(C5="","Date is blank. Please complete",IF(D5="","Transaction Type is blank. Please complete",IF(E5="","No of Policy is blank. Please complete",IF(F5="","No of Pages is blank. Please complete","Complete"))))))

Appreciate any help.
 
Hi FormR,

Thank you.

If all cells are empty, the formula returns as "Please complete" instead of blank. How do I modify this ? Thanks.
 
Upvote 0

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Hi, oops - I didn't test that very well!

Try this instead:
Excel Formula:
=IF(COUNTA(A2:E2)=0,"",IF(COUNTBLANK(A2:E2)=0,"Complete",TEXTJOIN(" and ",TRUE,FILTER(A$1:E$1&" is blank.",A2:E2="","")&" Please Complete")))
 
Upvote 0

Forum statistics

Threads
1,214,587
Messages
6,120,405
Members
448,958
Latest member
Hat4Life

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