#1   Report Post  
Posted to microsoft.public.excel.misc
Ray Ray is offline
external usenet poster
 
Posts: 267
Default Nested Formula help

Hello -

I have a sheet which contains data in two columns, E40:F92. Column F
contains Last Years data (so all rows have data) ... Column E is this
year's data so rows in the 'future' evaluate to #N/A. I need to
develop a 4 week pace, comparing this year to last year. Here's a
formula I did for a similar application that worked well, but the
future weeks were totally blank:

=(SUM(OFFSET($E$40,COUNTA($E$40:$E$92)-1,0,1,1):OFFSET($E$40,COUNTA($E
$40:$E$92)-4,0,1,1))/SUM(OFFSET($e$40,COUNTA($e$40:$e
$92)-1,-3,1,1):OFFSET($e$40,COUNTA($e$40:$e$92)-4,-3,1,1)))-1

I'll make it more confusing -- the last available week of this year
(Col E) should be discarded. For example, the data today looks like
this:
Non-Zero data exists in E40:E80 (E81:E92=#N/A)
E80 should be 'thrown out', with the 4wk pace being compared on:
Sum(E76:E79)/Sum(F76:F79)

The 'offset' formulas above are used to build the range, with the
'counta' formulas used to calc the number of non-blank cells ... this
is where the #N/A cells become the problem.

Can anyone please help to modify this formula so it does what I need
it to? I also need to do an 8 week pace ...

TIA,
Ray

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Nested Formula help

Try replacing COUNTA with COUNT. COUNT ignores everything but numbers.

Biff

"Ray" wrote in message
ups.com...
Hello -

I have a sheet which contains data in two columns, E40:F92. Column F
contains Last Years data (so all rows have data) ... Column E is this
year's data so rows in the 'future' evaluate to #N/A. I need to
develop a 4 week pace, comparing this year to last year. Here's a
formula I did for a similar application that worked well, but the
future weeks were totally blank:

=(SUM(OFFSET($E$40,COUNTA($E$40:$E$92)-1,0,1,1):OFFSET($E$40,COUNTA($E
$40:$E$92)-4,0,1,1))/SUM(OFFSET($e$40,COUNTA($e$40:$e
$92)-1,-3,1,1):OFFSET($e$40,COUNTA($e$40:$e$92)-4,-3,1,1)))-1

I'll make it more confusing -- the last available week of this year
(Col E) should be discarded. For example, the data today looks like
this:
Non-Zero data exists in E40:E80 (E81:E92=#N/A)
E80 should be 'thrown out', with the 4wk pace being compared on:
Sum(E76:E79)/Sum(F76:F79)

The 'offset' formulas above are used to build the range, with the
'counta' formulas used to calc the number of non-blank cells ... this
is where the #N/A cells become the problem.

Can anyone please help to modify this formula so it does what I need
it to? I also need to do an 8 week pace ...

TIA,
Ray



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
Help with nested formula Rykar2 Excel Discussion (Misc queries) 7 May 16th 07 06:53 PM
Nested formula PhillyD Excel Discussion (Misc queries) 2 November 21st 06 10:06 PM
Nested Formula help Pat Flynn Excel Worksheet Functions 0 December 5th 05 04:25 PM
Nested Formula TheLeafs Excel Worksheet Functions 1 July 11th 05 04:04 PM
Nested Formula Jeannette Excel Worksheet Functions 3 November 17th 04 07:04 PM


All times are GMT +1. The time now is 05:01 AM.

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

About Us

"It's about Microsoft Excel"