+ Reply to Thread
Results 1 to 4 of 4

Whats the formula for....

  1. #1
    Registered User
    Join Date
    04-25-2013
    Location
    Paris
    MS-Off Ver
    Excel 2003
    Posts
    11

    Whats the formula for....

    Hi,

    Anyone remembers or knows what the formula is to GROUP same values in different lines same column (ex column A) and then add the values they have in the column next to it (example column B)

    To describe better:

    A B
    HelloWorld 10
    HelloWorld 56
    HelloWorld 96
    HelloWorld 22
    GoodbyeW 10
    HelloWorld 15

    So basically what I want is that the formula is able to detect all the "HelloWorld" and give me the total sum which is 199

    Thanks!
    Vanessa

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Whats the formula for....

    Hi,

    In C1 copied down
    =SUMIF(A1:A6,A1,B1:B6)

    It would be more normal to first extract a unique list of the column A values in a new column (say E) and use the formula above against that list

    i.e.
    In E1 and copied to E2
    =SUMIF(A1:A6,E1,B1:B6)
    Last edited by Richard Buttrey; 08-14-2013 at 04:28 AM.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    04-25-2013
    Location
    Paris
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Whats the formula for....

    IT works, the only problem is that it still gives me a value next to the second "helloworld". I think there is an option to just put a "0" if a value has already been assigned to that reference. Because if it puts values in every single reference, it is hard to distinguish which one is the real sum and which one is it. Not sure if I am making any sense.

  4. #4
    Forum Contributor
    Join Date
    08-14-2013
    Location
    Here and there
    MS-Off Ver
    Excel 2010
    Posts
    376

    Re: Whats the formula for....

    Hi,

    If cell A1 did not contain the word "HelloWorld" then the formula would need to be adjusted to read:

    =SUMIF(A1:A6,"HelloWorld",B1:B6)

    Cheers,

+ 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. Can someone tell me whats wrong with this formula???
    By bopsgtir in forum Excel General
    Replies: 8
    Last Post: 07-29-2011, 01:23 PM
  2. Whats wrong with this formula?
    By blue-bullet in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-20-2009, 06:51 AM
  3. Whats wrong with this formula?
    By Shane Moore in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-06-2006, 02:57 AM
  4. Whats wrong with my formula?
    By DKerr in forum Excel General
    Replies: 2
    Last Post: 09-05-2006, 07:02 AM
  5. Formula appears as =RC[-3]+RC[-1] Whats this?
    By Concrete Guy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-14-2006, 04:20 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