+ Reply to Thread
Results 1 to 5 of 5

Add numbers in a column based on the title

Hybrid View

  1. #1
    Registered User
    Join Date
    03-10-2023
    Location
    mashhad
    MS-Off Ver
    2017
    Posts
    2

    Add numbers in a column based on the title

    Adding the numbers under a title and displaying the sum in front of the title
    Attached Images Attached Images

  2. #2
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,868

    Re: Add numbers in a column based on the title

    Try this,

    B1
    =IF(ISNUMBER(A1),"",SUM(A2:INDIRECT("A"&IFERROR(AGGREGATE(15,3,ROW(A2:$A$100)/ISTEXT(A2:$A$100),1)-1,100))))

    copied down.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-10-2023
    Location
    mashhad
    MS-Off Ver
    2017
    Posts
    2

    Re: Add numbers in a column based on the title

    Thank you very much, this solution solved my problem

  4. #4
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,868

    Re: Add numbers in a column based on the title

    You are welcome.

  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 2406
    Posts
    44,662

    Re: Add numbers in a column based on the title

    An alternative, avoiding the use of INDIRECT, which can cause performance issues, as it recalculates EVERY time anything is changed:

    =IF(ISNUMBER(A1),"",SUM(A2:INDEX(A:A,AGGREGATE(15,6,ROW(A3:A17)/(ISERROR(1/(1/A3:A17))),1)-1)))
    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

+ 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. [SOLVED] Return column title based on smallest value by row?
    By realrookie in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-29-2015, 12:58 PM
  2. [SOLVED] Returning Column Title based on cell value
    By paulstuartbullock in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-06-2015, 06:34 PM
  3. Displaying title based on numbers
    By MPIF in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-06-2013, 11:56 AM
  4. Replies: 4
    Last Post: 10-19-2012, 12:09 PM
  5. Keep/Delete a column based on Title, not letter
    By elementalsurf7 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-22-2010, 01:47 PM
  6. Column title based on criteria
    By asdvender in forum Excel General
    Replies: 9
    Last Post: 11-02-2008, 02:57 AM
  7. Sumif based on column A and title of another column
    By Rusty in forum Excel General
    Replies: 7
    Last Post: 10-18-2005, 08:05 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