Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / April 2007

Tip: Looking for answers? Try searching our database.

Nesting

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Goliath Cobalt - 09 Apr 2007 01:25 GMT
I have read several posts regarding nesting, but I haven't quite found
what has perplexed me for the last couple of hours.

I'm using a set of IF functions to check 12 different cells to see if
they match a particular cell. If it does, it returns a value of a
different cell, if false it returns zero. These are contained within a
SUM function.

Now, here is the perplexing part. They aren't "nested" per se, because
they are all on the same level. I can get it to work by checking up to
11 of the cells, but on the 12th, it breaks.

Here is the formula with only the 11 entries:

=SUM(IF($B$8=B$83,$B9,0),IF($E$8=B$83,$E9,0),IF($H$8=B$83,$H9,0),IF($K
$8=B$83,$K9,0),IF($N$8=B$83,$N9,0),IF($Q$8=$B83,$Q9,0),IF($T$8=B
$83,$T9,0),IF($W$8=B$83,$W9,0),IF($Z$8=B$83,$Z9,0),IF($AC$8=B
$83,$AC9,0),IF($AF$8=B$83,$AF9,0))

The only difference with 12 is the very end, which contains this just
before the last )

,IF($AI$8=B$38,$AI9,0)

So that the whole thing would look like:

=SUM(IF($B$8=B$83,$B9,0),IF($E$8=B$83,$E9,0),IF($H$8=B$83,$H9,0),IF($K
$8=B$83,$K9,0),IF($N$8=B$83,$N9,0),IF($Q$8=$B83,$Q9,0),IF($T$8=B
$83,$T9,0),IF($W$8=B$83,$W9,0),IF($Z$8=B$83,$Z9,0),IF($AC$8=B
$83,$AC9,0),IF($AF$8=B$83,$AF9,0),IF($AI$8=B$83,$AI9,0))

Yet the first long formula above works, the second long one does not.

Any thoughts? If it is counting this towards nesting, then something
odd is going on, because I'd be nested 11 times already.

Any help would be greatly appreciated.
Goliath Cobalt - 09 Apr 2007 01:46 GMT
> I have read several posts regarding nesting, but I haven't quite found
> what has perplexed me for the last couple of hours.
[quoted text clipped - 33 lines]
>
> Any help would be greatly appreciated.

Nevermind.
Ron Coderre - 09 Apr 2007 01:54 GMT
It's kind of difficult to "nevermind" when your formula:
=SUM(IF($B$8=B$83,$B9,0),IF($E$8=B$83,$E9,0),IF($H$8=B$83,$H9,0),IF($K$8=B$83,$K9,0),IF($N$8=B$83,$N9,0),IF($Q$8=$B83,$Q9,0),IF($T$8=B$83,$T9,0),IF($W$8=B$83,$W9,0),IF($Z$8=B$83,$Z9,0),IF($AC$8=B$83,$AC9,0),IF($AF$8=B$83,$AF9,0),IF($AI$8=B$83,$AI9,0))

could be this, instead:
=SUMPRODUCT(((MOD(COLUMN(B8:AI8),3)=2)*(B8:AI8=B83))*B9:AI9)

Does that help?
***********
Regards,
Ron

XL2002, WinXP

> > I have read several posts regarding nesting, but I haven't quite found
> > what has perplexed me for the last couple of hours.
[quoted text clipped - 35 lines]
>
> Nevermind.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.