If Formula great than 7 scenarios
On Jun 25, 5:42*pm, Pete_UK wrote:
I based my testing on your example - you will need to adjust the cell
references to suit your real data (instead of G2 you will probably
have Y2). With the example data occupying A1:G4, I used I2 for the
company A result and J2 for the company B result. I put this array*
formula in I2:
=SUM(IF(B2:G2=10,10,B2:G2))
and this array* formula in J2:
=SUM(IF(B2:G2=10,B2:G2-10,0))
and got the results 55 and 16 as expected. I copied the formulae down
and got 45, 10 and 52, 12 for the other rows.
* Array formulae need to be committed using CTRL-SHIFT-ENTER (CSE)
rather than the normal ENTER. If you do this correctly then Excel will
wrap curly braces around the formula when viewed in the formula bar -
do not type these yourself. If you edit the formula you will need to
use CSE again.
Hope this helps.
Pete
On Jun 26, 1:03*am, William G wrote:
Pete,
THANK YOU!!!!! It worked great!!!
I'm new to this CSE, where can I find more information about how that
works, when to use it, etc...?
Thanks again.
William
|