Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Formula/Sum Question

If i have a dollar value in cell a1 and no value in cell a2 and the sum
formula in cell a3, a3 returns the value of cell a1 since it is the only cell
with a value in it. Is there a formula that will sum a1 and a2 only when
they both have values in them?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default Formula/Sum Question

Try it this way:
=if(count(a1:a2)=2,a1+a2,"what you want when not filled in")

Regards,
Fred.

"Jon the Contractor" <Jon the wrote in
message ...
If i have a dollar value in cell a1 and no value in cell a2 and the sum
formula in cell a3, a3 returns the value of cell a1 since it is the only
cell
with a value in it. Is there a formula that will sum a1 and a2 only when
they both have values in them?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Formula/Sum Question

Another one:

=(COUNT(A1:A2)=2)*(A1+A2)

--
Biff
Microsoft Excel MVP


"Jon the Contractor" <Jon the wrote in
message ...
If i have a dollar value in cell a1 and no value in cell a2 and the sum
formula in cell a3, a3 returns the value of cell a1 since it is the only
cell
with a value in it. Is there a formula that will sum a1 and a2 only when
they both have values in them?



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
formula question JaneSmith Excel Worksheet Functions 2 June 18th 08 05:22 PM
MID formula question Brian Excel Worksheet Functions 2 October 24th 07 02:50 PM
Formula Question Phxlatinoboi® Excel Discussion (Misc queries) 3 June 1st 07 01:14 AM
Formula Question Confused Excel User Excel Worksheet Functions 0 October 13th 06 03:55 PM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM


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