+ Reply to Thread
Results 1 to 6 of 6

Loop between date and make a sum depending condition

  1. #1
    Registered User
    Join Date
    10-26-2020
    Location
    Vidin, Bulgaria
    MS-Off Ver
    2016
    Posts
    3

    Loop between date and make a sum depending condition

    Hello,
    I have the next problem: I have a 2 sheet book with data:
    sheet1 - dates in columns and products in rows, as there mus be working and now working days;
    sheet2 - start and end date of product use for each person (in rows), where depending them and index to make a sum.
    I attach a screenshot that shows example.
    I will be very gratefull if I get answer how to make that.
    Thank you in beforehand.
    Yours, Plamen
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by patronaja; 10-26-2020 at 08:52 AM.

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Loop between date and make a sum depending condition

    Could you attached this sample file, please.
    Check yellow banner at the top of page.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Registered User
    Join Date
    10-26-2020
    Location
    Vidin, Bulgaria
    MS-Off Ver
    2016
    Posts
    3

    Re: Loop between date and make a sum depending condition

    Hello,
    I have added the excell file, excuse me for forgeting to do it.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Loop between date and make a sum depending condition

    Hello patronaja and Welcome to Excel Forum.
    I had to change some of the layout on Sheet1 to make the following array entered formula** work:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    Test the formula by adding the date 10/4/2020 into cell J4 on Sheet1.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    10-26-2020
    Location
    Vidin, Bulgaria
    MS-Off Ver
    2016
    Posts
    3

    Re: Loop between date and make a sum depending condition

    Thank you a lot, JeteMc - it will be from big help to me.

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Loop between date and make a sum depending condition

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

+ 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. Unable to make a cell change colour depending on another cells date.
    By rjhardman in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-09-2015, 12:13 PM
  2. [SOLVED] Copy Data from multiple worksheets depending on date condition
    By ghostly1 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-08-2015, 11:03 AM
  3. [SOLVED] Help Edit Loop that deletes Rows based on Date condition.
    By swade730 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-08-2015, 02:16 PM
  4. [SOLVED] Make date condition
    By yukioh in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-08-2014, 05:26 AM
  5. Replies: 3
    Last Post: 02-02-2014, 04:26 AM
  6. [SOLVED] How can I make For-Next loop with date?
    By GreenInIowa in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-14-2005, 01:05 PM
  7. RE: How can I make For-Next loop with date?
    By JS2004R6 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-14-2005, 01:05 AM

Tags for this Thread

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