+ Reply to Thread
Results 1 to 4 of 4

Value Range to Count & Sum into Table

  1. #1
    Registered User
    Join Date
    03-09-2012
    Location
    N/A
    MS-Off Ver
    MS 365
    Posts
    70

    Value Range to Count & Sum into Table

    Hi

    I am hoping to count and value lines of information into parameters summarised in a Table

    On the attached, I would like to count the number of days in column Q which fit into each range in column AH, e.g. count all days within 0>30, then sum all values within 0>30; and continue this exercise through to >365 on the table

    I have attempted formula but been unsuccessful

    If you can help it would be much appreciated

    Thank you
    Attached Files Attached Files
    Last edited by overbomb; 11-09-2017 at 06:36 AM. Reason: Solved

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

    Re: Value Range to Count & Sum into Table

    I would separate the min and max days into separate columns then use a simple COUNTIFS function for the Count and a SUMIFS function for the Value.

    If you insist on keeping both numbers in the same cell, you can use these:

    AI5 =COUNTIFS(Q:Q,">="&LEFT(AH5,FIND(">",AH5)-1)+0,Q:Q,"<="&MID(AH5,FIND(">",AH5)+1,LEN(AH5))+0) Dragged down through AI10
    AI11 =COUNTIF(Q:Q,">365")

    AJ5 =SUMIFS(R:R,Q:Q,">="&LEFT(AH5,FIND(">",AH5)-1)+0,Q:Q,"<="&MID(AH5,FIND(">",AH5)+1,LEN(AH5))+0) Dragged down through AJ10
    AJ11 =SUMIF(Q:Q,">365",R:R)

  3. #3
    Registered User
    Join Date
    03-09-2012
    Location
    N/A
    MS-Off Ver
    MS 365
    Posts
    70

    Re: Value Range to Count & Sum into Table

    Thank you so much for your help - such a relief

    Will look at formula to understand logic

    Many thanks, Lola

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

    Re: Value Range to Count & Sum into Table

    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. Replies: 4
    Last Post: 02-24-2017, 02:06 AM
  2. [SOLVED] Count only filtered range in Table
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-10-2017, 03:25 AM
  3. Replies: 14
    Last Post: 09-29-2014, 02:58 PM
  4. [SOLVED] Count formula not count hidden cells in table
    By tlacloche in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-06-2013, 02:35 PM
  5. [SOLVED] Pull ranges from Table A and give max match count compared to another range
    By sans in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 05-26-2012, 11:35 AM
  6. Replies: 2
    Last Post: 02-11-2012, 09:33 PM
  7. Range.columns.count property returns wrong count after union operation
    By gopinan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-13-2008, 04:48 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