Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
EG EG is offline
external usenet poster
 
Posts: 38
Default Conditional Sum of cells

I want to add cell C12 and C15 and B19 only if either C12 and C15 have a
number in them. Otherwise i want the cell left blank. How can i do this?

Thanks!

Eric
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Conditional Sum of cells

Do you mean:

If C12 *and* C15
If C12 *or* C15

Here's something for both:

*and*

=IF(COUNT(C12,C15)=2,SUM(C12,C15,C19),"")

*or*

=IF(COUNT(C12,C15)=1,SUM(C12,C15,C19),"")

Biff

"EG" wrote in message
...
I want to add cell C12 and C15 and B19 only if either C12 and C15 have a
number in them. Otherwise i want the cell left blank. How can i do this?

Thanks!

Eric



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Conditional Sum of cells

=IF(OR(ISNUMBER(C12),ISNUMBER(C15)),C12+C15+B19,"" )
--
David Biddulph

"EG" wrote in message
...
I want to add cell C12 and C15 and B19 only if either C12 and C15 have a
number in them. Otherwise i want the cell left blank. How can i do this?

Thanks!

Eric



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Conditional Sum of cells

Let's change that *or* formula to:

=IF(COUNT(C12,C15)0,SUM(C12,C15,C19),"")

Biff

"T. Valko" wrote in message
...
Do you mean:

If C12 *and* C15
If C12 *or* C15

Here's something for both:

*and*

=IF(COUNT(C12,C15)=2,SUM(C12,C15,C19),"")

*or*

=IF(COUNT(C12,C15)=1,SUM(C12,C15,C19),"")

Biff

"EG" wrote in message
...
I want to add cell C12 and C15 and B19 only if either C12 and C15 have a
number in them. Otherwise i want the cell left blank. How can i do
this?

Thanks!

Eric





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
Conditional format for cells. Robin Chapple New Users to Excel 5 January 30th 07 07:01 PM
conditional formats for cells Jason Bartup Excel Worksheet Functions 3 November 16th 06 09:20 AM
conditional formating cells i Excel based on other cells values Elias Petursson Excel Worksheet Functions 3 May 23rd 06 06:45 PM
conditional minimum value of various cells? Al Excel Worksheet Functions 9 January 13th 06 03:26 AM
Conditional Formatting Multiple cells based on 2 cells Louis Markowski Excel Worksheet Functions 2 June 1st 05 05:26 PM


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