+ Reply to Thread
Results 1 to 5 of 5

Summation by Codes

  1. #1
    Registered User
    Join Date
    07-23-2005
    Posts
    23

    Summation by Codes

    Codes:-------- Responses:
    601BF5 -------- 200
    601BF6 -------- 400
    601BF7 -------- 500
    601BZ5 -------- 200
    601BZ6 -------- 400
    601BZ7 -------- 500

    How would I create a formula which captures "responses" from codes that end in ".7"?
    Last edited by addie; 03-22-2009 at 03:42 PM.

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

    Re: Summation by Codes

    None of those end in ".7", addie.

    To sum the ones that end in "7", =SUMPRODUCT( (RIGHT($A$1:$A$6, 1)="7") * $B$1:$B$6)
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Summation by Codes

    Use standard SUMIF with Wildcard

    =SUMIF(A:A,"*7",B:B)

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Summation by Codes

    Hi,

    one possible solution: create a new column where you extract the last character of your Codes and then do a SUMIF based on that new column.

    Extract the last character of the Codes

    =RIGHT(A1,1)

    If your Codes are in column A, your Responses in column B and your extracted last character is in column C, then the follwoing formula will sum all lines where codes end in 7

    =SUMIF(C1:C199,7,B1:B199)

    hope that helps

  5. #5
    Registered User
    Join Date
    07-23-2005
    Posts
    23

    Re: Summation by Codes

    Thank you all for your quick responses. They were all very helpful!!!

    Shg, quick question on your formula...what if I wanted to add a vlookup formula to the sum product formula?

    How could I pull the response data from another page?

+ 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