+ Reply to Thread
Results 1 to 4 of 4

Looking for a sum or count formula

  1. #1
    Registered User
    Join Date
    10-11-2010
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2007
    Posts
    14

    Looking for a sum or count formula

    I am trying to add up data based on another tab in my workbook using specific criteria. I have attached the file. The first tab lists demographic data by job title, job group,gender and ethnicity, but on then the next tab I need to total it by job group, gender and ethnicity. I was hoping to use a sum or count formula to auto-populate the second tab, but I can't get it to work.

    Once the Job Group # column headings were named the same, this solved it:
    E6 =SUMIF('Workforce Analysis'!$D:$D,MID($B6,1,255),'Workforce Analysis'!G:G)
    M6 =SUMIF('Workforce Analysis'!$D:$D,MID($B6,1,255),'Workforce Analysis'!O:O)
    Attached Files Attached Files
    Last edited by karenbr; 10-13-2010 at 01:15 AM. Reason: solved
    Karen

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Looking for a sum or count formula

    If you make the titles in Column A consistent or add a column in Workforce that categorizes each item in Column A as under the items in Column A of the Job Group sheet.. then you can use formula like this in E6:

    =SUMIF('Workforce Analysis'!$A:$A,MID($A6,FIND(" ",$A6)+1,255),'Workforce Analysis'!F:F)

    copied down and across the Male section,

    Then in M6 use:

    =SUMIF('Workforce Analysis'!$A:$A,MID($A6,FIND(" ",$A6)+1,255),'Workforce Analysis'!O:O)

    copied down and across Female section.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    10-11-2010
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Looking for a sum or count formula

    I wasn't able to get that to work, but I'm sure it's the way I have this set up. This may help: Workforce column D is the same data as Job Group column B so if I make their column headings the same, would that work?
    Last edited by karenbr; 10-12-2010 at 04:23 PM. Reason: wasn't clear

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Looking for a sum or count formula

    That is probably easier...

    try in E6: =SUMIF('Workforce Analysis'!$D:$D,$B6,'Workforce Analysis'!F:F)

    and in M6: =SUMIF('Workforce Analysis'!$D:$D,$B6,'Workforce Analysis'!O:O)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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