#1   Report Post  
Shooter
 
Posts: n/a
Default simple formula

I am using 3 columns as follows:

C D
E
1 Budget Actual
Variance
3,000

I input values into cells C and D. Column D(Variance) is simply C-D. In some
cases the cells in column D will be blank. I would like to write a simple
formula in column E that will give me the value of C-D and will prevent a
#Value error message if there is no value in C or D.

Thanks for your help.

Shooter
  #2   Report Post  
Dave R.
 
Posts: n/a
Default

You shouldn't be getting a VALUE message simply trying to add or subtract
from cells that may be blank. But

=IF(AND(ISBLANK(C1),ISBLANK(D1)),"",C1-D1)

is an example of how to choose whether or not to proceed with a calculation.

You can change AND to OR if you don't want any calculation done unless both
C1 and D1 aren't blank.



"Shooter" wrote in message
...
I am using 3 columns as follows:

C D
E
1 Budget Actual
Variance
3,000

I input values into cells C and D. Column D(Variance) is simply C-D. In

some
cases the cells in column D will be blank. I would like to write a simple
formula in column E that will give me the value of C-D and will prevent a
#Value error message if there is no value in C or D.

Thanks for your help.

Shooter



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
Simple formula doesn't quite add up circeo Excel Discussion (Misc queries) 3 January 17th 05 09:04 PM
Need a simple formula please Denise Excel Worksheet Functions 3 December 23rd 04 07:55 PM
Need simple multiply formula [email protected] Excel Worksheet Functions 1 December 8th 04 03:07 AM
simple formula help tjtjjtjt Excel Worksheet Functions 1 December 1st 04 05:53 AM
Please Reply! I Need A Simple Formula Johnny3 Excel Worksheet Functions 3 November 23rd 04 03:15 PM


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