Hi,
I want to Sum up the difference between base value= 5 and cell value
if the table is like
A2:2
A3:6
A4:7
I want the summation of excess than base value=5
which is equal to 3
Regards,
---Yogi
Hi,
I want to Sum up the difference between base value= 5 and cell value
if the table is like
A2:2
A3:6
A4:7
I want the summation of excess than base value=5
which is equal to 3
Regards,
---Yogi
I don't understand how you get 3 from your result of 15 with base of 5 - surely it's 0 - ie:
=MOD(SUM(A2:A4),5)
Ah, hang on maybe you mean
=SUMPRODUCT(--(A2:A4>5),A2:A4-5)
or even
=SUMIF(A2:A4,">5")-5*COUNTIF(A2:A4,">5")
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
7+6+2 =15
surplus after dividing by 5 is 0
3 lots of 5 no surplus
what do you mean?
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and now happily retired
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
what if I need to count the excess time spend instead of just numbers
what if I need to count the excess time spend instead of just numbers
Hey Guys Kindly check the following,
is this ok
---Yogi
you can get the same result
with
=SUMIF(B4:B6,">"&B1,B4:B6)-COUNTIF(B4:B6,">"&B1)*B1
Hi Martin, in this instance there is no need to set the optional sum_range in the SUMIF given the intial range contains values to SUM, eg:
=SUMIF(B4:B6,">"&B1)-COUNTIF(B4:B6,">"&B1)*B1
(resulting cell set to format of h:mm:ss)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks