Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Converting an Excel formula to an Access query formula | Excel Discussion (Misc queries) | |||
I want the results of a formula to show in cell, NOT THE FORMULA! | Excel Discussion (Misc queries) | |||
What instead of an array formula part 2 | Excel Discussion (Misc queries) | |||
Paste is is copying in formula, but display is wrong. | Excel Discussion (Misc queries) | |||
Excel2K: Is it possible to use dynamic named ranges in custom data validation formula? | Excel Discussion (Misc queries) |