Solved

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

Posted on 2015-01-20
4
77 Views
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.
Thanks
0
Comment
Question by:PDSWSS
  • 2
4 Comments
 
LVL 24

Accepted Solution

by:
mankowitz earned 500 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

by:slubek
ID: 40560877
Try
=If(ISBLANK(A1);0;1)

Open in new window

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

Expert Comment

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

Author Closing Comment

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

920 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now