ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Can anyone shorten this one. (not overly clear on array usage) (https://www.excelbanter.com/excel-worksheet-functions/91358-can-anyone-shorten-one-not-overly-clear-array-usage.html)

Down'd Pilot

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


Bob Phillips

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




Don Guillett

Can anyone shorten this one. (not overly clear on array usage)
 
try this idea where b1 is your starting date
=SUMPRODUCT((A3:A23=B1)*(A3:A23<B1+7)*B3:B23)

--
Don Guillett
SalesAid Software

"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




macropod

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




Down'd Pilot

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



All times are GMT +1. The time now is 07:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com