Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Excel Formula


  • Please log in to reply

#1
paulelsa

paulelsa

    Member

  • Member
  • PipPip
  • 31 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

Advertisements


#2
Vino Rosso

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

paulelsa

    Member

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

#4
Vino Rosso

Vino Rosso

    Visiting Staff

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






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP