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

ABC
team23-Jan-19Yes
single
team Pending
"this is empty cell"
team23-Jan-19Yes
single
"this is empty cell"
team Pending
team23-Jan-19Yes

<colgroup><col><col><col></colgroup><tbody>
</tbody>

<colgroup><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
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
It should be AH286<>"*Team*"
 
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,215,035
Messages
6,122,791
Members
449,095
Latest member
m_smith_solihull

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