+ Reply to Thread
Results 1 to 6 of 6

SUM cells with same content and multiplied by quantity of each

  1. #1
    Registered User
    Join Date
    11-19-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    32

    SUM cells with same content and multiplied by quantity of each

    I have no idea if this is even possible but im trying to figure out how to make my life a whole lot easier. Basically i need a formula that will look at the message content on a seperate sheet (Data sheet on the attached example) and multiple by the volume of the message type to return a value on a seperate sheet.

    The problem i have is our messages appear in the data as seperate lines based on the entire message content, with a quantity of how many times that exact message was sent on a day DESPITE there being many variations of a message, they may all only equate to 1 or 2 actual message types.

    In the example you will see the Data tab showing Example message 1, Example message 1.1 etc. All of the Example message 1-1.5 are actually the same message type (same applies to Example message 2) and i need to be able to have formula that groups and counts these to return a value by message type * by the quantity per day. So in the example, Example message 1 would return a result of 10 on the main sheet.

    Is this possible? Can it be done?
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: SUM cells with same content and multiplied by quantity of each

    Try this, copied down...
    =SUMIF(Data!$B$1:$B$12,After!A2&"*",Data!$A$1:$A$12)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    11-19-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: SUM cells with same content and multiplied by quantity of each

    Can't get that to work... Is there something perhaps that could return a result of message code 0021 whenever there was a message type consisting over Example message 1 - 1.5? Is that possible? And from there, multiple each that has a message code of 0021 by the message type volumes?

    Sorry if this isnt making sense, its difficult to even explain.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: SUM cells with same content and multiplied by quantity of each

    It worked fine for me with your sample data...
    A
    B
    C
    1
    Yours Mine
    2
    Example message 1
    10
    10
    3
    Example message 2
    15
    15

    C2=SUMIF(Data!$B$1:$B$12,After!A2&"*",Data!$A$1:$A$12)

    THis was on "After" sheet

  5. #5
    Registered User
    Join Date
    11-19-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: SUM cells with same content and multiplied by quantity of each

    I get 10 for each. How do i vary it for different messages? ie how is it different to get 15?

  6. #6
    Registered User
    Join Date
    11-19-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: SUM cells with same content and multiplied by quantity of each

    sorry, drag drop worked. Thanks. I will try and apply this.

+ 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. vba to check if answer from 2 cells with =int(rand()*number) multiplied together is equal
    By marshall_massive in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-18-2013, 06:33 AM
  2. Replies: 2
    Last Post: 02-08-2013, 04:08 PM
  3. [SOLVED] Highlight a cell if its content doesn't match another cells content
    By noxygen in forum Excel General
    Replies: 4
    Last Post: 04-12-2012, 04:36 AM
  4. Trying to sum 4 cells where 1 is multiplied without exceeding a value.
    By Raybras in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-17-2010, 07:21 PM
  5. Replies: 5
    Last Post: 11-23-2009, 06:24 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