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

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
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,224,830
Messages
6,181,227
Members
453,025
Latest member
Hannah_Pham93

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