+ Reply to Thread
Results 1 to 4 of 4

Sum and IF and Index function????

  1. #1
    Registered User
    Join Date
    08-26-2009
    Location
    Washington, DC
    MS-Off Ver
    Excel 2003
    Posts
    2

    Sum and IF and Index function????

    Can someone help please?

    For each unique ID, I need to sum each variable, for multiple variables.

    This is what I want the result to look like:
    DCN2 - T1016 - H0004 - H0005
    123456 - 13 - 4 - 12
    111111 - 5 - 0 - 6

    This is the data I have:
    DCN2 -Code -SumOfUnitsOfService
    123456 -T1016 -8
    123456 -T1016 -1
    123456 -T1016 -4
    123456 -H0004 -4
    123456 -H0005 -12
    111111 -H0005 -2
    111111 -H0005 -2
    111111 -H0005 -2
    111111 -T1016 -2
    111111 -T1016 -2
    111111 -T1016 -1

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Sum and IF and Index function????

    Welcome to the forum.

    You'd be helping yourself if you posted a workbook, Jenny.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Valued Forum Contributor
    Join Date
    08-23-2009
    Location
    Hampshire, UK
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    328

    Re: Sum and IF and Index function????

    I think a pivot table would give the results you want, as shown in the attached file.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    08-26-2009
    Location
    Washington, DC
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Sum and IF and Index function????

    Thanks for the tip, shg.

    Thanks for the answer, Huron.

+ 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