Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
I#m looking for a Formula that returns me the Value of a specific day of a month. Example: Colum A Dates Colum B Values. Now I need the Average Value for each day of the month. Now I want in a new sheet the folowing: Average Value of 1st of all Month Average Value of 2nd of all Month Average Value of 3rd of all Month etc. Sure I need the Formula for each of that, My main Problem how to "Filter" all the 1st, 2nd etc. Thanks so long |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
You don't need to filter, put this in a cell. =AVERAGE(IF(DAY(A1:A100)=ROW(A1),B1:B100,FALSE)) Array entered with Ctrl+Shift+Enter then drag down 31 rows for days 1 - 31 Mike "notaclue" wrote: Hi, I#m looking for a Formula that returns me the Value of a specific day of a month. Example: Colum A Dates Colum B Values. Now I need the Average Value for each day of the month. Now I want in a new sheet the folowing: Average Value of 1st of all Month Average Value of 2nd of all Month Average Value of 3rd of all Month etc. Sure I need the Formula for each of that, My main Problem how to "Filter" all the 1st, 2nd etc. Thanks so long |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
Thanks a lot for your help guys!! got a solution by myself in the meantime =AVERAGE(IF((DAY('High low'!C6:C245)=17)*('High low'!C6:C245<0),'High low'!B6:B245)) BUT: I discovered that I need the workdays otherwise it's pretty useless to me so the next question how do I exclude the Weekends or better how do i get the 1st, 2nd, 3rd etc workday of the Month? "Mike H" wrote: Hi, You don't need to filter, put this in a cell. =AVERAGE(IF(DAY(A1:A100)=ROW(A1),B1:B100,FALSE)) Array entered with Ctrl+Shift+Enter then drag down 31 rows for days 1 - 31 Mike "notaclue" wrote: Hi, I#m looking for a Formula that returns me the Value of a specific day of a month. Example: Colum A Dates Colum B Values. Now I need the Average Value for each day of the month. Now I want in a new sheet the folowing: Average Value of 1st of all Month Average Value of 2nd of all Month Average Value of 3rd of all Month etc. Sure I need the Formula for each of that, My main Problem how to "Filter" all the 1st, 2nd etc. Thanks so long |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
I altered you ranges to suit the test data I had set up. This now only averages Mon - Fri =AVERAGE(IF((DAY('High Low'!A1:A100)=1)*(WEEKDAY('High Low'!A1:A100,2)<6)*('High Low'!B1:B100 0),'High Low'!B1:B100)) Array entered Mike "notaclue" wrote: Hi, Thanks a lot for your help guys!! got a solution by myself in the meantime =AVERAGE(IF((DAY('High low'!C6:C245)=17)*('High low'!C6:C245<0),'High low'!B6:B245)) BUT: I discovered that I need the workdays otherwise it's pretty useless to me so the next question how do I exclude the Weekends or better how do i get the 1st, 2nd, 3rd etc workday of the Month? "Mike H" wrote: Hi, You don't need to filter, put this in a cell. =AVERAGE(IF(DAY(A1:A100)=ROW(A1),B1:B100,FALSE)) Array entered with Ctrl+Shift+Enter then drag down 31 rows for days 1 - 31 Mike "notaclue" wrote: Hi, I#m looking for a Formula that returns me the Value of a specific day of a month. Example: Colum A Dates Colum B Values. Now I need the Average Value for each day of the month. Now I want in a new sheet the folowing: Average Value of 1st of all Month Average Value of 2nd of all Month Average Value of 3rd of all Month etc. Sure I need the Formula for each of that, My main Problem how to "Filter" all the 1st, 2nd etc. Thanks so long |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi, great it works!
Thanks again just a question to it the Day range is 31 days , right? but the Workingday of a month are average 21, rigt? Do I need to alter the formula now just 21 times (day 1 to 21) or 31 times day1 to day31). I`m a bid confused what the formula now excaxtly tells me. To make it clear 1 need the average of 1st working day until the 21st (23rd at most) working day. I tried to alter it 31 times (day1 to day 31 of a calender month) but now I can't find out where are the working day and where aren't. I hope it is understandable what I mean. Greatings "Mike H" wrote: Hi, I altered you ranges to suit the test data I had set up. This now only averages Mon - Fri =AVERAGE(IF((DAY('High Low'!A1:A100)=1)*(WEEKDAY('High Low'!A1:A100,2)<6)*('High Low'!B1:B100 0),'High Low'!B1:B100)) Array entered Mike "notaclue" wrote: Hi, Thanks a lot for your help guys!! got a solution by myself in the meantime =AVERAGE(IF((DAY('High low'!C6:C245)=17)*('High low'!C6:C245<0),'High low'!B6:B245)) BUT: I discovered that I need the workdays otherwise it's pretty useless to me so the next question how do I exclude the Weekends or better how do i get the 1st, 2nd, 3rd etc workday of the Month? "Mike H" wrote: Hi, You don't need to filter, put this in a cell. =AVERAGE(IF(DAY(A1:A100)=ROW(A1),B1:B100,FALSE)) Array entered with Ctrl+Shift+Enter then drag down 31 rows for days 1 - 31 Mike "notaclue" wrote: Hi, I#m looking for a Formula that returns me the Value of a specific day of a month. Example: Colum A Dates Colum B Values. Now I need the Average Value for each day of the month. Now I want in a new sheet the folowing: Average Value of 1st of all Month Average Value of 2nd of all Month Average Value of 3rd of all Month etc. Sure I need the Formula for each of that, My main Problem how to "Filter" all the 1st, 2nd etc. Thanks so long |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You need to check 31 days because sometimes day 31 will be a weekday and be
counted and sometimes a weekend and won't but you don't have to alter the fromula, simply edit it it like this =AVERAGE(IF((DAY('High Low'!A1:A100)=Row(a1))*(WEEKDAY('High Low'!A1:A100,2)<6)*('High Low'!B1:B100 0),'High Low'!B1:B100)) note that '1' has been changed to row(a1) which returns a 1 and if you drag it down will return 2 etc for each day of the month. If you do this then you must make the ranges absolute with $A$1 etc or they will increment when dragged. Mike "notaclue" wrote: Hi, great it works! Thanks again just a question to it the Day range is 31 days , right? but the Workingday of a month are average 21, rigt? Do I need to alter the formula now just 21 times (day 1 to 21) or 31 times day1 to day31). I`m a bid confused what the formula now excaxtly tells me. To make it clear 1 need the average of 1st working day until the 21st (23rd at most) working day. I tried to alter it 31 times (day1 to day 31 of a calender month) but now I can't find out where are the working day and where aren't. I hope it is understandable what I mean. Greatings "Mike H" wrote: Hi, I altered you ranges to suit the test data I had set up. This now only averages Mon - Fri =AVERAGE(IF((DAY('High Low'!A1:A100)=1)*(WEEKDAY('High Low'!A1:A100,2)<6)*('High Low'!B1:B100 0),'High Low'!B1:B100)) Array entered Mike "notaclue" wrote: Hi, Thanks a lot for your help guys!! got a solution by myself in the meantime =AVERAGE(IF((DAY('High low'!C6:C245)=17)*('High low'!C6:C245<0),'High low'!B6:B245)) BUT: I discovered that I need the workdays otherwise it's pretty useless to me so the next question how do I exclude the Weekends or better how do i get the 1st, 2nd, 3rd etc workday of the Month? "Mike H" wrote: Hi, You don't need to filter, put this in a cell. =AVERAGE(IF(DAY(A1:A100)=ROW(A1),B1:B100,FALSE)) Array entered with Ctrl+Shift+Enter then drag down 31 rows for days 1 - 31 Mike "notaclue" wrote: Hi, I#m looking for a Formula that returns me the Value of a specific day of a month. Example: Colum A Dates Colum B Values. Now I need the Average Value for each day of the month. Now I want in a new sheet the folowing: Average Value of 1st of all Month Average Value of 2nd of all Month Average Value of 3rd of all Month etc. Sure I need the Formula for each of that, My main Problem how to "Filter" all the 1st, 2nd etc. Thanks so long |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=SUMPRODUCT(--(DAY(A1:A100)=1),B1:B100)
for the first of the month =SUMPRODUCT(--(DAY(A1:A100)=2),B1:B100) for the second of the month, etc. -- Gary''s Student - gsnu200789 "notaclue" wrote: Hi, I#m looking for a Formula that returns me the Value of a specific day of a month. Example: Colum A Dates Colum B Values. Now I need the Average Value for each day of the month. Now I want in a new sheet the folowing: Average Value of 1st of all Month Average Value of 2nd of all Month Average Value of 3rd of all Month etc. Sure I need the Formula for each of that, My main Problem how to "Filter" all the 1st, 2nd etc. Thanks so long |
#8
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() -- thanks, John "notaclue" wrote: Hi, I#m looking for a Formula that returns me the Value of a specific day of a month. Example: Colum A Dates Colum B Values. Now I need the Average Value for each day of the month. Now I want in a new sheet the folowing: Average Value of 1st of all Month Average Value of 2nd of all Month Average Value of 3rd of all Month etc. Sure I need the Formula for each of that, My main Problem how to "Filter" all the 1st, 2nd etc. Thanks so long |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
excel to make the days cary over month to month automaticly | New Users to Excel | |||
Excel 2003 month to month data change grid | Excel Discussion (Misc queries) | |||
Retrieve data for previous 3, 6, 12 month given current month | Excel Worksheet Functions | |||
When using MONTH function on Blank Cell!! Returns Month=Jan! | Excel Discussion (Misc queries) | |||
transfer cell $ amount to other sheet month-to-month without overc | Excel Discussion (Misc queries) |