I think I am dense to this one...
Can you please tell me exactly how you would arrive at 16.60?
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.
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.
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?
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
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks