sum(if...) help needed!

J

Jarek

Hello,
Some time ago I created formula using sum & if to sum up values if
previous 3 colums are specific text.

For example: if A colums is xx and B column has yy and C column has zz
then sum up values from column D specific rows in which A is xx, B is yy
and C is zz (A, B and C columns are text values).

I came up with such formula:
=SUM(IF(('Sheet1'!$C$12:'Sheet1'!$C$443="xx")*('Sheet1'!$D$12:'Sheet1'!$D$443="yy")*('Sheet1'!$B$12:'Sheet1'!$B$443="zz");'Sheet1'!E$12:'Sheet1'!Q$443))

Now the trick is that straight after enetring this formula it does not
work. I had to click something (some function in Excel) which caused
this formula to work and after I did click it the formula changed and
looks like this:
{=SUM(IF(('Sheet1'!$C$12:'Sheet1'!$C$443="xx")*('Sheet1'!$D$12:'Sheet1'!$D$443="yy")*('Sheet1'!$B$12:'Sheet1'!$B$443="zz");'Sheet1'!E$12:'Sheet1'!Q$443))}
added brackets at beginning and end.

Problem is that I have to add some values to it and copying the formula
to other cell does not make it work. I still have to click something to
make it work, but I forgot what it was and cannot work it out!
Does anybody maybe knows what it is and what I have to click???

Please help! I am desperate as this is HUGE file with a lot of data and
variables in it !!!

Thank you in advance.
 
T

Tyro

The formula with the braces {} around it is an array formula. You enter it
by pressing Ctrl+Shift+Enter, not just Enter. Do not type in the {}.
Excel adds those to indicate that the formula is an array formula

Tyro
 
J

Jarek

THANK YOU ! ! !
I new it was someting simple ...
You saved me a lot of trouble!
Thank you once again!

Tyro pisze:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top