+ Reply to Thread
Results 1 to 13 of 13

Help with automatically finding cells below a certain title

  1. #1
    Registered User
    Join Date
    01-09-2018
    Location
    singapore
    MS-Off Ver
    excel mac 2011
    Posts
    10

    Help with automatically finding cells below a certain title

    Hi there,

    I'm quite a noob at excel and figured this would be the best place to get help.

    I have a sales report - type excel where there are several groups of tables .

    Screen Shot 2018-01-09 at 11.19.21 PM.png

    So i have about 500 tables like the two above.

    I have 4 names, e.g john, james.

    I would like to find the totals of each table's total where those relevant names are there.

    e.g i need a way to "find" all "James", go 10 rows down and pull these values into a total..


    Is this possible?

    ( In the attachment at the bottom there is a "totals" table..)
    Attached Files Attached Files
    Last edited by johnstamosiscool; 01-09-2018 at 11:43 AM. Reason: added sample excel

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523

    Re: Help with automatically finding cells below a certain title

    Attaching a sample workbook enables others to work on your problem:

    To attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and click "manage attachments" to open the upload window.


    To add a file to a post

  3. #3
    Registered User
    Join Date
    01-09-2018
    Location
    singapore
    MS-Off Ver
    excel mac 2011
    Posts
    10

    Re: Help with automatically finding cells below a certain title

    Thanks for the quick reply, I've attached a sheet of what i need (With such a small sheet it's easy to manually find john, james etc and just add the totals but the actual sheet has about 500 of these smaller tables...

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523

    Re: Help with automatically finding cells below a certain title

    I wouldn't know how to do it with just formulas, I can do something with VBA though.
    Click button in attached workbook

    Please Login or Register  to view this content.
    Attached Files Attached Files

  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: Help with automatically finding cells below a certain title

    Here's an array formula that works:

    =SUMPRODUCT(IFERROR(($B$1:$Q$13=$A26)*$B$11:$Q$23,0))

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    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

  6. #6
    Spammer
    Join Date
    01-08-2015
    Location
    Cali, Colombia
    MS-Off Ver
    365
    Posts
    302

    Re: Help with automatically finding cells below a certain title

    Hi, to all!

    You can use this formula:
    [B26] : =SUMIF(A$1:Q$13,A26,A$11:Q$23)

    And drag it down. Blessings!

  7. #7
    Registered User
    Join Date
    01-09-2018
    Location
    singapore
    MS-Off Ver
    excel mac 2011
    Posts
    10

    Re: Help with automatically finding cells below a certain title

    Quote Originally Posted by davesexcel View Post
    I wouldn't know how to do it with just formulas, I can do something with VBA though.
    Click button in attached workbook

    Please Login or Register  to view this content.
    This seems to be exactly what i need, however i'm getting an error when trying the same code in my larger sheet.

    what could be the issue/or which sections of the code should i adapt to which parameters of my document?
    Screen Shot 2018-01-10 at 12.35.19 AM.png

  8. #8
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523

    Re: Help with automatically finding cells below a certain title

    I would assume it can't find what you are looking for, so there would be no unionRng.
    I know you had supplied a sample, but it should have been similar to what your actual workbook layout is.

  9. #9
    Registered User
    Join Date
    01-09-2018
    Location
    singapore
    MS-Off Ver
    excel mac 2011
    Posts
    10

    Re: Help with automatically finding cells below a certain title

    Quote Originally Posted by davesexcel View Post
    I would assume it can't find what you are looking for, so there would be no unionRng.
    I know you had supplied a sample, but it should have been similar to what your actual workbook layout is.
    I'm sorry about that, would this attachment help in any way?

    It is the full sheet without any data in it. (for cell range purposes?)

    Imagine that each table has a name, descr, and price as in the smaller sample(s).


    Let me know if this could help my case!

    Thanks,
    Attached Files Attached Files

  10. #10
    Spammer
    Join Date
    01-08-2015
    Location
    Cali, Colombia
    MS-Off Ver
    365
    Posts
    302

    Re: Help with automatically finding cells below a certain title

    It would be good that, for mere decency, do not ignore the contributions that are provided, that makes the person who helps you lose interest, and thus get less help.

    For your new file, just change the ranges, like this:
    [B523] : =SUMIF(A$3:DO$511,A523,A$13:DO$521)

    And drag it down. Blessings!

  11. #11
    Registered User
    Join Date
    01-09-2018
    Location
    singapore
    MS-Off Ver
    excel mac 2011
    Posts
    10

    Re: Help with automatically finding cells below a certain title

    Quote Originally Posted by johnmpl View Post
    It would be good that, for mere decency, do not ignore the contributions that are provided, that makes the person who helps you lose interest, and thus get less help.

    For your new file, just change the ranges, like this:
    [B523] : =SUMIF(A$3:DO$511,A523,A$13:DO$521)

    And drag it down. Blessings!

    hi there, terribly sorry for overlooking. i was quite interested in the macro on a personal level, apologies for disregarding your previous replies. your system seems to work!! Thank you.

  12. #12
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523

    Re: Help with automatically finding cells below a certain title

    Try this.
    Please Login or Register  to view this content.

  13. #13
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523

    Re: Help with automatically finding cells below a certain title

    Quote Originally Posted by johnmpl View Post
    .......that makes the person who helps you lose interest, and thus get less help.......
    It may not have been overlooked, I had acknowledged your answer, but a monitor decided to delete it.

+ 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] Macro for Finding column with title and copying it
    By Haidar123 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-01-2014, 09:38 AM
  2. Replies: 4
    Last Post: 10-19-2012, 12:09 PM
  3. Automatically change the title in a column
    By clovelly in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 01-26-2012, 09:52 AM
  4. Excel 2007 : automatically catagorize and title rows
    By theinexplicablefuzz in forum Excel General
    Replies: 0
    Last Post: 11-14-2011, 04:21 PM
  5. Finding a column with a specific title
    By Dippy1169 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-09-2010, 03:09 PM
  6. making text in Title Case automatically
    By tweety127 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-09-2006, 07:10 PM
  7. update graph title automatically
    By boo_hiss_boo in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-22-2005, 04:39 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