#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,560
Default SUM and IF functions

I want to use the numeric value returned in a cell by the following function
as part of a horizontal SUM function:
=IF(C2<2,"50",IF(C2=2,"25",IF(C23,"0")))
As is, the SUM ignores the value returned by this function.
How do I get the SUM to recognize the numeric value?
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,819
Default SUM and IF functions

lose the quote marks, SUM doesn't like text.

David wrote:

I want to use the numeric value returned in a cell by the following function
as part of a horizontal SUM function:
=IF(C2<2,"50",IF(C2=2,"25",IF(C23,"0")))
As is, the SUM ignores the value returned by this function.
How do I get the SUM to recognize the numeric value?
Thanks


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default SUM and IF functions

Also you don't need the last IF

=IF(C2<2,50,IF(C2=2,25,0))


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Bob I" wrote in message
...
lose the quote marks, SUM doesn't like text.

David wrote:

I want to use the numeric value returned in a cell by the following
function as part of a horizontal SUM function:
=IF(C2<2,"50",IF(C2=2,"25",IF(C23,"0")))
As is, the SUM ignores the value returned by this function.
How do I get the SUM to recognize the numeric value?
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
functions to use bkk Excel Worksheet Functions 2 March 20th 07 07:27 AM
efficiency: database functions vs. math functions vs. array formula nickname Excel Discussion (Misc queries) 2 July 14th 06 04:26 AM
Looking for a site with functions that substitute the ATP functions Franz Verga Excel Worksheet Functions 3 June 24th 06 04:30 AM
Nesting functions in the functions dialog box cs170a Excel Worksheet Functions 0 June 10th 05 10:36 PM
Functions BDB Excel Worksheet Functions 6 February 2nd 05 02:50 PM


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