Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
Solved

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

Posted on 2015-01-20
Medium Priority
83 Views
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.
Thanks
0
Question by:PDSWSS
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• Learn & ask questions
• 2

LVL 24

Accepted Solution

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

The equation would look like

IF(ISBLANK(a1), 0, 1)
0

LVL 7

Expert Comment

ID: 40560877
Try
=If(ISBLANK(A1);0;1)
Edit: I see mankowitz was first, and I misused ';' instad of ','.
0

LVL 24

Expert Comment

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

Author Closing Comment

ID: 40560977
Perfect answer. Thank you very much.
0

## Featured Post

Question has a verified solution.

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

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
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 demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
###### Suggested Courses
Course of the Month4 days, 10 hours left to enroll

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

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