counting dependent on date

silentcoates

New Member
Joined
Oct 11, 2005
Messages
41
Hello again,

this is another difficult one to explain, but here goes.

I am producing a spreadsheet that has to produce data on a weekly basis. I need a

formula, if there is one, that can pull information from a sheet between two dates.

example:

in cell A3 I have a list of dates of when the data was entered. In the other columns I

have various bits of data (B - Names, C- a score as a percentage, D - a yes no

value). I need a formula for each bit of data. So on another sheet I need to show

say the average score for a person between two date ranges, on another the number

of yes values between the same dates. I understand I will need to enter slightly

different formulas depandent on the data I am looking at.

Also I need to count the number of times a persons name appears in column B

between two dates.

Hope you can help.
 
silentcoates said:
hi

The last post does work. I need this to work on multiple cells that will update automtically as I add new data in the input columns (A,B and c)

using the ctrl, shift and enter does work but how do I do it for all cells?
Do you mean something like this? The formulas are now:
Code:
I2: =AVERAGE(IF(($A$3:$A$200> F$2)*($A$3:$A$200< G$2)*($C$3:$C$200<>""),IF($B$3:$B$200=H2,$C$3:$C$200,""))) (Ctrl+Shift+Enter)
J2: =SUMPRODUCT(--($A$3:$A$200>F$2),--($A$3:$A$200<G$2),--($B$3:$B$200=H2),--($D$3:$D$200=J$1))
K2: =SUMPRODUCT(--($A$3:$A$200>F$2),--($A$3:$A$200<G$2),--($B$3:$B$200=H2),--($D$3:$D$200=K$1))
L2: =COUNTIF($B$3:$B$200,H2)
Select I2:L2 and drag the 'Fill Handle' down or copy and paste down. The ranges in the formula have been extended down to row 200 to allow for additional data in columns A:D. You can make these ranges larger or smaller as required. You can add further names in column H and copy the formulas down further as well.

If this is not what you meant, you will have to explain again more clearly.
Mr Excel.xls
ABCDEFGHIJKL
1Date 1Date 2NameAv ScoreYesNoNo. in B
2DateNameScoreYes/No09/11/200517/11/2005Sue56.0%115
305/11/2005Fred10.0%YesAnn52.7%214
406/11/2005Bill25.0%NoBill25.0%103
507/11/2005Sue68.0%YesFred95.2%103
608/11/2005Ann23.0%Yes
709/11/2005Bill30.2%No
810/11/2005Ann58.4%Yes
911/11/2005Sue56.0%Yes
1012/11/2005SueNo
1113/11/2005Fred95.2%Yes
1214/11/2005Bill25.0%Yes
1315/11/2005Ann24.0%No
1416/11/2005Ann75.8%Yes
1517/11/2005Sue23.1%Yes
1618/11/2005Sue23.8%No
1719/11/2005Fred56.0%Yes
Count on Date
 
Upvote 0

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,399
Latest member
alchavar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top