Lets say my data has a column of numbers in A. I want the sum of A unless the number in A is greater than some threshold. Conceptually I want SUM(MIN(A:A, 1000)), but this will return just the single smallest number.
In R there is pmin, which is a parallel minima, so I could write SUM(PMIN(A:A, 1000)) and each value in A is compared against 1000.
In Excel, I could create a new column B that was MIN(A1,1000) and drag it down. But I don't want to create a new column. I want to compute the sum in a single equation. Any solution?
sumif()for this:=SUMIF(A:A, "<1000",A:A )=SUMIF(A:A, "<=1000") + 1000 * COUNTIF(A:A, ">1000")