+ Reply to Thread
Results 1 to 6 of 6

Sum Count of Numeric Criterion for LAST 5 Rows

Hybrid View

  1. #1
    Sam via OfficeKB.com
    Guest

    Sum Count of Numeric Criterion for LAST 5 Rows

    Hi All,

    I would like a Formula that uses an Input cell (to accommodate changing
    Numeric Criterion) Summing the Count of a Numeric Criterion in the LAST 5
    Rows of a Dynamic Named Range "Data". Named Range "Data" spans 8 Columns and
    many Rows.

    Thanks
    Sam

    --
    Message posted via http://www.officekb.com

  2. #2
    Don Guillett
    Guest

    Re: Sum Count of Numeric Criterion for LAST 5 Rows

    This is looking in col A for text it can't find to find the last
    row>subtracting 4>and summing that range for col B
    =SUM(INDIRECT("b"&MATCH("zzzzz",A:A)-4&":b"&MATCH("zzzzzzz",A:A)))
    this counts col B over 2
    =COUNTIF(INDIRECT("b"&MATCH("zzzzz",A:A)-4&":b"&MATCH("zzzzzzz",A:A)),">2")
    name num 20
    a 1 4
    b 2
    c 3
    d 4
    e 5
    f 6


    --
    Don Guillett
    SalesAid Software
    dguillett1@austin.rr.com
    "Sam via OfficeKB.com" <u4102@uwe> wrote in message
    news:5ef5eaa85a0ae@uwe...
    > Hi All,
    >
    > I would like a Formula that uses an Input cell (to accommodate changing
    > Numeric Criterion) Summing the Count of a Numeric Criterion in the LAST 5
    > Rows of a Dynamic Named Range "Data". Named Range "Data" spans 8 Columns
    > and
    > many Rows.
    >
    > Thanks
    > Sam
    >
    > --
    > Message posted via http://www.officekb.com




  3. #3
    Sam via OfficeKB.com
    Guest

    Re: Sum Count of Numeric Criterion for LAST 5 Rows

    Hi Don,

    Thank you very much for your time and assistance - explanation of Formulas
    much appreciated.

    Cheers,
    Sam

    >Don Guillett wrote:
    >This is looking in col A for text it can't find to find the last row subtracting 4 and summing that range for col B
    >=SUM(INDIRECT("b"&MATCH("zzzzz",A:A)-4&":b"&MATCH("zzzzzzz",A:A)))


    >this counts col B over 2
    >=COUNTIF(INDIRECT("b"&MATCH("zzzzz",A:A)-4&":b"&MATCH("zzzzzzz",A:A)),">2")


    > name num 20
    > a 1 4


    > b 2
    > c 3
    > d 4
    > e 5
    > f 6


    --
    Message posted via OfficeKB.com
    http://www.officekb.com/Uwe/Forums.a...tions/200604/1

  4. #4
    Don Guillett
    Guest

    Re: Sum Count of Numeric Criterion for LAST 5 Rows

    but Doms is better

    --
    Don Guillett
    SalesAid Software
    dguillett1@austin.rr.com
    "Sam via OfficeKB.com" <u4102@uwe> wrote in message
    news:5ef86900f7a7c@uwe...
    > Hi Don,
    >
    > Thank you very much for your time and assistance - explanation of Formulas
    > much appreciated.
    >
    > Cheers,
    > Sam
    >
    >>Don Guillett wrote:
    >>This is looking in col A for text it can't find to find the last row
    >>subtracting 4 and summing that range for col B
    >>=SUM(INDIRECT("b"&MATCH("zzzzz",A:A)-4&":b"&MATCH("zzzzzzz",A:A)))

    >
    >>this counts col B over 2
    >>=COUNTIF(INDIRECT("b"&MATCH("zzzzz",A:A)-4&":b"&MATCH("zzzzzzz",A:A)),">2")

    >
    >> name num 20
    >> a 1 4

    >
    >> b 2
    >> c 3
    >> d 4
    >> e 5
    >> f 6

    >
    > --
    > Message posted via OfficeKB.com
    > http://www.officekb.com/Uwe/Forums.a...tions/200604/1




  5. #5
    Domenic
    Guest

    Re: Sum Count of Numeric Criterion for LAST 5 Rows

    Try...

    =COUNTIF(INDEX(Data,ROWS(Data)-4,1):INDEX(Data,ROWS(Data),0),Criterion)

    Hope this helps!

    In article <5ef5eaa85a0ae@uwe>, "Sam via OfficeKB.com" <u4102@uwe>
    wrote:

    > Hi All,
    >
    > I would like a Formula that uses an Input cell (to accommodate changing
    > Numeric Criterion) Summing the Count of a Numeric Criterion in the LAST 5
    > Rows of a Dynamic Named Range "Data". Named Range "Data" spans 8 Columns and
    > many Rows.
    >
    > Thanks
    > Sam


  6. #6
    Sam via OfficeKB.com
    Guest

    Re: Sum Count of Numeric Criterion for LAST 5 Rows

    Hi Domenic,

    Thank you very much. Formula worked Great!

    Don Guillet also provided a method for a solution. However, Your Formula
    syntax gives me a clearer image.

    Cheers,
    Sam

    Domenic wrote:
    >Try...
    >
    >=COUNTIF(INDEX(Data,ROWS(Data)-4,1):INDEX(Data,ROWS(Data),0),Criterion)
    >
    >Hope this helps!


    --
    Message posted via OfficeKB.com
    http://www.officekb.com/Uwe/Forums.a...tions/200604/1

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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