Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Scott
 
Posts: n/a
Default using sum(if function

I am trying to open a network workbook and sum the values from column I that
match todays month and year from column A into another local workbook. I
have verified the data and the answer should be 2 but the answer comes back 0.

=SUM(IF((MONTH('\\site\[workbook.xls]worksheet'!$A$4:$A$1000)=MONTH($A$2))*(YEAR('\\sit e\[workbook.xls]worksheet'!$A$4:$A$1000)=YEAR($A$2)),'\\site\[workbook.xls]worksheet'!$I$4:$I$1000))

I seem to remember using the { } around the formula once before for a
situation like this but when I do it just shows the formula in the cell. Any
help?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default using sum(if function

enter the formula with ctrl + shift & enter and the curly brackets will be
applied automatically


--

Regards,

Peo Sjoblom


"Scott" wrote in message
...
I am trying to open a network workbook and sum the values from column I
that
match todays month and year from column A into another local workbook. I
have verified the data and the answer should be 2 but the answer comes
back 0.

=SUM(IF((MONTH('\\site\[workbook.xls]worksheet'!$A$4:$A$1000)=MONTH($A$2))*(YEAR('\\sit e\[workbook.xls]worksheet'!$A$4:$A$1000)=YEAR($A$2)),'\\site\[workbook.xls]worksheet'!$I$4:$I$1000))

I seem to remember using the { } around the formula once before for a
situation like this but when I do it just shows the formula in the cell.
Any
help?



  #3   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default using sum(if function

Hi

Try this:
=SUMPRODUCT((MONTH('\\site\[workbook.xls]worksheet'!$A$4:$A$1000)=MONTH($A$2))*(YEAR('\\sit e\[workbook.xls]worksheet'!$A$4:$A$1000)=YEAR($A$2)),--('\\site\[workbook.xls]worksheet'!$I$4:$I$1000))

Andy


"Scott" wrote in message
...
I am trying to open a network workbook and sum the values from column I
that
match todays month and year from column A into another local workbook. I
have verified the data and the answer should be 2 but the answer comes
back 0.

=SUM(IF((MONTH('\\site\[workbook.xls]worksheet'!$A$4:$A$1000)=MONTH($A$2))*(YEAR('\\sit e\[workbook.xls]worksheet'!$A$4:$A$1000)=YEAR($A$2)),'\\site\[workbook.xls]worksheet'!$I$4:$I$1000))

I seem to remember using the { } around the formula once before for a
situation like this but when I do it just shows the formula in the cell.
Any
help?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I add and IF function to a SUMIF function? adscrim Excel Worksheet Functions 4 January 21st 06 12:32 PM
SUMIF Function Inside SUMPRODUCT Function Abdul Waheed Excel Worksheet Functions 17 September 19th 05 04:24 PM
SumIF function ACDenver Excel Discussion (Misc queries) 2 August 17th 05 09:47 PM
Sumif function with remote cell references hennis Excel Worksheet Functions 1 August 12th 05 01:54 AM
SUMIF function yak10 Excel Worksheet Functions 0 February 12th 05 05:12 PM


All times are GMT +1. The time now is 03:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"