Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default calculating values in cells

A1 and C1 may or not have a value (A1 and C1, or A1, or C1).
F1=((A1+C1)*0.2) (still only A1 can have a value or only C1 or both).
How can I write this formula?
thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default calculating values in cells

As for the logic:
=OR(AND(A1,C1),OR(AND(A1,NOT(C1)),AND(NOT(A1),C1)) )
This formula returns TRUE if only A1 has a TRUE value or only C1 or both.

But it isn't clear, what should the formula in F1 return if A1 and C1 don't
meet your criteria?

Regards,
Stefi

€˛antonov€¯ ezt Ć*rta:

A1 and C1 may or not have a value (A1 and C1, or A1, or C1).
F1=((A1+C1)*0.2) (still only A1 can have a value or only C1 or both).
How can I write this formula?
thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default calculating values in cells

Stefi,
if both A1 and C1 are empty then F1 = 0
if either 0 then F1=(A1+C1)*0.2
"antonov" wrote in message
...
A1 and C1 may or not have a value (A1 and C1, or A1, or C1).
F1=((A1+C1)*0.2) (still only A1 can have a value or only C1 or both).
How can I write this formula?
thanks



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default calculating values in cells

Forget what I said, simply write =(A1+C1)*0.2 in F1, Excel will calculate as
follows:

A C F
0 0 0
0 1 0,2
1 0 0,2
1 1 0,4

Regards,
Stefi

€˛antonov€¯ ezt Ć*rta:

Stefi,
if both A1 and C1 are empty then F1 = 0
if either 0 then F1=(A1+C1)*0.2
"antonov" wrote in message
...
A1 and C1 may or not have a value (A1 and C1, or A1, or C1).
F1=((A1+C1)*0.2) (still only A1 can have a value or only C1 or both).
How can I write this formula?
thanks




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
calculate values in an unlimited range of cells in a column WITHOUTalso calculating values that had previously been filtered AGAINST? yadang Excel Discussion (Misc queries) 2 October 1st 09 06:18 PM
How to use date for calculating values in other cells Bamboozled Excel Worksheet Functions 2 October 17th 08 06:14 PM
Pbl calculating US$ values Joseph Excel Discussion (Misc queries) 1 July 13th 05 04:28 PM
Calculating Non-Constant Values in Cells sesmith[_2_] Excel Programming 5 July 6th 05 04:36 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"