Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Damien
 
Posts: n/a
Default Conditionally ignoring certain cells in columnar calculations

It's probably easier if I ask this using an example, so please reference this
sample:

A B

1 0.3 0.2
2 0.4 0.3
3 0.5 0.4
4 # N/A N/A 0.5

I use a Bloomberg add-in to automatically load data into Excel. If for some
reason this data is not available, the add-in will return a value such as the
one seen in cell A4.

What I'm trying to do is sum these numbers and calculate the percentage
change from the sum of column B to the sum of column A. However, calculating
the percentage change in three quarters' worth of data over four is useless,
so I'm trying to find a way (SUMIF?) to exclude cell B4 from the sum
calculation of column B if the adjacent cell (A4) is blank or contains an
error code like the one shown above. Is this possible?

Thanks so much for the help!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Elkar
 
Posts: n/a
Default Conditionally ignoring certain cells in columnar calculations

It's not pretty, but this should get you the sum of column B that you want:

=SUMPRODUCT(--NOT(ISERROR(A1:A4)),--NOT(ISBLANK(A1:A4)),B1:B4)

HTH,
Elkar

"Damien" wrote:

It's probably easier if I ask this using an example, so please reference this
sample:

A B

1 0.3 0.2
2 0.4 0.3
3 0.5 0.4
4 # N/A N/A 0.5

I use a Bloomberg add-in to automatically load data into Excel. If for some
reason this data is not available, the add-in will return a value such as the
one seen in cell A4.

What I'm trying to do is sum these numbers and calculate the percentage
change from the sum of column B to the sum of column A. However, calculating
the percentage change in three quarters' worth of data over four is useless,
so I'm trying to find a way (SUMIF?) to exclude cell B4 from the sum
calculation of column B if the adjacent cell (A4) is blank or contains an
error code like the one shown above. Is this possible?

Thanks so much for the help!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Damien
 
Posts: n/a
Default Conditionally ignoring certain cells in columnar calculations

That did it. Thanks for the help!

"Elkar" wrote:

It's not pretty, but this should get you the sum of column B that you want:

=SUMPRODUCT(--NOT(ISERROR(A1:A4)),--NOT(ISBLANK(A1:A4)),B1:B4)

HTH,
Elkar

"Damien" wrote:

It's probably easier if I ask this using an example, so please reference this
sample:

A B

1 0.3 0.2
2 0.4 0.3
3 0.5 0.4
4 # N/A N/A 0.5

I use a Bloomberg add-in to automatically load data into Excel. If for some
reason this data is not available, the add-in will return a value such as the
one seen in cell A4.

What I'm trying to do is sum these numbers and calculate the percentage
change from the sum of column B to the sum of column A. However, calculating
the percentage change in three quarters' worth of data over four is useless,
so I'm trying to find a way (SUMIF?) to exclude cell B4 from the sum
calculation of column B if the adjacent cell (A4) is blank or contains an
error code like the one shown above. Is this possible?

Thanks so much for the 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
Conditionally formatting other cells? brett Excel Worksheet Functions 3 December 20th 05 11:09 PM
Ignoring highlighted cells frustrated Excel Worksheet Functions 14 December 15th 05 09:02 AM
Calculations on Only Unhidden Data Cells dcotejr Excel Discussion (Misc queries) 1 October 3rd 05 05:35 PM
blank cells in calculations Cliff Excel Worksheet Functions 1 July 7th 05 02:48 PM
How do I do count calculations ignoring duplicate values Robin Faulkner Excel Discussion (Misc queries) 1 March 31st 05 03:01 PM


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