Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 27
Default Function within a function?

Why does this not work: =IF(AND(B5="122"),(SUM(D5:L5)1)),1,0
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default Function within a function?

Parentheses are misplaced.
=IF(AND(B5="122",SUM(D5:L5)1),1,0)
But why quotes on numeric value 122 ?
=IF(AND(B5=122,SUM(D5:L5)1),1,0)
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Stefan" wrote in message
...
Why does this not work: =IF(AND(B5="122"),(SUM(D5:L5)1)),1,0



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Function within a function?

Try this.......
=IF(AND(B5="122",SUM(D5:L5)1),1,0)
or this
=IF(AND(B5=122,SUM(D5:L5)1),1,0)

Vaya con Dios,
Chuck, CABGx3



"Stefan" wrote:

Why does this not work: =IF(AND(B5="122"),(SUM(D5:L5)1)),1,0

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 111
Default Function within a function?

=IF(AND(B5=122,(SUM(D5:L5)1)),1,0)

Hard to say for sure. It appears there are some misplaced parenthesis. I
found it very difficult, when evaluating the formula, to come up with a true
for the test B5 = "122" no matter how I formatted B5 or entered "122". I
eventually made it a number and tested for a number as above, and it worked
for me.
--
Kevin Vaughn


"Stefan" wrote:

Why does this not work: =IF(AND(B5="122"),(SUM(D5:L5)1)),1,0

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,939
Default Function within a function?

You can do this...(I left the quotes around 122 as I assume B5 is Text???)

=IF(AND(B5="122",SUM(D5:L5)1),1,0)
or
=AND(B5="122",SUM(D5:L5)1)
--
HTH...

Jim Thomlinson


"Stefan" wrote:

Why does this not work: =IF(AND(B5="122"),(SUM(D5:L5)1)),1,0



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 27
Default Function within a function?

Thanks, everyone, for the fix! :-)

"Jim Thomlinson" wrote:

You can do this...(I left the quotes around 122 as I assume B5 is Text???)

=IF(AND(B5="122",SUM(D5:L5)1),1,0)
or
=AND(B5="122",SUM(D5:L5)1)
--
HTH...

Jim Thomlinson


"Stefan" wrote:

Why does this not work: =IF(AND(B5="122"),(SUM(D5:L5)1)),1,0

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
Need some comments on my Utility_Move class module. jchen Excel Worksheet Functions 0 August 21st 06 07:05 PM
Creating a Custom Excel Function to Calculate Gini Coefficients [email protected] Excel Worksheet Functions 3 February 21st 06 10:15 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


All times are GMT +1. The time now is 01:27 AM.

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"