Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 103
Default COUNTIF for multiples of 3

i'm assuming COUNTIF is function i need to use, however, if there is better
way i'm all ears. have row of values and would like to be able to count
number of values which are a multiple of three, i.e. if i have row of numbers
from 1 to 9, formula would return 3; numbers 1 to 10, returns 3, numbers 1 to
11, 3; numbers 1 to 12, returns a 4. the number of values will vary and not
be contiguous but will/can be in ascending order.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default COUNTIF for multiples of 3

=SUMPRODUCT(--(A1:A100<""),--(MOD(A1:A100,3)=0))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"mwam423" wrote in message
...
i'm assuming COUNTIF is function i need to use, however, if there is
better
way i'm all ears. have row of values and would like to be able to count
number of values which are a multiple of three, i.e. if i have row of
numbers
from 1 to 9, formula would return 3; numbers 1 to 10, returns 3, numbers 1
to
11, 3; numbers 1 to 12, returns a 4. the number of values will vary and
not
be contiguous but will/can be in ascending order.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default COUNTIF for multiples of 3

One way:

=SUMPRODUCT(--(rng<""),--(MOD(rng,3)=0))


In article ,
mwam423 wrote:

i'm assuming COUNTIF is function i need to use, however, if there is better
way i'm all ears. have row of values and would like to be able to count
number of values which are a multiple of three, i.e. if i have row of numbers
from 1 to 9, formula would return 3; numbers 1 to 10, returns 3, numbers 1 to
11, 3; numbers 1 to 12, returns a 4. the number of values will vary and not
be contiguous but will/can be in ascending order.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 103
Default COUNTIF for multiples of 3


hi bob, and JE, appreciate the quick response, that's exactly what i need!
bob, figured out that conditional format question from last week, i just
needed to get my reading comprehension to middle school level =D thanks for
all your help!
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
lookup multiples need help Excel Worksheet Functions 2 July 25th 07 07:38 PM
Multiples of 1000 in cells? Confused Excel Discussion (Misc queries) 7 April 14th 07 12:26 AM
MULTIPLE LOOKUPS FOR MULTIPLES Salman Excel Discussion (Misc queries) 0 February 28th 07 02:53 PM
Rounding to Multiples of Integers? ConfusedNHouston Excel Discussion (Misc queries) 5 February 1st 07 11:38 PM
Multiples of 4 in an IF statement Barry Clark Excel Worksheet Functions 3 August 22nd 06 01:22 PM


All times are GMT +1. The time now is 08:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"