IF STATEMENT in multiple workbooks.

Y

Yunus Patel

Hello,
Can anyone help me.

{=SUM(IF([SAP05.xls]May!$C$6:$C$231=$D$2,IF([SAP05.xls]May!$E$6:$E$231=$D72,[SAP05.xls]May!$K$6:$K$231)))}

I am trying to copy the above formula for July (Jul!), but am unable t
get the required figure that I need from the SAP05.xls workbook.

I have noticed that everytime I try to copy this formula the 2 'curvy
brackets at the start and end of the formula i.e. {....} don't appear
I am convinced this is the reason this formula doesn't work.
I would like to know what these curvy brackets represent and how t
'include' them in them in the formula.

Please hel
 
K

Krishnakumar

Hi Yunus,

It's an array formula. So you have to confirm with Ctrl+Shift+Enter
i.e,
Hold down the Ctrl and Shift keys while hitting Enter key.


You can also try this,

=SUMPRODUCT(--('[SAP05.xls]May!$C$6:$C$231=$D$2),--('[SAP05.xls]May!$E$6:$E$231=$D72),'[SAP05.xls]May!$K$6:$K$231)

Normal Enter

HT
 
B

Bob Phillips

The curvy brackets should be entered by Excel, you don't type them.

Enter the formula

=SUM(IF([SAP05.xls]May!$C$6:$C$231=$D$2,IF([SAP05.xls]May!$E$6:$E$231=$D72,[
SAP05.xls]May!$K$6:$K$231)))

in a cell, and rather than Enter, hit Ctrl-Shift-Enter together. the formula
in the formula bar will then show the curly brackets if you have done it
correctly.

--
HTH

Bob Phillips

"Yunus Patel" <[email protected]>
wrote in message
news:[email protected]...
 
D

Duke Carey

The curly brackets signify an array formula (you can read about them in
Excel's Help file) and they appear when you commit a formula by pressing
Ctrl-Shift-Enter
 
Top