+ Reply to Thread
Results 1 to 9 of 9

Returning a date when the sum of the values reaches a certain value

  1. #1
    Registered User
    Join Date
    05-15-2023
    Location
    Qatar
    MS-Off Ver
    2016
    Posts
    4

    Lightbulb Returning a date when the sum of the values reaches a certain value

    Hello Everyone,
    I am new to this section and this first post. I require your help in getting a solution for my below scenario.

    What i want is a formula that returns me the date value. The date value should be such that the sum of of the values below should add 12.
    For eg
    01May 02May 03May 04May 05May 06May 07May
    2 4 2 2 2 4 4

    The value i require is "05May" as the sum of value from left to right should add upto 12.

    Please assist and let me know in case you need further information.
    Last edited by V08IPS; 05-16-2023 at 05:10 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Returning a date when the sum of the values reaches a certain value

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: Returning a date when the sum of the values reaches a certain value

    Hi,V08IPS,
    Assuming that your sample data starts from A1 and the corresponding values from A2 than, in A3 insert a formula

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

    and drag to the right
    Attached Files Attached Files
    Diana Tanase


    If the solutions offered helped you to solve your problem, then mark the thread as SOLVED (thread tools in the top menu) and you can click on * to add reputation to those who helped you, as a way to say thank you !

  4. #4
    Registered User
    Join Date
    05-15-2023
    Location
    Qatar
    MS-Off Ver
    2016
    Posts
    4
    Quote Originally Posted by AliGW View Post
    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    Thank you. This is well noted.

  5. #5
    Registered User
    Join Date
    05-15-2023
    Location
    Qatar
    MS-Off Ver
    2016
    Posts
    4
    Quote Originally Posted by tanasedn View Post
    Hi,V08IPS,
    Assuming that your sample data starts from A1 and the corresponding values from A2 than, in A3 insert a formula

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

    and drag to the right
    Thank you. This helps. But i have a lot of rows and columns and i might have to creat a different sheet to get the increasing values using your formula.
    What i am looking for is something like this in the attachment.



    Please assist.
    Attached Files Attached Files

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Returning a date when the sum of the values reaches a certain value

    Try this in cell E9 and copy down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    I do not come up with the anticipated 3-May-23 you show in the second row. I get 2-May-23 with this formula. What am I missing?
    Dave

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Returning a date when the sum of the values reaches a certain value

    Although this will return what your sample expects. In E9 and copied down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    05-15-2023
    Location
    Qatar
    MS-Off Ver
    2016
    Posts
    4

    Re: Returning a date when the sum of the values reaches a certain value

    Thank you FlameRetired. This is very close to what i want.
    I have also found another solution. Hope it will help other users aswell.

    "Cltr +Shift +Enter" for Array
    =INDEX($C$1:$L$1,MATCH(TRUE,SUBTOTAL(9,OFFSET($C2,0,0,1,COLUMN($C2:$L2)-COLUMN($C2)+1))>=12,0))

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Returning a date when the sum of the values reaches a certain value

    Good deal. Thank you for the feedback and marking your thread Solved.

+ 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. forecast a date when average value reaches a known value in excel
    By Grace86 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-01-2022, 06:43 PM
  2. [SOLVED] VBA code to sum values, then stop when it reaches desired value
    By jeromenrique in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-06-2020, 12:43 PM
  3. displaying a date when a row reaches a certain value
    By sfay6304 in forum Excel General
    Replies: 4
    Last Post: 10-20-2014, 06:40 PM
  4. [SOLVED] find text apply changes if it reaches specified date.
    By vlady in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-11-2013, 01:51 AM
  5. Replies: 1
    Last Post: 04-13-2013, 10:17 AM
  6. Returning Values based on date falling between Date ranges
    By honest1122 in forum Excel General
    Replies: 5
    Last Post: 06-29-2012, 05:10 PM
  7. returning values from a date range
    By jaydee63 in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 01-08-2009, 08:13 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