What formula would I use in excel to do the task described in the body of this post?

Posted on 2015-01-20
Last Modified: 2015-01-20
I have an excel spread sheet with a column  that contains  numbers in some cells and nothing in other cells.
I need an equation where I can transform the cells that contain numbers to  1 and cells that are blank to 0.
Question by:PDSWSS
  • 2
LVL 24

Accepted Solution

mankowitz earned 500 total points
ID: 40560872
you should be able to use ISBLANK

The equation would look like

IF(ISBLANK(a1), 0, 1)

Expert Comment

ID: 40560877

Open in new window

Edit: I see mankowitz was first, and I misused ';' instad of ','.
LVL 24

Expert Comment

ID: 40560882
@slubek-  one of the things I don't understand about OO is why they use semicolons.

Author Closing Comment

ID: 40560977
Perfect answer. Thank you very much.

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question