If Then Statement...question

krehkop

Board Regular
Joined
Jul 6, 2007
Messages
133
Office Version
  1. 365
Platform
  1. Windows
Let's say I have =if(a1="","Yes","")

How would I change the "" to recognize something other than nothing? Is there something that I can type into my formula that identifies something (anything), regardless of what it is, rather than nothnig?

So if a1 recognizes something (anything other than a blank), then "Yes", otherwise "".

Let's pretend that this magical thing that recognizes something rather than nothing is a question mark, I would want my formula to look like the following: =if(a1=?,"Yes","").

Thanks to all!
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
In your original formula, you had:

=IF(A1="","Yes","")

This put Yes when A1 was blank, moving the YES to the FALSE position would show YES when it is not blank:

=IF(A1="","","Yes")

brian.wethington's works too, but he uses the symbol for not equal <>
=IF(A1<>"","Yes","")
 
Upvote 0

Forum statistics

Threads
1,214,946
Messages
6,122,401
Members
449,081
Latest member
JAMES KECULAH

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