+ Reply to Thread
Results 1 to 13 of 13

Formula to add based on DAY

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Formula to add based on DAY

    Hello:

    Please refer to attached file.
    On every Monday moring i will have inventory count and enter the numbers for Monday in column C:K.
    Then i will add all purchases bewteen Tue and Sun as shown.
    I need formula in cell A34:A39 which will give the dates for SUN.
    Then i need formula in cell C34:K39 to give the usage for the week.
    I have manually add the formula in cell C35:K36

    Let me know if you have any questions.
    Thanks.

    Riz
    Attached Files Attached Files

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Formula to add based on DAY

    Not really sure if this is what you want so give this one a try
    Enter C34 copy across and down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by AlKey; 02-20-2017 at 02:34 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Formula to add based on DAY

    Hello Allkey:

    Need to tweak slightly.
    Please refer to attached file.
    Your results shows in cell C40 down.
    The result should be C34:K37

    Let me know if you have any questions.
    Thanks.
    Attached Files Attached Files

  4. #4
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,281

    Re: Formula to add based on DAY

    Hello rizmomin,
    Refer attach file. In this file using sumifs & sumif formula with criteria based on date.
    Attached Files Attached Files


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Formula to add based on DAY

    try this
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Formula to add based on DAY

    Hello Allkey:

    Works great...
    Now i need Date @ cell A34,A35,A36,A37,A38 so that B34,B35,B36,B37,B38 is SUN

    Please let me know if you have any questions.
    Thanks.

    Riz

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Formula to add based on DAY

    Enter first day of the month in cell A33
    then enter formula in A34 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and in B34
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by AlKey; 02-20-2017 at 05:36 PM.

  8. #8
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Formula to add based on DAY

    Hello Alkey:

    Thanks a lot...
    Riz

  9. #9
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Formula to add based on DAY

    Hello Alkey:

    Please refer to attached file.
    Same sheet, but now i need weekly Total for each item for week ending for dates in cell A34:A37
    I have entered manually in cell C34:C36.

    Let me know if you have any questions.
    Thanks.

    Riz
    Attached Files Attached Files

  10. #10
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Formula to add based on DAY

    Hello avk:

    Your solution works also (above #4), Thanks a lot
    Riz

  11. #11
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,659

    Re: Formula to add based on DAY

    Try: A34
    =$A$2+CHOOSE(WEEKDAY($A$2),0,6,5,4,3,2,1)
    A35=A34+7
    Drag down

    C34:
    =SUMIFS(C$2:C$32,$A$2:$A$32,"<="&$A34,$A$2:$A$32,">="&A34-6)

    Drag down
    Quang PT

  12. #12
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,281

    Re: Formula to add based on DAY

    Try in "C34"
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and copy paste right upto "K34"

    In "C35"
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and copy paste across.
    Assume their is no weeklyoff.
    If you need to calculate with workday or networkdays also do. But in that case you need to create list of weeklyoff
    and for networkdays : To calculate the number of workdays between two dates, you can use the NETWORKDAYS function. NETWORKDAYS automatically excludes weekends, and it can optionally exclude a custom list of holidays as well.

  13. #13
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Formula to add based on DAY

    Hello avk & bebo:

    Thanks a lot, it works

    Riz

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 10-19-2016, 08:43 AM
  2. Replies: 5
    Last Post: 04-12-2016, 11:30 PM
  3. Covert Current Formula based Sheet to Macro Based
    By Tyrion16 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-01-2014, 08:34 AM
  4. Replies: 9
    Last Post: 04-18-2013, 09:27 AM
  5. Replies: 0
    Last Post: 03-13-2013, 12:25 PM
  6. Replies: 2
    Last Post: 02-01-2013, 01:57 PM
  7. match, sum based on max. freight based on furthest distance formula.
    By simpson in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 11-30-2012, 02:01 PM

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