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

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
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","")
 

Forum statistics

Threads
1,181,056
Messages
5,927,864
Members
436,573
Latest member
CMR237

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
Top