+ Reply to Thread
Results 1 to 5 of 5

Can anyone shorten this one. (not overly clear on array usage)

  1. #1
    Registered User
    Join Date
    05-30-2006
    Posts
    2

    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.

  2. #2
    Bob Phillips
    Guest

    Re: 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" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > 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
    >




  3. #3
    Don Guillett
    Guest

    Re: 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
    [email protected]
    "Down'd Pilot" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > 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. #4
    macropod
    Guest

    Re: Can anyone shorten this one. (not overly clear on array usage)

    Hi Down'd Pilot,

    Try:
    =SUM(IF(('4 Week 4cast'!C2:C483>TODAY()+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" <[email protected]>
    wrote in message
    news:[email protected]...
    >
    > 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. #5
    Registered User
    Join Date
    05-30-2006
    Posts
    2

    Thanks

    Thanks for all the input, it was a great help

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1