LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Syntax of formula

Hi,

I want to set formula.I am trying like this

For i = intFrom To intTo

If ActiveSheet.Range(strModule & i).Text < "" Then

ActiveSheet.Range(strFrom & i).Formula =
"=SUM(IF(C17:C2000 = """ & ActiveSheet.Range(strModule & i).Text &
""",IF(J17:J2000 = "Fail" ,1,0)))"

Else

ActiveSheet.Range(strFrom & i).Value = 0

End If

Next i

I am getting error while I am using IF(J17:J2000 = "Fail",1,0) .What
would be the exact syntax.

And the other thing in this way I want get the sum of Fail where date
is like
{=SUM(IF(M17:M2000 = "12/2/2006",IF(J17:J2000 = "Fail",1,0),0))}
It also does not give the perfect result.

Plz.. help me in this matter

Regards,
Nil

 
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
Find value in array Brook6 Excel Worksheet Functions 26 January 30th 07 09:40 PM
Reusing formula Tony29 Excel Discussion (Misc queries) 7 September 7th 06 03:34 AM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM


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