Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 159
Default 3 results possible on every day. add up the number of each on each day.

Hello

Tried this on the functions board, no reply, think it might need a
macro. Sheet1 Col A is all dates (dd-mm-yy), some of them occurring
more than once, some dates not occurring at all, not in any order and
the earliest date is 20-12-10 (20 Dec 10). Sheet 1 Col H could have
Y, R or CN or other things or nothing in it (but it's only the Ys, Rs
and CNs I'm interested in.) Sheet 4 Col A is a calendar with the
start date 20-12-10 up to whatever today's date is (and beyond as time
goes on.) In Sheet 4 Col B I want the number of Ys of the
corresponding date in Col A, in Col C the number of Rs and in Col D
the number of CNs.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,872
Default 3 results possible on every day. add up the number of each on each day.

Hello,

Am Mon, 23 Jan 2012 13:26:21 -0800 (PST) schrieb robzrob:

Tried this on the functions board, no reply, think it might need a
macro. Sheet1 Col A is all dates (dd-mm-yy), some of them occurring
more than once, some dates not occurring at all, not in any order and
the earliest date is 20-12-10 (20 Dec 10). Sheet 1 Col H could have
Y, R or CN or other things or nothing in it (but it's only the Ys, Rs
and CNs I'm interested in.) Sheet 4 Col A is a calendar with the
start date 20-12-10 up to whatever today's date is (and beyond as time
goes on.) In Sheet 4 Col B I want the number of Ys of the
corresponding date in Col A, in Col C the number of Rs and in Col D
the number of CNs.


in B1:
=SUMPRODUCT(--(Sheet1!A1:A200=A1),--(Sheet1!H1:H200="Y"))
In C1:
=SUMPRODUCT(--(Sheet1!A1:A200=A1),--(Sheet1!H1:H200="R"))
in D1:
=SUMPRODUCT(--(Sheet1!A1:A200=A1),--(Sheet1!H1:H200="CN"))


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,872
Default 3 results possible on every day. add up the number of each on each day.

Hello,

Am Mon, 23 Jan 2012 22:45:50 +0100 schrieb Claus Busch:

in B1:
=SUMPRODUCT(--(Sheet1!A1:A200=A1),--(Sheet1!H1:H200="Y"))


change the relative ranges to absolute ranges:
=SUMPRODUCT(--(Sheet1!$A$1:$A$200=A1),--(Sheet1!$H$1:$H$200="Y"))



Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
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
Checking the results of a number of IF formula Stu Excel Worksheet Functions 4 April 9th 10 03:46 PM
HOW DO I CALCULATE THE NUMBER OF RESULTS FROM AN ENTIRE ROW sashasaurav Excel Worksheet Functions 5 February 3rd 08 06:11 AM
Vlookup results in a number? Wannano Excel Discussion (Misc queries) 5 April 23rd 07 09:00 PM
Negative number results to show as zero Soccer Guy Excel Discussion (Misc queries) 2 October 27th 06 08:12 PM
random number results mcmil Excel Worksheet Functions 5 June 6th 05 03:34 AM


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