Return value based on crietria

kumara_faith

Well-known Member
Joined
Aug 19, 2006
Messages
918
Office Version
  1. 365
HI,

I have the following table:
ColumnB ColumnC ColumnD ColumnE
1601603943127.png


I am trying to insert a message in column F. The criteria are as follows:

1)If cell in column D and E is empty, then say Email and PC name is blank.
2) If only cell in column D is empty, say Email is blank.
3) If only cell in column E is empty, say PC name is blank
4) If both cell in column D and E is filles, say All Completed- Great Job

I tried using the following formula but I am not getting it right. Appreciate any help

Excel Formula:
IF(COUNTIFS(D3:E3)<2,"Email and PC Name is blank !!",IF(COUNTA(D3)=0,"Email is blank!!",IF(COUNTA(E3)=0,"PC Name is blank!!,"All Complete- Great Job !!"))
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Excel Formula:
=IF(AND(D2="",E2=""),"Email and PC name are blank",IF(D2="","Email is blank",IF(E2="","PC name is blank","All Completed- Great Job")))
 
Upvote 0

Forum statistics

Threads
1,213,517
Messages
6,114,085
Members
448,548
Latest member
harryls

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