+ Reply to Thread
Results 1 to 7 of 7

How to: sum of the numbers in a row after the latest 1 number in the columns

  1. #1
    Registered User
    Join Date
    05-05-2022
    Location
    USA
    MS-Off Ver
    365
    Posts
    4

    How to: sum of the numbers in a row after the latest 1 number in the columns

    Hello everyone, I have a question regarding sum. I have several rows of data and I want to have a function which will help to have the sum of the numbers in a row after the latest 1 number in the columns.*

    For example if you look at the first row there are three 1's and i want to have the sum after the latest 1 which is oct 21-pm and similarly for rest.

    Please help me with this?
    Attached Files Attached Files
    Last edited by AliGW; 05-06-2022 at 03:24 AM. Reason: Title changed - please think more carefully about your thread titles in future!

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Regarding which function to use

    What is the expected result of AF2 cell?


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,193

    Re: Regarding which function to use

    ... and if there isn't a "1" in the row?
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  4. #4
    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,780

    Re: Regarding which function to use

    In AF2 copied down:

    =SUMPRODUCT((COLUMN($A2:$AE2)>LOOKUP(2,1/($A2:$AE2=1),COLUMN($A2:$AE2)))*$A2:$AE2)

    You may wish to update your profile - I think you meant to type 365, not 360 (there is no 360).

    Please take a moment to read the forum rules. I have updated your thread title to bring it into line with our expectations.
    Attached Files Attached Files
    Last edited by AliGW; 05-06-2022 at 03:26 AM. Reason: Note about thread titles.
    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.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: How to: sum of the numbers in a row after the latest 1 number in the columns

    If 1 is a valid value for the SUM for a month, then you will need something a bit more complicated:


    =IFERROR(SUM(INDEX($A2:$AE2,AGGREGATE(14,6,COLUMN($A2:$AE2)/(($A2:$AE2=1)*(ISNUMBER(SEARCH("Count",$A$1:$AE$1)))),1)+1):AE2),"")
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  6. #6
    Registered User
    Join Date
    05-05-2022
    Location
    USA
    MS-Off Ver
    365
    Posts
    4

    Re: How to: sum of the numbers in a row after the latest 1 number in the columns

    Thank you so much everyone. My query has been solved now.

  7. #7
    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,780

    Re: How to: sum of the numbers in a row after the latest 1 number in the columns

    If you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

+ 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. Right function, Left function, Mid function to extract values in column A
    By bjnockle in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 06-14-2020, 03:14 PM
  2. COUNTUNIQUE Function in Google Sheets; Excel lacks a direct counterpart to this function?
    By PivotTablePSHomage in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-18-2018, 05:27 AM
  3. Replies: 3
    Last Post: 08-14-2017, 06:26 AM
  4. Calling function inside function. (aka nested function)
    By jakopak in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2015, 05:58 AM
  5. Replies: 13
    Last Post: 04-08-2014, 05:46 AM
  6. [SOLVED] IF Function referencing IsNumber, Match, Left function on separate sheets
    By Touch9713 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-12-2013, 10:09 PM
  7. Replies: 1
    Last Post: 03-21-2012, 11:22 AM

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