Go Premium for a chance to win a PS4. Enter to Win

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
4
Medium Priority
?
85 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 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

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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc. In VBA you can also handle normal files and folders, but zip folders takes a little more - and that you'll find here.
Windows Explorer lets you open cabinet (cab) files like any other folder. In VBA you can easily handle normal files and folders, but opening and indeed creating cabinet files takes a lot more - and that's you'll find here.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

824 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