• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 88
  • Last Modified:

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

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
PDSWSS
Asked:
PDSWSS
  • 2
1 Solution
 
mankowitzCommented:
you should be able to use ISBLANK

The equation would look like

IF(ISBLANK(a1), 0, 1)
0
 
slubekCommented:
Try
=If(ISBLANK(A1);0;1)

Open in new window

Edit: I see mankowitz was first, and I misused ';' instad of ','.
0
 
mankowitzCommented:
@slubek-  one of the things I don't understand about OO is why they use semicolons.
0
 
PDSWSSAuthor Commented:
Perfect answer. Thank you very much.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now