+ Reply to Thread
Results 1 to 4 of 4

auto-sum non-numeric values across multiple tables

Hybrid View

  1. #1
    Registered User
    Join Date
    10-07-2020
    Location
    Washington State
    MS-Off Ver
    MS Office 365
    Posts
    2

    auto-sum non-numeric values across multiple tables

    I am trying to auto-sum non-numeric values across multiple tables (tabs) and can do both of these separately, but need a combined formula.

    My goal: I have demographic data on multiple different tabs that needs to be calculated onto just one tab. I want to be able to see a break down as such: from each tab, number of people who said "male", number of people who said "female", etc.

    Is there a formula I can use, or do I have to use macros or something (which I am not very good at/comfortable with)?

    On the attached spreadsheet, the "template" tab is the one in which the data will be pulled from and the "report tracking" tab is where I want the data to auto-sum.
    Attached Files Attached Files
    Last edited by OhHappyDay; 10-23-2020 at 05:32 PM.

  2. #2
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2505
    Posts
    1,524

    Re: auto-sum non-numeric values across multiple tables

    Welcome to the forum.
    I guess that is doable by combining functions INDIRECT, SUMPRODUCT and COUNTIFS.
    If you don't succeed, please post a sample workbook here, as described on yellow banner above.

  3. #3
    Registered User
    Join Date
    10-07-2020
    Location
    Washington State
    MS-Off Ver
    MS Office 365
    Posts
    2

    Re: auto-sum non-numeric values across multiple tables

    Added the spreadsheet; thank you. I am new to the forum.

  4. #4
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2505
    Posts
    1,524

    Re: auto-sum non-numeric values across multiple tables

    I used your tabs list in the Toc sheet to create a named dynamic range "Tabs" with this formula:
    Formula: copy to clipboard
    =OFFSET(ToC!$C$6,,,COUNTA(ToC!$C$6:$C$1000),1)

    Then I use that named range in the indirect countif:
    Formula: copy to clipboard
    =SUMPRODUCT(COUNTIF(INDIRECT("'"&Tabs&"'!B3"),A4))

    That formula is for the Race totals. In cell B4 and copied down.
    The B3 in the INDIRECT function INDIRECT("'"&Tabs&"'!B3") must be manually changed for the other totals, like this for Ethnicity in B14 and copied down:
    Formula: copy to clipboard
    =SUMPRODUCT(COUNTIF(INDIRECT("'"&Tabs&"'!B4"),A14))

    I added a copy of Template tab named Template2 so I could test the formula.
    As you add more tabs, they will populate your list and also added to the dynamic named range Tabs I created.

    Please check file attached and let us know how it goes.

    Good luck!
    Attached Files Attached Files

+ 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. Auto Numbering with Multiple Tables
    By hlpsom1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-16-2014, 02:08 PM
  2. Replies: 10
    Last Post: 03-07-2014, 08:58 PM
  3. [SOLVED] vba macros to force user to input numeric values for numeric values with hyphen
    By Abdur_rahman in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-28-2013, 01:05 PM
  4. [SOLVED] UDF to Vlookup multiple delimited values (numeric/non-numeric) and sum found values
    By Geert Rottiers in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2013, 09:30 AM
  5. auto synch with multiple website tables
    By jrtaylor in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-06-2011, 11:33 AM
  6. Replies: 0
    Last Post: 11-19-2009, 11:48 AM
  7. Compare Multiple Numeric Values
    By stacy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-12-2005, 02: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