+ Reply to Thread
Results 1 to 19 of 19

filtering numbers?

Hybrid View

  1. #1
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: filtering numbers?

    I think I am dense to this one...

    Can you please tell me exactly how you would arrive at 16.60?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  2. #2
    Registered User
    Join Date
    03-31-2010
    Location
    suffolk
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: filtering numbers?

    NBVC
    I've tried to make the attatchment a little clearer.

    Alex G
    Last edited by Alex G; 04-04-2010 at 03:49 PM.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: filtering numbers?

    Note that your result in B4 is not actually 20. It is actually 20.38888889

    So not sure if you wanted to use the actual result or the rounded resulted.

    If you want to use actual result then:

    =SUMIF(A5:A113,"<="&B4)+COUNTIF(A5:A113,">"&B4)*B4

    gives 17.38

    If you want to use the rounded result, then:

    =SUMIF(A5:A113,"<="&ROUND(B4,0))+COUNTIF(A5:A113,">"&ROUND(B4,0))*ROUND(B4,0)

    gives 16.60

    Is that what you were looking for?

  4. #4
    Registered User
    Join Date
    03-31-2010
    Location
    suffolk
    MS-Off Ver
    Excel 2007
    Posts
    29

    Re: filtering numbers?

    NBVC
    Thanks for the formula. It works fine for the columns I attatched in the earlier post but then I copied & pasted it to a different spread sheet, changed the data ranges and manually checked the result. For some reason it came out incorrect. Have I made a mistake during the movement of the formula?

    =SUMIF(B79:B114,"<="&ROUND(C5,0))+COUNTIF(B79:B114,">"&ROUND(C5,0))*ROUND(C5,0)

    For simplicity the rounded version is fine.


    Alex G

+ 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