Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Need to count occurances in different columns

I have columns of data (each with a different column name at the top: Jan,
Feb, Mar, etc). The columns consist of three or more different words (apple,
pear, orange, etc.) and zero values. I am looking for a formula that will
count the occurance of the words in each column based on two criteria: Column
Name and Word. For example: If I set cell A1 to Jan and cell B1 to Apple,
cell C1 returns all the times Apple appears in the Jan column. The number of
columns is different from the number of rows in each column. Any help with
this is greatly appreciated. Let me know if more information is needed.
Thanks.

Dan
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,726
Default Need to count occurances in different columns

Assuming the months in D1:M1

=SUMPRODUCT(--(OFFSET(D1,,MATCH(A1,D1:M1,0)-1,100,1)=B1))

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"More Macro Help Needed"
wrote in message ...
I have columns of data (each with a different column name at the top: Jan,
Feb, Mar, etc). The columns consist of three or more different words
(apple,
pear, orange, etc.) and zero values. I am looking for a formula that will
count the occurance of the words in each column based on two criteria:
Column
Name and Word. For example: If I set cell A1 to Jan and cell B1 to
Apple,
cell C1 returns all the times Apple appears in the Jan column. The number
of
columns is different from the number of rows in each column. Any help
with
this is greatly appreciated. Let me know if more information is needed.
Thanks.

Dan



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Need to count occurances in different columns

Worked great!!! Thanks so much..

"Bob Phillips" wrote:

Assuming the months in D1:M1

=SUMPRODUCT(--(OFFSET(D1,,MATCH(A1,D1:M1,0)-1,100,1)=B1))

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"More Macro Help Needed"
wrote in message ...
I have columns of data (each with a different column name at the top: Jan,
Feb, Mar, etc). The columns consist of three or more different words
(apple,
pear, orange, etc.) and zero values. I am looking for a formula that will
count the occurance of the words in each column based on two criteria:
Column
Name and Word. For example: If I set cell A1 to Jan and cell B1 to
Apple,
cell C1 returns all the times Apple appears in the Jan column. The number
of
columns is different from the number of rows in each column. Any help
with
this is greatly appreciated. Let me know if more information is needed.
Thanks.

Dan




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
count matching occurances campfire51 Excel Worksheet Functions 0 March 15th 06 09:31 PM
Count Occurances if two conditions true Ed Gregory Excel Worksheet Functions 5 September 8th 05 07:26 PM
Count occurances in range of cells Ed Gregory Excel Worksheet Functions 1 September 7th 05 04:12 PM
If two columns match then count one. How? Tried countif and sum . IMC Medrec Excel Worksheet Functions 1 February 14th 05 12:28 PM
count number of cells based on TWO conditions (2 different columns Troi-Xanh Excel Worksheet Functions 2 February 12th 05 12:46 AM


All times are GMT +1. The time now is 01:36 PM.

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

About Us

"It's about Microsoft Excel"