Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Sumproduct to populate 0 if cell is blank

currently using
=SUMPRODUCT((R1:R25='CONTRACT VENDORS'!A3:A712)*1)

If a "R" cell is blank I need it to populate a 0 however with the *1 I am always returning a 1.

This is probably an easy fix, but I'm a newbie with using formulas in excel.
Thanks for any help
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 178
Default Sumproduct to populate 0 if cell is blank

On Friday, October 19, 2012 11:06:07 AM UTC-7, wrote:
currently using =SUMPRODUCT((R1:R25='CONTRACT VENDORS'!A3:A712)*1) If a "R" cell is blank I need it to populate a 0 however with the *1 I am always returning a 1. This is probably an easy fix, but I'm a newbie with using formulas in excel. Thanks for any help


or you could also try:
=IF(COUNTA(R1:R25)<25, 0, SUMPRODUCT((R1:R25='CONTRACT VENDORS'!A3:A712)*1))

there are other variations we could use depending on if there is a header row or if there would be only numerical values.
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
Use VBA macro to populate formula result in 'next blank cell' Lonpuz Excel Programming 4 November 10th 07 01:36 PM
check to see if a cell is blank if not populate adjacent cell wit. Frusterated Excel Discussion (Misc queries) 6 September 14th 07 10:55 PM
Dropdown to populate next blank cell pmgreen Excel Programming 1 June 21st 06 08:31 PM
detecting the first blank row in the spreadsheet and populate the blank row with data racerrunner Excel Programming 2 May 14th 06 06:22 AM
Populate cell IF another cell is blank Scott Wagner Excel Programming 2 February 17th 06 07:21 PM


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