Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Can anyone shorten this one. (not overly clear on array usage)
I'm sure there is a way to shorten this formula, and i'm sure its by using arrays. But i'm very uneducated when it comes to using arrays fully =SUMIF('4 Week 4cast'!C2:C483,TODAY()+22,'4 Week 4cast'!Q2:Q483)+SUMIF('4 Week 4cast'!C2:C483,TODAY()+23,'4 Week 4cast'!Q2:Q483)+SUMIF('4 Week 4cast'!C2:C483,TODAY()+24,'4 Week 4cast'!Q2:Q483)+SUMIF('4 Week 4cast'!C2:C483,TODAY()+25,'4 Week 4cast'!Q2:Q483)+SUMIF('4 Week 4cast'!C2:C483,TODAY()+26,'4 Week 4cast'!Q2:Q483)+SUMIF('4 Week 4cast'!C2:C483,TODAY()+27,'4 Week 4cast'!Q2:Q483)+SUMIF('4 Week 4cast'!C2:C483,TODAY()+28,'4 Week 4cast'!Q2:Q483) Basicaly just adding up times in one column based on a date range of one week. -- Down'd Pilot ------------------------------------------------------------------------ Down'd Pilot's Profile: http://www.excelforum.com/member.php...o&userid=34954 View this thread: http://www.excelforum.com/showthread...hreadid=546864 |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Can anyone shorten this one. (not overly clear on array usage)
=SUMIF('4 Week 4cast'!C2:C483,"="&TODAY()+22,'4 Week 4cast'!Q2:Q483)-
SUMIF('4 Week 4cast'!C2:C483,""&TODAY()+28,'4 Week 4cast'!Q2:Q483) -- HTH Bob Phillips (remove nothere from the email address if mailing direct) "Down'd Pilot" wrote in message ... I'm sure there is a way to shorten this formula, and i'm sure its by using arrays. But i'm very uneducated when it comes to using arrays fully =SUMIF('4 Week 4cast'!C2:C483,TODAY()+22,'4 Week 4cast'!Q2:Q483)+SUMIF('4 Week 4cast'!C2:C483,TODAY()+23,'4 Week 4cast'!Q2:Q483)+SUMIF('4 Week 4cast'!C2:C483,TODAY()+24,'4 Week 4cast'!Q2:Q483)+SUMIF('4 Week 4cast'!C2:C483,TODAY()+25,'4 Week 4cast'!Q2:Q483)+SUMIF('4 Week 4cast'!C2:C483,TODAY()+26,'4 Week 4cast'!Q2:Q483)+SUMIF('4 Week 4cast'!C2:C483,TODAY()+27,'4 Week 4cast'!Q2:Q483)+SUMIF('4 Week 4cast'!C2:C483,TODAY()+28,'4 Week 4cast'!Q2:Q483) Basicaly just adding up times in one column based on a date range of one week. -- Down'd Pilot ------------------------------------------------------------------------ Down'd Pilot's Profile: http://www.excelforum.com/member.php...o&userid=34954 View this thread: http://www.excelforum.com/showthread...hreadid=546864 |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Can anyone shorten this one. (not overly clear on array usage)
Hi Down'd Pilot,
Try: =SUM(IF(('4 Week 4cast'!C2:C483TODAY()+21)*('4 Week 4cast'!C2:C483<TODAY()+29),'4 Week4cast'!Q2:Q483,)) as an array formula (ie input with Ctrl-Shift-Enter). Cheers "Down'd Pilot" wrote in message ... I'm sure there is a way to shorten this formula, and i'm sure its by using arrays. But i'm very uneducated when it comes to using arrays fully =SUMIF('4 Week 4cast'!C2:C483,TODAY()+22,'4 Week 4cast'!Q2:Q483)+SUMIF('4 Week 4cast'!C2:C483,TODAY()+23,'4 Week 4cast'!Q2:Q483)+SUMIF('4 Week 4cast'!C2:C483,TODAY()+24,'4 Week 4cast'!Q2:Q483)+SUMIF('4 Week 4cast'!C2:C483,TODAY()+25,'4 Week 4cast'!Q2:Q483)+SUMIF('4 Week 4cast'!C2:C483,TODAY()+26,'4 Week 4cast'!Q2:Q483)+SUMIF('4 Week 4cast'!C2:C483,TODAY()+27,'4 Week 4cast'!Q2:Q483)+SUMIF('4 Week 4cast'!C2:C483,TODAY()+28,'4 Week 4cast'!Q2:Q483) Basicaly just adding up times in one column based on a date range of one week. -- Down'd Pilot ------------------------------------------------------------------------ Down'd Pilot's Profile: http://www.excelforum.com/member.php...o&userid=34954 View this thread: http://www.excelforum.com/showthread...hreadid=546864 |
#5
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Can anyone shorten this one. (not overly clear on array usage)
Thanks for all the input, it was a great help -- Down'd Pilot ------------------------------------------------------------------------ Down'd Pilot's Profile: http://www.excelforum.com/member.php...o&userid=34954 View this thread: http://www.excelforum.com/showthread...hreadid=546864 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
defintion of array function | Excel Discussion (Misc queries) | |||
Question to Bob Phillips (or whoever...) | Excel Worksheet Functions | |||
Array | Excel Worksheet Functions | |||
Formula to list unique values | Excel Worksheet Functions | |||
VBA Import of text file & Array parsing of that data | Excel Discussion (Misc queries) |