How to check a cell that is not blank

Etphonehome

New Member
Joined
Apr 9, 2011
Messages
18
Hi,

I got a newbie question, how to set a formula to check a cell that is blank (assume that cell has no formula in it).

And what formula should be used if the cell has formula but the result is blank ?

Thanks,
Et
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Hi,

I got a newbie question, how to set a formula to check a cell that is blank (assume that cell has no formula in it).

And what formula should be used if the cell has formula but the result is blank ?

Thanks,
Et

=IF(A1="","",1)

checks whether A1 is empty (unused) or houses a blank, as result of a formula. If enpty/blank, we get a blank, otherwise 1 as result.
 
Upvote 0
Hi,

I got a newbie question, how to set a formula to check a cell that is blank (assume that cell has no formula in it).

And what formula should be used if the cell has formula but the result is blank ?

Thanks,
Et

If you have to distinguish between those cases, have a look at this.

<table valign="middle" colspan="3" style="font-family:Calibri; color:#000000; background-color:#FFFFFF; font-size:11px; font-weight:normal; font-style:normal; " border="1" cellpadding="2" cellspacing="0"><colgroup><col width="28pt"><col width="60pt"><col width="133,5pt"></colgroup><tbody><tr style="background-color:#FAFAFA"><td colspan="3" align="center">Worksheet 'Tabelle1'</td></tr><tr style="background-color:#cacaca"><td>
</td><td align="center">A</td><td align="center">B</td></tr><tr><td style="background-color:#cacaca" align="center">1</td><td align="right">
</td><td align="left">Cell has no content.</td></tr><tr><td style="background-color:#cacaca" align="center">2</td><td align="left">
</td><td align="left">Cell has blank content</td></tr><tr><td style="background-color:#cacaca" align="center">3</td><td align="right">555</td><td align="left">Cell has non-blank content.</td></tr></tbody></table>
<table valign="middle" colspan="2" style="table-layout:auto; color:#000000; background-color:#FFFFFF; font-family:Calibri; font-size:10px;" border="3" cellpadding="2" cellspacing="0"><colgroup><col width="40pt"><col></colgroup><tbody><tr style="background-color:#eeaaaa"><td>Cell</td><td>Formula</td></tr><tr><td>A2</td><td>=""</td></tr><tr><td>B1</td><td>=CHOOSE(ISBLANK(A1)+(A1="")+1,"Cell has non-blank content.","Cell has blank content","Cell has no content.")</td></tr></tbody></table><table style="font-family:Arial; font-size:7pt"><tbody><tr><td style="color:#333333">Created with Tab2HTML (v2.4.1). ©Gerd alias Bamberg</td></tr></tbody></table>
 
Upvote 0
How many parameter can a CHOOSE have?

I have never used Choose, looks very useful, thanks for sharing:)
In Excel 2007 and later you can have up to 254 value arguments.

In Excel 2003 and earlier you can have up to 29 value arguments.
 
Upvote 0

Forum statistics

Threads
1,224,543
Messages
6,179,429
Members
452,914
Latest member
echoix

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