Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Down'd Pilot
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
macropod
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Down'd Pilot
 
Posts: n/a
Default 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
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
defintion of array function R..VENKATARAMAN Excel Discussion (Misc queries) 2 April 21st 06 03:21 AM
Question to Bob Phillips (or whoever...) vezerid Excel Worksheet Functions 5 December 11th 05 11:44 AM
Array Brad Excel Worksheet Functions 9 October 17th 05 09:00 PM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM
VBA Import of text file & Array parsing of that data Dennis Excel Discussion (Misc queries) 4 November 28th 04 10:20 PM


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