LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 128
Default show result of sum when summed cells are blank

(I hope I explain this ok without confusing everyone)

I have entered the formula below to do a sort of vlookup and sum calculation
from another worksheet. I've used 'iserror' to show blank where no values
appear, i.e. for rows where the vlookup criteria does not appear, I want the
cells with this formula to show as a blank.

However, the value of the cells used as part of the 'sum' might be blank,
and because of this, there is no result because of the iserror, but I still
want the cells to be added and the result displayed despite there being blank
cells within the calculation.

Have I overcomplicated what I am trying to achieve or am I just missing
something?

=IF(ISERROR(SUMPRODUCT(('PBH Update Sheet'!$A$4:$A$499=$A11)*SUM('PBH Update
Sheet'!S4+'PBH Update Sheet'!AG4+'PBH Update Sheet'!AU4+'PBH Update
Sheet'!BI4+'PBH Update Sheet'!BW4+'PBH Update Sheet'!CK4+'PBH Update
Sheet'!CY4+'PBH Update Sheet'!DM4))),"",IF(SUMPRODUCT(('PBH Update
Sheet'!$A$4:$A$499=$A11)*SUM('PBH Update Sheet'!S4+'PBH Update
Sheet'!AG4+'PBH Update Sheet'!AU4+'PBH Update Sheet'!BI4+'PBH Update
Sheet'!BW4+'PBH Update Sheet'!CK4+'PBH Update Sheet'!CY4+'PBH Update
Sheet'!DM4))=0,"",SUMPRODUCT(('PBH Update Sheet'!$A$4:$A$499=$A11)*SUM('PBH
Update Sheet'!S4+'PBH Update Sheet'!AG4+'PBH Update Sheet'!AU4+'PBH Update
Sheet'!BI4+'PBH Update Sheet'!BW4+'PBH Update Sheet'!CK4+'PBH Update
Sheet'!CY4+'PBH Update Sheet'!DM4))))
 
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
show $ in blank cells Nancy Excel Discussion (Misc queries) 3 August 16th 06 02:45 AM
Advanced formula - Return result & Show Cell Reference of result Irv Excel Worksheet Functions 7 May 6th 06 03:36 AM
Do not show blank cells as 0 in chart Sheila Innes Charts and Charting in Excel 7 March 27th 06 01:51 PM
How do you nest the following formula to show blank cells JV Excel Worksheet Functions 3 August 6th 05 06:26 PM
formula result not able to be summed Micayla Bergen Excel Discussion (Misc queries) 4 May 25th 05 10:55 AM


All times are GMT +1. The time now is 04:19 AM.

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"