#1   Report Post  
imej-clavier
 
Posts: n/a
Default Error in a formula

Hello,
Could somebody say to me what's wrong with my formula ,
Worksheets(2).Cells(22,7).Formula = WorksheetFunction.SumIf(Range([F16], _
[F16].End(xlDown)));"VRAI";Range([B16],[B16].End(xlDown)))
I have the following Message Box : Wanted : list separator or ]

Thank you in advance,


Jean-michel


  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

You have an extra parenthesis after the first xlDown, and I believe you
need to use commas rather than semicolons:

Worksheets(2).Cells(22, 7).Formula = _
WorksheetFunction.SumIf(Range([F16], [F16].End(xlDown)), _
"VRAI", Range([B16], [B16].End(xlDown)))

Alternatively, if you're trying to actually input the formula in the
cell, rather than the result (using English SUMIF - don't know what the
French is...):

Worksheets(2).Cells(22, 7).Formula = _
"=SumIf(" & Range([F16], [F16].End(xlDown)).Address & _
";""VRAI"";" & Range([B16], [B16].End(xlDown)).Address & ")"



In article ,
"imej-clavier" wrote:

Hello,
Could somebody say to me what's wrong with my formula ,
Worksheets(2).Cells(22,7).Formula = WorksheetFunction.SumIf(Range([F16], _
[F16].End(xlDown)));"VRAI";Range([B16],[B16].End(xlDown)))
I have the following Message Box : Wanted : list separator or ]

Thank you in advance,


Jean-michel

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
Converting an Excel formula to an Access query formula Adam Excel Discussion (Misc queries) 1 December 15th 04 03:38 AM
I want the results of a formula to show in cell, NOT THE FORMULA! ocbecky Excel Discussion (Misc queries) 4 December 10th 04 08:39 PM
What instead of an array formula part 2 Reg Besseling Excel Discussion (Misc queries) 2 December 10th 04 07:35 AM
Paste is is copying in formula, but display is wrong. Matt Excel Discussion (Misc queries) 2 December 7th 04 08:37 PM
Excel2K: Is it possible to use dynamic named ranges in custom data validation formula? Arvi Laanemets Excel Discussion (Misc queries) 0 December 2nd 04 11:29 AM


All times are GMT +1. The time now is 04:07 AM.

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"