Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Andy
 
Posts: n/a
Default Excel Conditional Sum

To Whom it may concern:

I am working with data that I learned in the Nursing Reportiing webcast last
week.

When I create the table & go to copy the formula & up the month by one the
data does not update. Below are the codes one copied & one created when using
the conditional sum wizard:

=SUM(IF('PNB Raw'!$A$2:$A$253="PN3b",IF('PNB Raw'!$C$2:$C$253=4,IF('PNB
Raw'!$D$2:$D$253=2005,'PNB Raw'!$H$2:$H$253,0),0),0))
=SUM(IF('PNB Raw'!$A$2:$A$253="PN3b",IF('PNB Raw'!$C$2:$C$253=4,IF('PNB
Raw'!$D$2:$D$253=2005,'PNB Raw'!$H$2:$H$253,0),0),0))

Any thoughts why the data doesn't update & only returns the value of 0?
--
Thanks,
Andy
  #2   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre
 
Posts: n/a
Default Excel Conditional Sum

It seems like you have a couple of issues with this formula:

=SUM(IF('PNB Raw'!$A$2:$A$253="PN3b",IF('PNB Raw'!$C$2:$C$253=4,IF('PNB
Raw'!$D$2:$D$253=2005,'PNB Raw'!$H$2:$H$253,0),0),0))

First, to answer your initial question, I believe that is an array formula
and must be commited by holding down [Ctrl][Shift] when you press [Enter],
instead of just pressing [Enter].
(You'll know you did it right if Excel puts braces { } around your
formula....you can't type them in yourself)

Second, this non-array formula is probably easier to work with:

=SUMPRODUCT(('PNB Raw'!$A$2:$A$253="PN3b")*('PNB Raw'!$C$2:$C$253=4)*('PNB
Raw'!$D$2:$D$253=2005)*('PNB Raw'!$H$2:$H$253))

Note_1: You can commit that formula by just pressing [Enter].
Note_2: In case of text wrapping, there are no spaces in that formula.

Post back if you have questions.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Andy" wrote:

To Whom it may concern:

I am working with data that I learned in the Nursing Reportiing webcast last
week.

When I create the table & go to copy the formula & up the month by one the
data does not update. Below are the codes one copied & one created when using
the conditional sum wizard:

=SUM(IF('PNB Raw'!$A$2:$A$253="PN3b",IF('PNB Raw'!$C$2:$C$253=4,IF('PNB
Raw'!$D$2:$D$253=2005,'PNB Raw'!$H$2:$H$253,0),0),0))
=SUM(IF('PNB Raw'!$A$2:$A$253="PN3b",IF('PNB Raw'!$C$2:$C$253=4,IF('PNB
Raw'!$D$2:$D$253=2005,'PNB Raw'!$H$2:$H$253,0),0),0))

Any thoughts why the data doesn't update & only returns the value of 0?
--
Thanks,
Andy

  #3   Report Post  
Posted to microsoft.public.excel.misc
Andy
 
Posts: n/a
Default Excel Conditional Sum

Ron,

Thank you very much, as I am learning a ton from this discussion website.
THANK GOODNESS!!!

Will this also help the 255 issues with the Arrays?

--
Thanks,
Andy


"Ron Coderre" wrote:

It seems like you have a couple of issues with this formula:

=SUM(IF('PNB Raw'!$A$2:$A$253="PN3b",IF('PNB Raw'!$C$2:$C$253=4,IF('PNB
Raw'!$D$2:$D$253=2005,'PNB Raw'!$H$2:$H$253,0),0),0))

First, to answer your initial question, I believe that is an array formula
and must be commited by holding down [Ctrl][Shift] when you press [Enter],
instead of just pressing [Enter].
(You'll know you did it right if Excel puts braces { } around your
formula....you can't type them in yourself)

Second, this non-array formula is probably easier to work with:

=SUMPRODUCT(('PNB Raw'!$A$2:$A$253="PN3b")*('PNB Raw'!$C$2:$C$253=4)*('PNB
Raw'!$D$2:$D$253=2005)*('PNB Raw'!$H$2:$H$253))

Note_1: You can commit that formula by just pressing [Enter].
Note_2: In case of text wrapping, there are no spaces in that formula.

Post back if you have questions.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Andy" wrote:

To Whom it may concern:

I am working with data that I learned in the Nursing Reportiing webcast last
week.

When I create the table & go to copy the formula & up the month by one the
data does not update. Below are the codes one copied & one created when using
the conditional sum wizard:

=SUM(IF('PNB Raw'!$A$2:$A$253="PN3b",IF('PNB Raw'!$C$2:$C$253=4,IF('PNB
Raw'!$D$2:$D$253=2005,'PNB Raw'!$H$2:$H$253,0),0),0))
=SUM(IF('PNB Raw'!$A$2:$A$253="PN3b",IF('PNB Raw'!$C$2:$C$253=4,IF('PNB
Raw'!$D$2:$D$253=2005,'PNB Raw'!$H$2:$H$253,0),0),0))

Any thoughts why the data doesn't update & only returns the value of 0?
--
Thanks,
Andy

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
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 12:46 PM
Why doesn't Excel allow conditional formats to be saved after cer. Guatama100 Excel Discussion (Misc queries) 1 January 5th 06 02:27 AM
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER MEGTOM New Users to Excel 5 October 27th 05 04:06 AM
how do I apply more than 3 conditional formats in excel chetwyndthomas Excel Discussion (Misc queries) 1 January 30th 05 05:24 PM
Is it possible to do a conditional subtotal in Excel? LTS_Bgobien Excel Worksheet Functions 6 November 17th 04 12:12 AM


All times are GMT +1. The time now is 01:50 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"