#### Blank Cell vs Cell equal to Zero (0)

```When creating a formula, is there a way to differentiate between a blank
cell and a cell that's equal to 0?

Here's my formula:

=IF('2005 Sales'!O12>0,'2005 Sales'!O12,"")

I wanted to change this to if O12 is greater than or equal to 0, then
return O12, but I want it to return ("") if the contents of O12 is blank.
Is there a way to do this? ...

TIA!

```
 0
mikioi (36)
9/9/2005 9:02:15 PM
excel 39879 articles. 2 followers.

4 Replies
722 Views

Similar Articles

[PageSpeed] 1

```What happens if O12 is *less* then zero?

This will leave O12 blank ( "" ) if less then zero:

=IF(AND(ISNUMBER(O12),O12>=0),O12,"")

--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================

news:Xns96CC7047AE4Amikioigtenet@216.168.3.44...
>
> When creating a formula, is there a way to differentiate between a blank
> cell and a cell that's equal to 0?
>
> Here's my formula:
>
> =IF('2005 Sales'!O12>0,'2005 Sales'!O12,"")
>
> I wanted to change this to if O12 is greater than or equal to 0, then
> return O12, but I want it to return ("") if the contents of O12 is blank.
> Is there a way to do this? ...
>
> TIA!
>

```
 0
ragdyer1 (4060)
9/9/2005 9:53:24 PM
```Test for the length of the content

=IF(Len('2005 Sales'!O12)>0,'2005 Sales'!O12,""

--
Dnere

-----------------------------------------------------------------------
Dnereb's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=2618

```
 0
9/9/2005 9:54:20 PM
```"RagDyer" <RagDyer@cutoutmsn.com> wrote in news:O2wqdmYtFHA.904
@tk2msftngp13.phx.gbl:

> What happens if O12 is *less* then zero?
>
> This will leave O12 blank ( "" ) if less then zero:
>
> =IF(AND(ISNUMBER(O12),O12>=0),O12,"")
>

Thanks! I'll give this a try ...

BTW, there's a formula in O12 that will not allow it to be less than zero.

Aloha!

```
 0
mikioi (36)
9/9/2005 11:39:32 PM
```Dnereb <Dnereb.1v43qc_1126303505.8662@excelforum-nospam.com> wrote in
news:Dnereb.1v43qc_1126303505.8662@excelforum-nospam.com:

>
> Test for the length of the content
>
> =IF(Len('2005 Sales'!O12)>0,'2005 Sales'!O12,"")
>
>

Thanks!  This works great too! ... I eventually found "ISBLANK" to solve my
problem:

=IF(ISBLANK('2005 Sales'!O12),"",'2005 Sales'!O12)

Aloha!

```
 0
mikioi (36)
9/10/2005 12:02:22 AM

Similar Artilces:

Delete blank rows Macro
Using MS Excel 2000. Help creating a macro please. I need to search the range A1:A10000 and if the cell is blank I want to delete the entire row. Thanks in advance. -- Richard "Richard" <Richard@discussions.microsoft.com> wrote in message news:DD28F95E-58CF-4961-A3AD-E37FC68AE0F4@microsoft.com... > Using MS Excel 2000. > Help creating a macro please. > > I need to search the range A1:A10000 and if the cell is blank I want to > delete the entire row. > > Thanks in advance. > -- > Richard Something like Sub DeleteRowsIfBlank() Dim lrow as Long...

how to get the address of the ceected cell
Hi Everybody How can I get the address of a cell whenever I click on it thanks Hi yosi, Look at the top left of your screen, to the left of the formula bar. It's called the name box. HTH Martin Here's how in code............ Sub SelectedCellAddress() MsgBox ActiveCell.address End Sub Vaya con Dios, Chuck, CABGx3 "yosi_lb" <yosi_lb@bezeqint.net> wrote in message news:45bb36fe\$1@news.bezeqint.net... > Hi Everybody > > How can I get the address of a cell whenever I click on it > > thanks > > 'This is worksheet event code, which m...

Extracting Text from a Cell
I have a column in excell that has 1-4 names in each cell. I would like to extract the names into 4 seperate cells (column). The names are seperated by a comma and a soft return. I'd appreciate any help. Look at Data>Text To Columns -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Tony" <anonymous@discussions.microsoft.com> wrote in message news:2031101c4588f\$bfe1f240\$a001280a@phx.gbl... > I have a column in excell that has 1-4 names in each cell. > I would like to extra...

Report = Blank?
Hello, I have a report that I got from this forum, and when I use it, everything is fine. The problem I am currently having though is if say I try and generate the report using RegisterID & Date then I get a blank report...if I try one or the other, then I am fine...I pretty much tried every angle with RegisterID and with Date, and nothing...any advise would be great, as I have seen this happen with other reports as well, where the final outcome is a blank report. Thank You, Vince "When I run into problems, we more often than not fix them ourselves. Can't put a price on ...

MFC 7.0 and dialog based project.
Hello, I have created an MFC dialog based project using Visual Studio 7.0. I am having trouble adding a CStatic or any class (CTreeCtrl,CEdit) etc. to the CDialog source file. Adding any object to that class results in a crash. The addition of the CStatic stat; object is causing an Access violation. In VC++ 6.0 this doesn't seem to happen to me. Any suggestions? // bionicspiderDlg.h : header file // #pragma once #include "BionicTree.h" // CBionicSpiderDlg dialog class CBionicSpiderDlg : public CDialog { // Construction public: CBionicSpiderDlg(CWnd* pParent...

Merging Cells with Information
I have a list of foods in column B and their corresponding measured amount in column A. I would like to have this information available in one cell so I can use a dropdown list. Is there a way to do so? EXAMPLE: A B 12 fl. Oz BEER 4 fl. oz. White Wine I would like the above to read: A Beer 12 fl. Oz. White Wine 4 fl. oz Thanks! Hi Mark, In C1 enter this formula: =B1&" "&A1 Copy down as needed. Then you can delete columns A and B. Biff >-----Original Message----- >I have a list of foods in column B and their >...

Deleting Blank Characters in a Cell
I have a list of names with email addresses of attendees of a seminar series that I am trying to compile into a list that can be copied and pasted into an email (using BCC as the methodology for emailing). The challenge that I have is that when these files were exported from the database to excel (not sure how), all of the cells contain exactly 100 characters even though the email address may only contain 13-20 characters. Is there a way to "trim" the blank characters after the last character that is used by a letter instead of blank character field? Thanks in advance! PZan --...

Blank .msg attachments
Here's an odd one, When an email has been forwarded to, or replyed to and is using the 'attach as attachment' option (as opposed to embed text), the message is delivered with attachment, but the attachment appears blank. It is only .msg attachments that have this problem, everything else gets thru fine (.doc, ..xls, .exe etc.) The attachment is 64bytes long, and has nothing in it. Exchange 2003, Windows 2003 and Outlook 2003 being used. Any ideas anyone? -- The man with no shoes. MCSE (W2K3, W2K), MCSA (W2K3, W2K), MCSE+I (NT4), CCNA + others.... All replies to group pleas...

IPM.Post Vs. IPM.Note?
I've been successful in implementing a change on an Exchange 2K server so that users can respond to messages posted using OWA in a public folder through OWA. (Ben Winzenz was helpful in getting me to that point using the information provided in this link http://support.microsoft.com/?kbid=817809) The trouble I'm having is replying to posts from users that post through Outlook itself. Once the message is posted in this way I still cannot reply to the message, i.e. Exchange still sees the message as an IPM.post and not an IPM.note. Is this option just an impossibility or does a...

performance of XslTransform vs XslCompiledTransform
Hi, From reading the documentation, I get the impression that XslCompiledTransform should be faster than XslTransform on my test with a large complex document and a large complex XSLT, the transform took 4 minutes with XslTransform but 7 minutes with XslCompiledTransform. However, with the same stylesheet on another large complex document, the time dropped from 4 minutes with XslTransform to just 45 seconds with XslCompiledTransform. any clues as to what might cause this difference in performance? is one of my results exceptional? this sort of process is typical in my application so...

Blank Cells #4
Hello, I am trying to do the following: 1 - In Cell A4 display the SUM of A1 + A2 + A3 if at least one of these cells is not empty. 2 - In Cell A6 display A5-A4 if both cells are not empty. How can I do this? Thank You, Miguel = Sum(A1:A3) ...and... =IF(AND(LEN(A5),LEN(A4)),A5-A4,"") -- Jim Cone Portland, Oregon USA http://www.mediafire.com/PrimitiveSoftware (free and commercial excel programs) "Shapper" <mdmoura@gmail.com> wrote in message news:25110584.2678.1325119728434.JavaMail.geo-discussion-forums@yqnd19... > Hello, > > I am trying to do ...

conditional formatting:highlight row based on blank or non-blank c
Does anyone know if, and how, is possible to use Conditional Formatting feature to automatically highlight the whole row if a specific cell in that row is non-blank (or blank)? Thank you! Hi, Yes, first select your row then in your conditional formatting select "formula is" from the drop down menu and type: =ISBLANK(\$A1)=FALSE or =ISBLANK(\$A1)=TRUE depending on weather you want the condition to apply when your cell is blank or non blank. HTH JG -- pinmaster ------------------------------------------------------------------------ pinmaster's Profile: http://www.excelforum....

Counting With Blank Rows
Hi, If I have a column of numbers like this: 4 5 6 3 7 8 9 3 2 7 4 1 4 How do I count the number of items between the blanks so it will look like I have it in the example. The number to the right and bottom is the count. So, for the numbers 4,5 6 the count is three. For 7,8 9 the count is three and for the numbers 2,7,4,1 the count is four. Is there a way to do this withoug using a macro? Thanks. Hi, You need to use the "count" function. If the rows in your example are 1-12 and the column is A, for the first group you'd type in (in column B) "=count(a1:a...

Counting cells depending upon a cell value.
Hi there, I've a table with the cell range a1:AE28. For the odd no. rows of the table, starting with the first row the possible values are "DG", "YL", "DR" and "DB". For the even no. rows of the table, starting with the second row the possible values are "G", "R" and "B". I need a formulae to calculate the count of cells having a value as "DG", for all the cells having values as "G". Thanks for your help.... Rashi p.s. here is a sample of the table, to give an idea First row--- DB DG DG DG DG YL D...

Folder security in Windows CE 6.0
Does any one let me know whether folder security (user should not be able to delete the folder or folder can be password protected) can be implemented in windows CE 6.0? Can anyone please let me know how i can implement it? Thanks Vikram G Submitted via EggHeadCafe - Software Developer Portal of Choice BOOK REVIEW: C# In Depth by Jon Skeet (Manning) http://www.eggheadcafe.com/tutorials/aspnet/42abae52-2297-42bb-b020-2b02f9f436a9/book-review-c-in-depth.aspx On 1/12/2010 11:00 AM, Vikram G wrote: > Does any one let me know whether folder security (user should n...

Charting blanks as spaces
I know you can chart blank cells as spaces by clicking it in the options...this is a little different. The cell it is charting as an if function in it to display a blank cell. example: =if(D3="","",D5-D3) So when D3 is blank it should display in cell D6 a blank. But when it charts it, it charts it as a zero. I want it to chart it as a gap. I tried =if(D3="",NA(),D5-D3), This way i get a "#N/A" error in my cell, which i can hide through conditional formating. but when i click display>data labels>values in chart options it displays "#...

disable/lock a cell based on the contents of another cell
using a formula is it possible to disable/lock another cell? In my worksheet cell A1 can only contain "H" or "E" If A1 = H, I do not want anybody to be able to populate B1. Hi, 1. You could set up Data, Validation on B1 such that =A1<>"H" would be your Custom formula. 2. The second alternative is to add a Worksheet_Change macro that would store the value of B1 and if that cell were changed when A1 = H the macro would return the original value to B1, replacing the users entry. Of course neither of these are fool proof since the user could change A1 to...

Lookup cell for documents in a folder
I am trying to create an overview of the time spent on projects. People hand in weekly time-charts in excel format where the projects are referenced by a standard number. So in effect I have a lot of separate excel files from which I would like to create a summary, which also updates when a new file is added to the folder. I have no idea if this is possible and if it is, how one should accomplish it. Can anyone help? There's a lot of information that would be needed for a complete solution, but I'll outline generally what would be needed. This would have to be done wi...

Blank, yet not blank
Hi, I copied some info from a database and pasted it to Excel where I wanted to manipulate the data. I notice that some of the cells, though appearing to be blank (and not showing 0 either), still responded to a simple formula like IF(OR(A1="",A1=0),1,0) giving the answer as 1. Can anyone tell me what's happening here, as it does mean I need to unneccessarily extend the formulas to exclude these cells. Rob "Rob" wrote: > Hi, > > I copied some info from a database and pasted it to Excel where I wanted to > manipulate the data. I notice that so...

Text not consistantly appearing in adjacent cells
I have a multi page spread sheet where there are a few inconsistancies: (1) My pages have a header that spans several columns once it pulls in an organization's name. On most of the pages the header appears fine even though it displays over several columns. On a few of the pages the header only appears partially -- displaying only the characters that will fit in the column width of the cell containing the header. As all of the adjacent column cells the header appears next to are blank, I just merged all the cells to eliminate this problem, however on two of my sheets I made v...

Import 1.2 Workflow rules into 3.0
Does anyone know how I can import my 1.2 workflow rules into version 3.0? I am receiving an error in 3.0 that my 1.2 xml workflow file is unsupported. Thanks, Rhett importing 1.2 rules via the wfimport tool into 3.0 is not supported. But existing 1.2 rules will be upgraded into 3.0 rules during the server upgrade. I know this is painful. but you can install 1.2 in your test env, install the workflow rules. upgrade the crm server. you will have 3.0 rules in the system. Now if you want you can export it out via the wfexport tool. and reimport it on any 3.0 server. ...

BLANK FORM / QUERY
My database is pretty basic with tables, forms, queries etc. I'd like to display a form that allows me to type in a figure in the first field and the rest of the fields will populate automatically. I'm not sure how to create a query where the field awaits input. Thanks in advance. -- TomMurray In the query's criteria box, use square brackets: [Enter a value] or from a form: [Forms]![FormName]![txBoxName] in the first case, you will be prompted. In the second, you will only be prompted if the form isn't open. -- Arvin Meyer, MCP, MVP http://www.datastrat.com http:/...

Lock cells but allow data entry ONLY!
Hi - Can I protect my Excel spreadsheet to allow data entry and nothing else (i.e. formatting, changing column widths, changing formulas, etc. Thanks Melissa * Highlight all the cell(s) you want to be able to enter data into. * Right-click and choose *Format Cells.* * On the *Protection* tab take the tick out of the *Locked* box. * Highlight all the cells which contain the formulas you want to remai unchanged. * Right-click and choose *Format Cells.* * On the *Protection* tab make sure there is a tick in the *Locked box. * Go to * Tools > Protection > Protect Sheet* * Tick *Select ...

CRM 3.0 server not available
Hi, I have got a question about CRM 3.0. We had installed CRM 3.0, but when I open Outlook (2003) he give following message: - The server is not available and try to restart Outlook again. I tried it, but the same error appears. What can I do to resolve the problem ? It seems that CRM does not connect with outlook. I reconnected the services, restarting the server...nothing. Who can help me? greetzz Rene reneotter@hotmail.com Rene; When you installed the CRM for Outlook, it asked you for the URL of your CRM server. On that same computer, can you open Internet Explorer and enter t...

COM specs for VS 6
About three years ago i've downloaded a complete specifications of VS6 COM interface from somewhere. IIRC that were 200+ pages or so. That was in the other company. And now I need it back but can't find it anymore. If someone could tell where to find, you'd make me really happy. TIA, Hans -- The one who doesn't know the answer is wiser than the one who knows the wrong answer. ...