LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Substituting zero values in blank cells

I have an excel table which gets populated from another excel table.
After import the table looks like:

A1 B1
C1 O1
budget head department apr may jun jul aug sep
oct nov .... total

2a ops 11.2 0.4
1.1 4.2 16.9

2b mtc 3.1 0.7 5.5
8.6 1.2 0.5 19.6

... ... ,, ... ... ... ..

The table range is from A1: O50

As can be seen, some of the cells are blank as there was no data from
the imported table. I would like to convert these blank cells to zero
(0), instead of keeping them blank. This is because I use these table
for finding out individual department cost -budget head wise, for
which I use the sumproduct function. What I observe that while
evaluating a sumproduct formula, when the formula is encountering a
blank cell, it is giving an error (#Value), whereas when the blank
cell is replaced by a zero, the formula is working.

It would be great if I could run a macro or a code where the blank
cells in the range are looked up and replaced with the value 0.

Thanks for the help
 
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
Blank Cells vs. Zero Values bob Excel Worksheet Functions 2 November 26th 09 06:56 PM
Graphing 0 values from blank cells Mike Excel Discussion (Misc queries) 7 September 29th 09 06:05 PM
If certain cells not blank, and cells in range are, set values to ktoth04 Excel Discussion (Misc queries) 0 February 21st 08 09:01 PM
Substituting values TLC Excel Discussion (Misc queries) 1 October 22nd 07 07:38 PM
Finding values within text and substituting with alternate values. Bhupinder Rayat Excel Programming 3 January 24th 06 01:44 PM


All times are GMT +1. The time now is 06:29 PM.

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"