+ Reply to Thread
Results 1 to 4 of 4

Summation

  1. #1
    Registered User
    Join Date
    02-08-2010
    Location
    Boston, Massachusetts
    MS-Off Ver
    Excel 2007
    Posts
    28

    Summation

    Hello all,

    I have a very simple question. I have three columns.

    Column A Column B Column C

    e 5 =5/(5+4+3+6)
    e 4 =4(5+4+3+6)
    e 3 =3(5+4+3+6)
    e 6 =6(5+4+3+6)
    f 4 and so on
    f 1
    f 2
    f 3
    g 1
    g 1
    g 1

    I was hoping to obtain a formula or vba code that would place the correction fraction in column C. This fraction would be the value in B divided by the sum of all the values in B for which the value in A is the same.

    So I need some kind of conditional sum / vlookup or something. Any help you could give me would be greatly appreciated. Thank you very much

    Michael

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,054

    Re: Summation

    Here, try this in C1:

    =$B1/SUMIF($A$1:$A$100,$A1,$B$1:$B$100)

    and pull down.

    Extend range (red) as much as you need
    Never use Merged Cells in Excel

  3. #3
    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: Summation

    In C1 and copy down, =B1 / SUMIF($A$1:$A$11, A1, $B$1:$B$11)
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    02-08-2010
    Location
    Boston, Massachusetts
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: Summation

    Thanks so much guys. This was great

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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