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

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
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,224,803
Messages
6,181,055
Members
453,014
Latest member
Chris258

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