+ Reply to Thread
Results 1 to 4 of 4

More issues with Summing the Squares in Noncongruous columns

  1. #1
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    More issues with Summing the Squares in Noncongruous columns

    Just when I think I think I have it figured out, (see
    http://www.excelforum.com/excel-form...-variable.html
    and
    http://www.excelforum.com/excel-form...d-per-row.html

    I run into a situation that I can't figure out. In this case, I need to calculate the sums of the squares of each row for each column PLUS the last column. So, for column 1 calc
    Row 2 =( Count in Col 1 and 6 ="A") ^2 + (Count in Col 1 and 6 of "R")^2
    Row 3 =( Count in Col 1 and 6 ="A" )^2 + (Count in Col 1 and 6 of "R")^2
    and so on,
    I want the SUM of rows2:20.
    The MMult equations I was using previously do not work because the two columns (1 and 6) are not congruous.
    So, it is the value in H21 that I would like to be able to attain directly with a formula.
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  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: More issues with Summing the Squares in Noncongruous columns

    Maybe ...

    =SUM(MMULT(--(CHOOSE({1,2}, A2:A20, F2:F20)="A"),{1;1})^2)
    +SUM(MMULT(--(CHOOSE({1,2}, A2:A20, F2:F20)="R"),{1;1})^2)
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: More issues with Summing the Squares in Noncongruous columns

    Maybe

    Works great SHG. Thanks

  4. #4
    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: More issues with Summing the Squares in Noncongruous columns

    You're welcome, CB.

+ 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. Replies: 2
    Last Post: 06-03-2015, 12:53 PM
  2. Summing values based on criteria (SUMIF issues)
    By notsamsnead in forum Excel General
    Replies: 4
    Last Post: 08-11-2014, 09:03 PM
  3. vlookup issues with summing data
    By bumpty in forum Excel General
    Replies: 5
    Last Post: 03-03-2011, 09:39 AM
  4. Summing CountIF's across noncongruous ranges
    By ChemistB in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-16-2007, 04:50 PM
  5. Summing Columns-revolves around summing particular items
    By savv32 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-06-2005, 09:05 PM
  6. [SOLVED] Summing Columns-How do I add non-numbered columns in excel?
    By Highlander in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-28-2005, 12:05 PM
  7. Replies: 5
    Last Post: 02-10-2005, 08:06 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