If Or

DPD011

Board Regular
Joined
Mar 26, 2014
Messages
76
Im looking for a formula which would look at cell A1 and A2, if A1 contained the words MES and A2 was blank it would show on A3 Yes. Thank you.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Enter into cell A3:
Code:
=IF(AND(A1="MES",A2=""),"Yes","")
 
Upvote 0
Cell A1 contains values like MES123, MES2334, so the formula would need to pick the MES portion and exclude anything after MES. Thank you.
 
Upvote 0
Would the "MES" part always be at the beginning of the entry?
If so, then try:
Code:
=IF(AND(LEFT(A1,3)="MES",A2=""),"Yes","")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,912
Messages
6,175,341
Members
452,638
Latest member
Oluwabukunmi

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