Excel Counting multiple columns using dates and text from Mr Excel



 FAQFAQ
   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   FavoritesFavorites   StatisticsStatistics 
 RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Online StoreOnline Store

MrExcel Message Board Forum Index -> Excel Questions

Counting multiple columns using dates and text
Post new topic   Reply to topic
Last Thread | Next Thread  >   Printable version
  Author    Thread

pebble1969
Welcome to the Board


Joined: 20 Apr 2004
Posts: 3
Location: Michigan
Flag: Blank

Status: Offline

 Reply with quote  

Counting multiple columns using dates and text

J Q
01/10/2001 Participating
03/20/2001 Declined
12/23/2003 Pending
03/04/2004 Participating
02/06/2004 Participating

I am trying to attempt to have excel count only the colums that have the "year" 2004 and are participating on my study. I have tried several different formulas but they are not working for me. Also, I wanted to note that I want this information to go on another worksheet located under a different file name. So, basically this worksheet will be updated daily, from information entered from another worksheet.

Here's one of the formula's I have tried so far ...

=SUMPRODUCT(('[Database Reports2.xls]BCA Mailing List'!$J$2:$J$557="2004")*('[Database Reports2.xls]BCA Mailing List'!$Q$2:$Q$557="Participating"))

Post Tue Apr 20, 2004 3:03 pm 
 View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger

Brian from Maui
Board Master
Board Master


Joined: 17 Feb 2002
Posts: 2785

Flag: Blank

Status: Offline

 Reply with quote  

Re: Counting multiple columns using dates and text

Try,

=SUMPRODUCT(--(YEAR(A1:A4)=2004),--(B1:B4="participating"))

Post Tue Apr 20, 2004 3:16 pm 
 View user's profile Send private message

pebble1969
Welcome to the Board


Joined: 20 Apr 2004
Posts: 3
Location: Michigan
Flag: Blank

Status: Offline

 Reply with quote  

Re: Counting multiple columns using dates and text

Thanks Brian that worked, but, my other problems is where do I insert the file name that the other information is coming from.

For example ...

I have this report that I want to be automatically updated from my database I enter data on a daily basis, but, both of these work sheets are located on different files. So, in other words I want my file named BCA monthly report to pull data from the file named BCA database.

So, my question is .. where in this formula do I put the file name BCA database? =SUMPRODUCT(--(YEAR(A1:A4)=2004),--(B1:B4="participating"))

Post Thu Apr 22, 2004 4:40 pm 
 View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger

Aladin Akyurek
.


Joined: 15 Feb 2002
Posts: 15262
Location: The Hague
Flag: Blank

Status: Offline

 Reply with quote  

Re: Counting multiple columns using dates and text

quote:
Originally posted by pebble1969:
Thanks Brian that worked, but, my other problems is where do I insert the file name that the other information is coming from.

For example ...

I have this report that I want to be automatically updated from my database I enter data on a daily basis, but, both of these work sheets are located on different files. So, in other words I want my file named BCA monthly report to pull data from the file named BCA database.

So, my question is .. where in this formula do I put the file name BCA database? =SUMPRODUCT(--(YEAR(A1:A4)=2004),--(B1:B4="participating"))


=SUMPRODUCT(--(YEAR('[Database Reports2.xls]BCA Mailing List'!$J$2:$J$557)=2004),--('[Database Reports2.xls]BCA Mailing List'!$Q$2:$Q$557="Participating"))

Post Thu Apr 22, 2004 4:44 pm 
 View user's profile Send private message

pebble1969
Welcome to the Board


Joined: 20 Apr 2004
Posts: 3
Location: Michigan
Flag: Blank

Status: Offline

 Reply with quote  

Re: Counting multiple columns using dates and text

Thank you soooo much! ... icon_beerchug.gif

This worked perfect

Post Fri Apr 23, 2004 3:00 pm 
 View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
  Display posts from previous:      

MrExcel Message Board Forum Index -> Excel Questions


Forum Jump:
Jump to:  

Post new topic   Reply to topic
Page 1 of 1



Add To Favorites

 


Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB: 2.0.4 © 2001 phpBB Group

Need help posting your first question? Read how to post

Need extra help ? Couldn't get the answer you needed ? Get a free quote from our Consulting Team

Download Colo's HTML Maker utility for displaying your Excel Worksheet on the board.

Download VB HTML Maker to post your code on the board


Check out our new index to 485 Excel Articles.


Return to MrExcel Consulting

All contents Copyright 1998-2004 by MrExcel.com
If you believe information posted here is from your copyrighted source, notify us per the Terms of Use
Excel is a registered trademark of the Microsoft Corporation.
MrExcel is a registered trademark of Tickling Keys, Inc.