+ Reply to Thread
Results 1 to 6 of 6

Sum of Two Attribute Greater than X

  1. #1
    Spammer
    Join Date
    06-09-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Microst Office 365 Plus
    Posts
    149

    Sum of Two Attribute Greater than X

    Data structure: 10 columns (variables), 6000 rows (observation).

    Objective 1 was to find for how many rows, value in one columns exceed 0.9. I used:

    Please Login or Register  to view this content.
    Objective 2: Now I want to find, for how many rows, sum of any 2 variables exceed 0.9. By above method, this would require 90 conditions !. Eventually after this, I also want to do, sum of any 3 variables exceeding 0.9, which well would be 700+ conditions.

    Is there a better way of doing this?
    Attached Files Attached Files
    Last edited by MoldyBread; 11-15-2018 at 11:10 PM.

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Sum of Two Attribute Greater than X

    Can you attach a sample workbook?

    Go Advanced -> Manage Attachments -> Upload

  3. #3
    Spammer
    Join Date
    06-09-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Microst Office 365 Plus
    Posts
    149

    Re: Sum of Two Attribute Greater than X

    Sure. Just added one.

  4. #4
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Sum of Two Attribute Greater than X

    Why don't you use a countif in Column L for anything >0.9 rather than check every cell individually?

  5. #5
    Spammer
    Join Date
    06-09-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Microst Office 365 Plus
    Posts
    149

    Re: Sum of Two Attribute Greater than X

    Because I also wanted to manually inspect observations falling within criteria. I am not concerned anymore with that tho, I am just wondering if I can check for sum without specifying all the combination inside countifs formula.
    Last edited by AliGW; 11-16-2018 at 01:38 AM.

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Sum of Two Attribute Greater than X

    The sums criteria requires you 45 combinations to consider in each row.

    The attached borrows shamelessly from a solution José Augusto posted last week. They are somewhat similar problems ... especially regarding the helper table.

    Find the helper table A:J in sheet 'Lookups' that returns all 769 position combinations for any 10 item row col1+col2 through col9+col10.

    Column W of that same sheet
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    returns a row number for combinations of two only. There are 45 of them.

    On the main sheet column L
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    counts the number of 2 cell sum combinations > 0.9 in each row.

    Then P3 sums those up
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by FlameRetired; 11-16-2018 at 01:53 AM.
    Dave

+ 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 Update XML Attribute
    By matrix2280 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-14-2018, 01:46 PM
  2. How to map xml attribute from xml map with cell using VBA
    By kiryl in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-26-2018, 05:36 PM
  3. calculate attribute dependency
    By sundas shafi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-05-2016, 10:09 AM
  4. [SOLVED] Get Webpage XML Value/attribute
    By avinash11 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-23-2016, 04:49 AM
  5. Total sum of items with attribute in row
    By Staszkinson in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-03-2015, 06:18 AM
  6. attribute VB_usermemid=0
    By vientito in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-25-2013, 08:51 PM
  7. Struggling to calculate sum by attribute
    By geoconsulting in forum Excel General
    Replies: 5
    Last Post: 01-13-2010, 10:11 AM

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