If function to return multiple conditions

TrishaL

Board Regular
Joined
Jul 9, 2013
Messages
56
Office Version
  1. 2019
Platform
  1. Windows
Hello

Looking for help to write a formula that will give me the result of column "C" below.
Tried this in my excel and obviously not working.... =IF(AND(COUNTIF((AH287="*team*", AJ287=1), "Yes", ""), (AH287="*team*"), AJ287=""), "Pending", ""))
I want it to return Yes if Team and a date, if Team and no date return Pending... everything else just blank.

Thanks in advance

[TABLE="width: 274"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]team[/TD]
[TD="align: right"]23-Jan-19[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]single[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]team[/TD]
[TD] [/TD]
[TD]Pending[/TD]
[/TR]
[TR]
[TD]"this is empty cell"[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]team[/TD]
[TD="align: right"]23-Jan-19[/TD]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]single[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]"this is empty cell"[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]team[/TD]
[TD] [/TD]
[TD]Pending[/TD]
[/TR]
[TR]
[TD]team[/TD]
[TD="align: right"]23-Jan-19[/TD]
[TD]Yes[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 274"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Maybe

Excel 2013/2016
ABC
1AB
2team23-Jan-19Yes
3single
4teamPending
5
6team23-Jan-19Yes
7single
8
9teamPending
10team23-Jan-19Yes
Sheet3
Cell Formulas
RangeFormula
C2=IF(A2<>"Team","",IF(B2>0,"Yes","Pending"))
 
Upvote 0
Hi
Thank you. Way better than what I had but when i put it in it gives "pending" result on the single and the cells with no data. The "yes" is correct and "pending" where there is team.
Is there a way to show a result of blank on "single" and blank cells?
Thanks
 
Upvote 0
Are your actual values "Team" and "Single", or are they something else?
 
Upvote 0
Hi
They will actually say ".....text.... Team .... text".
The other cells in that column are either blank, or may say "removed.....text..." or "not required......text..."
In your formula I entered * around team. I did this: =IF(AH286="*Team*","",IF(AJ286>0,"Yes","Pending"))
 
Upvote 0
Hi
When I put in AH286<>"*Team*" instead of the = then the when i have "team" and "date" the result is blank and not yes.
Sorry but it just isn't giving the answer.
Thanks
 
Upvote 0
This should work as well:

=IF(OR(A1="<>",B1="<>",C1="<>")=FALSE,"","Yes")

If any of the cells in A1:C1 are blank it will return a blank, otherwise it will return "Yes"
 
Upvote 0
How about


Excel 2013/2016
ABC
1AB
2a team23-Jan-19Yes
3single
4team bPending
5
6steaming23-Jan-19Yes
7single
8
9teamPending
10team23-Jan-19Yes
Sheet3
Cell Formulas
RangeFormula
C2=IF(ISNUMBER(SEARCH("team",A2)),IF(B2>0,"Yes","Pending"),"")
 
Upvote 0
Hi
This works wonderfully. Sorry for the late reply! Thank you so much!
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,633
Latest member
DougMo

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