SoftwareTipsandTricks Forum

Go Back   SoftwareTipsandTricks Forum > Software > Software Problems and Useful Utilities
User Name
Password


Excel Help Please!

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes

  #1  
Old 02-08-2003, 05:17 AM
Timewell Offline
Junior Member
 
Join Date: Oct 2002
Posts: 5
Exclamation Excel Help Please!

Hi guys!

I have encountered a problem with Microsoft Excel. The following formula does not seem to work for some reason and I nor another good friend can see why. Can you guys help me?

The formula is:

Code:
=COUNTIF(B59,B56,B53,B50,B47,B44,B41,B38,B35,B32,B29,B26,B23,B20,B17,B14,B11,B8,B5, ">=0")

It gives me the error message:

Quote:
The formula you typed contains an error.

Go to all the usual places etc

I have noticed however that when I was clicking on the cells to give them the range, that the first three had coloured boxes around them and the rest hadn't for some reason. It keeps indicating that cell B53 has an error in it but it is a blank cell.

Many thanks for your help guys!
Reply With Quote

  #2  
Old 02-16-2003, 06:49 PM
Tom Urtis Offline
Junior Member
 
Join Date: Feb 2003
Location: Silicon Valley, California USA
Posts: 6
Send a message via AIM to Tom Urtis Send a message via Yahoo to Tom Urtis
The reason you ran into problems with the formula, and with the 3rd argument in particular, is that the COUNTIF function only allows for two arguments...the first being a contiguous range (eg A1:A20 - the range being evaluated), and the second argument for the criteria, which could be a single cell range or a hard coded value.

Anyway, here's a workaround formula that should do what you want:

=SUM(COUNTIF(INDIRECT("B"&{5,8,11,14,17,20,23,26,2 9,32,35,38,41,44,47,50,53,56,59}),">=0"))
__________________
Tom Urtis
Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with External Links in Excel ejooste Windows XP 2 02-18-2007 05:03 PM
Please help with my Excel frustation nuLime Software Problems and Useful Utilities 8 04-21-2004 08:40 AM
Excel 2002 wolfman Software Problems and Useful Utilities 0 02-16-2004 10:35 AM
Importing large text into Excel RawMeat Software Problems and Useful Utilities 0 01-18-2004 10:05 AM
Excel Date Format Help Needed! aeromark Software Problems and Useful Utilities 2 02-06-2003 05:59 AM



All times are GMT -5. The time now is 06:02 AM.


Designed by eXtremepixels. Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 2.3.2 © 2005, Crawlability, Inc.