Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works

# Excel Formula

### #1 paulelsa Posted 21 March 2011 - 04:14 AM

paulelsa

Member

• Member
• 30 posts
I am doing a rainfall chart and want Excel to count the number of days in each month with rain. Unfortunately there are 31 days in some months so I get the error message "more arguments have been specified for this function than are allowed in the current file format" when I get to number 31.

I am using the formula =SUM(COUNTIF(B2,"<>0.0"),COUNTIF(B3,"<>0.0"),COUNTIF(B4,"<>0.0"),COUNTIF(B5,"<>0.0"),COUNTIF(B6,"<>0"),COUNTIF(B7,"<>0"),COUNTIF(B8,"<>0"),COUNTIF(B9,"<>0"), etc etc to B32

Is there a way to overcome this problem?
• 0

### #2 Vino Rosso Posted 21 March 2011 - 06:32 AM

Vino Rosso

Visiting Staff

• Visiting Consultant
• 235 posts
Obviously, I can't see the structure of your spreadsheet but why not use something like =COUNTIF(range,criteria)
(You don't need to sum each entry, use a range.)

So you could have =COUNTIF(B2:B32,">0") to show the days when it rained.

You could have the formula refer to another cell where you input the rain level e.g. =COUNTIF(B2:B32,A1)
and in A1 you type, for example, >1 to count the days when more than 1 inch/millimetre fell.
• 0

### #3 paulelsa Posted 22 March 2011 - 12:10 AM

paulelsa

Member

• Topic Starter
• Member
• 30 posts
Perfect, thank you. Worked like a charm
• 0

### #4 Vino Rosso Posted 22 March 2011 - 02:25 AM

Vino Rosso

Visiting Staff

• Visiting Consultant
• 235 posts
You're welcome
• 0

### Similar Topics

#### 0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users