+ Reply to Thread
Results 1 to 12 of 12

Determine value from multiple column conditions

  1. #1
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Determine value from multiple column conditions

    Using data found in columns DATA N, DATA R, & DATA S of the attached workbook, I would like to determine the value in cell RESULTS I6.

    Basically, I want to know the average Max % Gain with M Cap < 100M & Float < 1M for cell RESULTS I6.

    I've tried... {=AVERAGE(COUNTIFS(DATA!N:N,DATA!R:R,"<=100000000",DATA!S:S,"<=1000000"))}
    Attached Files Attached Files
    Last edited by cableghost; 06-23-2021 at 11:52 AM.

  2. #2
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,060

    Re: Determine value from multiple column conditions

    Delete, not appropriate.
    Last edited by josephteh; 06-23-2021 at 01:33 AM.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Determine value from multiple column conditions

    Try

    in I6

    =IFERROR(AVERAGEIFS(DATA!N:N,DATA!R:R," < 100000000",DATA!S:S," < 100000000"),0)

    in I7

    =IFERROR(AVERAGEIFS(DATA!N:N,DATA!R:R," < 100000000",DATA!S:S," >=100000000",DATA!S:S," < 500000000"),0)

    Repeat for other ranges.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Determine value from multiple column conditions

    Thanks JT.

    The following does not work for cell RESULTS M6. By my count, there are 10 rows that match these conditions.
    Please Login or Register  to view this content.
    Edit: It works... I neglected to remove the space in front of the <> signs.
    Last edited by cableghost; 06-23-2021 at 11:51 AM.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Determine value from multiple column conditions

    Remove leading/trailing blanks before the ">" and "<" These were added to get over the "security" on the forum.

    I got an answer of 57%

  6. #6
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Determine value from multiple column conditions

    Thanks. Yep, I had figured that out just prior to your reply.

  7. #7
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Determine value from multiple column conditions

    What if I wanted to add another condition... I only want to consider a calculation if there are at least 5 results, otherwise 0. I assume I would add in a COUNTIF here?

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Determine value from multiple column conditions

    Without checking add COUNFIFS: you can use the criteria from AVERAGEIFS ......

    Untested ....(embedded spaces again because of firewall)


    Formula: copy to clipboard
    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Determine value from multiple column conditions

    I receive an error... Too few arguments for this function.

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Determine value from multiple column conditions

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  11. #11
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Determine value from multiple column conditions

    Great thanks! I see adding the additional argument of ,"".

  12. #12
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Determine value from multiple column conditions

    One more twist to this... iferror enter 0 is not working. If the condition of '>=5' is not met, the cell is blank. I guess this is ok... better than an DIV error showing.

+ 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. [SOLVED] Sum column with multiple conditions
    By cableghost in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-11-2021, 08:46 PM
  2. [SOLVED] Multiple IF conditions to determine the status.
    By prvnrk in forum Excel General
    Replies: 3
    Last Post: 03-30-2020, 10:14 PM
  3. Replies: 3
    Last Post: 05-17-2019, 02:27 PM
  4. Multiple Conditions add value to column
    By vcollins in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-27-2015, 01:51 PM
  5. sum column using multiple conditions
    By losthero1990 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-27-2013, 11:57 PM
  6. Automatically determine If statement from multiple conditions selected?
    By Marco123 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-28-2011, 08:43 PM
  7. The formula to determine if with 3 separate if conditions.
    By Clipper in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-15-2005, 07:05 PM

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