A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Range



 
 
Thread Tools Display Modes
  #1  
Old March 7th, 2008, 12:07 PM posted to microsoft.public.excel.worksheet.functions
alex
external usenet poster
 
Posts: 581
Default Range

Hello experts,

using Excel '03...

I'm trying to write a formula that checks a range of cells, basically
modifying this formula:

if(B55="","1","2")

to something like this:

if(isblank(B1:B55),"1","2") meaning if ANY cell from B1 to B55 has a
value, return "2"

This formula only seems to work on an adjacent cell; i.e., when I type
the formula in A13 and B13 possesses a value, else this formula
returns a "1"

thoughts?
alex
  #2  
Old March 7th, 2008, 12:24 PM posted to microsoft.public.excel.worksheet.functions
Ron Coderre
external usenet poster
 
Posts: 1,922
Default Range

If the B1:B55 range cells will either contain a value
OR be truly blank (containing nothing....not even a formula)
try this:
=IF(COUNTA(B1:B55),"2","1")

Is that something you can work with?
Post back if you have more questions.
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

"alex" wrote in message
...
Hello experts,

using Excel '03...

I'm trying to write a formula that checks a range of cells, basically
modifying this formula:

if(B55="","1","2")

to something like this:

if(isblank(B1:B55),"1","2") meaning if ANY cell from B1 to B55 has a
value, return "2"

This formula only seems to work on an adjacent cell; i.e., when I type
the formula in A13 and B13 possesses a value, else this formula
returns a "1"

thoughts?
alex



  #3  
Old March 7th, 2008, 06:24 PM posted to microsoft.public.excel.worksheet.functions
alex
external usenet poster
 
Posts: 581
Default Range

On Mar 7, 7:24*am, "Ron Coderre"
wrote:
If the B1:B55 range cells will either contain a value
OR be truly blank (containing nothing....not even a formula)
try this:
=IF(COUNTA(B1:B55),"2","1")

Is that something you can work with?
Post back if you have more questions.
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

"alex" wrote in message

...



Hello experts,


using Excel '03...


I'm trying to write a formula that checks a range of cells, basically
modifying this formula:


if(B55="","1","2")


to something like this:


if(isblank(B1:B55),"1","2") *meaning if ANY cell from B1 to B55 has a
value, return "2"


This formula only seems to work on an adjacent cell; i.e., when I type
the formula in A13 and B13 possesses a value, else this formula
returns a "1"


thoughts?
alex- Hide quoted text -


- Show quoted text -


Thanks Ron for your reply.
I'll try to work with this, but I believe the cells (B1:B55) will have
formulas in them.

alex
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:18 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.