![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Posts: 97
|
I'm creating an Excel app that gets a lot of data from another application (PI-System). I am doing some calculations and in some cases there are empty cells in the range that I'm doing a calculation on. Eventually, the empty cells might have data in them. I don't want the user to see the #VALUE! in the formulated cell. Help please!
|
|
|
|
|
|
#2 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
How about
=IF(ISERR("any function"),"","Any function") Or if you only want them hidden Conditional Formatting. |
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Quote:
So, find out what's really there and deal with 'em. Arbitrarily, ignoring a #VALUE! error is never a good idea. What calculation are you performing? [ This Message was edited by: Mark W. on 2002-03-11 09:46 ] |
|
|
|
|
|
|
#4 |
|
New Member
Join Date: Mar 2002
Location: San Ramon CA
Posts: 23
|
I've had to deal with that problem, in that sometimes a cell is empty, and sometimes it's not. I use the IF(condition,true_action,false_action) function to determine if a cell has a valid entry, and if it does, run the formula. If not, pass the "empty value" or assign a placeholder. You do have to use this "value checking" routine on formulae that are 'downstream', but if you set all your formulae up right the first time, your users never have to see a #VALUE error in the results again. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|