+ Reply to Thread
Results 1 to 4 of 4

Countif and sumif columns based on another cells as parameters

  1. #1
    Forum Contributor
    Join Date
    09-19-2017
    Location
    Taguig City, Philippines
    MS-Off Ver
    Microsoft Excel 2016
    Posts
    120

    Countif and sumif columns based on another cells as parameters

    Hi,

    Hoping someone could give me a hand, I know this is just a simple formula and i might actually just missing a thing or two here.

    So the problem is this, based on the attached file, I have a list of figures in column H.

    And what I need are formulas for column D3 to E5 that will return the ff :

    For column D - Count of figures in column H where the value is less than or equal to the amount in cell C3 ;
    - Count of figures in column H where the value is equal to the amount in cell B4 but less than the amount in cell C4;
    - Count of figures in column H where the value is greater than or equal to the amount in cell B5.

    For column E - Sum of figures in column H where the value is less than or equal to the amount in cell C3 ;
    - Sum of figures in column H where the value is equal to the amount in cell B4 but less than the amount in cell C4;
    - Sum of figures in column H where the value is greater than or equal to the amount in cell B5.

    As the values in cell B3 to C5 might change from time to time, I would have wanted the formula to reference those cells.

    I hope this makes sense. And than you in advance for the help! Godbless!
    Attached Files Attached Files

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Countif and sumif columns based on another cells as parameters

    Try these:

    D3 =COUNTIF(H:H,"<="&C3)
    D4 =COUNTIFS(H:H,">="&B4,H:H,"<="&C4)
    D5 =COUNTIF(H:H,">="&B5)

    E3 =SUMIF(H:H,"<="&C3)
    E4 =SUMIFS(H:H,H:H,">="&B4,H:H,"<="&C4)
    E5 =SUMIF(H:H,">="&B5)

  3. #3
    Forum Contributor
    Join Date
    09-19-2017
    Location
    Taguig City, Philippines
    MS-Off Ver
    Microsoft Excel 2016
    Posts
    120

    Re: Countif and sumif columns based on another cells as parameters

    Hi 63falcondude ,

    This works perfectly, thank you so much!

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Countif and sumif columns based on another cells as parameters

    You're welcome. Thanks for the rep!

+ 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] Sumif based on the RESULT of a Countif
    By Betsy Simpkins in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-13-2018, 01:16 PM
  2. Countif and Sumif based on year?
    By shhhhh22 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-16-2016, 06:30 PM
  3. Using =SUMIF,=COUNTIF, and =AVERAGE to find specific values in columns
    By ExcelNub83 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-07-2015, 07:53 PM
  4. [SOLVED] Average cells based on outside parameters
    By GaryAE in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-30-2014, 05:38 PM
  5. [SOLVED] Excel - SUMIF/COUNTIF multiple columns
    By heatwave in forum Excel General
    Replies: 4
    Last Post: 06-16-2014, 08:45 AM
  6. Sumif a range based on multiple parameters
    By ifthenelsenull in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-14-2014, 05:21 AM
  7. COUNTIF & SUMIF formulas needed when decided based on entry into 2 cells
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-18-2013, 07:58 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