#1   Report Post  
WAgrapher
 
Posts: n/a
Default need a formula

Looking for a formula to tell me how many recrods there are in my worksheet
where any field L2 through AB2 is equal to 1 or 3. Values in these columns
range from 0-5.
  #2   Report Post  
N Harkawat
 
Posts: n/a
Default

=SUM(COUNTIF(L2:AB2,{1,3}))


"WAgrapher" wrote in message
...
Looking for a formula to tell me how many recrods there are in my
worksheet
where any field L2 through AB2 is equal to 1 or 3. Values in these
columns
range from 0-5.



  #3   Report Post  
WAgrapher
 
Posts: n/a
Default

This gives me the SUM of the number of 1s and 3s for each record. I need to
know the numer of records (each is a customer) who buy any products from a
certain category (as indicated by a 1 or 3 in columns L through AB). One
customer could use one products and another could use all 17 and each would
still only be counted once.

"N Harkawat" wrote:

=SUM(COUNTIF(L2:AB2,{1,3}))


"WAgrapher" wrote in message
...
Looking for a formula to tell me how many recrods there are in my
worksheet
where any field L2 through AB2 is equal to 1 or 3. Values in these
columns
range from 0-5.




  #4   Report Post  
N Harkawat
 
Posts: n/a
Default

Not sure what you need Can you describe the way the data is structure in the
w/sheet may be with a small example

"WAgrapher" wrote in message
...
This gives me the SUM of the number of 1s and 3s for each record. I need
to
know the numer of records (each is a customer) who buy any products from a
certain category (as indicated by a 1 or 3 in columns L through AB). One
customer could use one products and another could use all 17 and each
would
still only be counted once.

"N Harkawat" wrote:

=SUM(COUNTIF(L2:AB2,{1,3}))


"WAgrapher" wrote in message
...
Looking for a formula to tell me how many recrods there are in my
worksheet
where any field L2 through AB2 is equal to 1 or 3. Values in these
columns
range from 0-5.






  #5   Report Post  
David McRitchie
 
Posts: n/a
Default

=COUNTIF(L2:AB2,1) + COUNTIF(L2:AB2,2) + COUNTIF(L2:AB2,3)
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"WAgrapher" wrote in message ...
Looking for a formula to tell me how many recrods there are in my worksheet
where any field L2 through AB2 is equal to 1 or 3. Values in these columns
range from 0-5.





  #6   Report Post  
bj
 
Posts: n/a
Default

try
= countif(L2:AB2,1)+countif(L2:AB2,3)

"WAgrapher" wrote:

Looking for a formula to tell me how many recrods there are in my worksheet
where any field L2 through AB2 is equal to 1 or 3. Values in these columns
range from 0-5.

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
Simplify formula Luke Excel Worksheet Functions 37 May 6th 05 07:21 AM
put formula results into a different cell if it is empty PutFormula Excel Worksheet Functions 2 February 11th 05 03:31 AM
Dynamic (?) formula Thore Excel Worksheet Functions 2 February 9th 05 05:25 PM
how do i write a formula and keep in in formula form, so it DOESN. norcalchick2207 Excel Discussion (Misc queries) 2 February 4th 05 08:38 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


All times are GMT +1. The time now is 05:22 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"