If there is anything in the range I want it to return a value of 1 otherwise
a value of 0.
For example: If(sum(A2:G2>1,1,0) In this formula if there is any number in
any cell I would be a value of 1 if not I would get a value of 0.
My problem is that in some rows I might not have a number in any given cell
but may have a letter like A or G or whatever. In those rows if any cell
has a letter I need the target formula to still return a value of 1
otherwise 0.
I hope that clears it up.
> What do you want your answer to be if some of the cells have numbers,
> some have letters, some have blanks, and some have characters other
> than numbers and letters, such as the % sign?
RagDyer - 14 Dec 2005 00:54 GMT
Try this:
=--(COUNTA(A2:G2)>0)

Signature
HTH,
RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================
> If there is anything in the range I want it to return a value of 1 otherwise
> a value of 0.
[quoted text clipped - 12 lines]
> > some have letters, some have blanks, and some have characters other
> > than numbers and letters, such as the % sign?
rsenn - 14 Dec 2005 01:04 GMT
Okay, try this.
=IF(ISERROR(CODE(A2:G2)),0,1)

Signature
rsenn
rsenn - 14 Dec 2005 01:07 GMT
Take that back. I didn't test it sufficiently. It behaves erratically.
:mad:

Signature
rsenn
rsenn - 14 Dec 2005 01:09 GMT
Sorry about that.
Try
=IF(ISBLANK(A2:G2),0,1)

Signature
rsenn