Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Can someone tell me what is wrong with this code? I get an
application/object defined error on the 2nd row. Am trying to insert a sumif formula into a cell, to add only those cells that do NOT have the word "MES" in them. Cells(Cells.Rows.Count, "T").End(xlUp).Offset(-1, 0).Select Selection.Formula = "=SUMIF(I12:I50030,< ""MES"",T12:T50030)" Thanks..... |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Selection.Formula = "=SUMIF(I12:I50030,""<MES"",T12:T50030)"
HTH -- AP "Paige" a écrit dans le message de news: ... Can someone tell me what is wrong with this code? I get an application/object defined error on the 2nd row. Am trying to insert a sumif formula into a cell, to add only those cells that do NOT have the word "MES" in them. Cells(Cells.Rows.Count, "T").End(xlUp).Offset(-1, 0).Select Selection.Formula = "=SUMIF(I12:I50030,< ""MES"",T12:T50030)" Thanks..... |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You need more quotes around the criterion parameter:
Selection.Formula = "=SUMIF(I12:I50030,""< """"MES"""""",T12:T50030)" Paige wrote: Can someone tell me what is wrong with this code? I get an application/object defined error on the 2nd row. Am trying to insert a sumif formula into a cell, to add only those cells that do NOT have the word "MES" in them. Cells(Cells.Rows.Count, "T").End(xlUp).Offset(-1, 0).Select Selection.Formula = "=SUMIF(I12:I50030,< ""MES"",T12:T50030)" Thanks..... |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks guys!
"Andrew Taylor" wrote: You need more quotes around the criterion parameter: Selection.Formula = "=SUMIF(I12:I50030,""< """"MES"""""",T12:T50030)" Paige wrote: Can someone tell me what is wrong with this code? I get an application/object defined error on the 2nd row. Am trying to insert a sumif formula into a cell, to add only those cells that do NOT have the word "MES" in them. Cells(Cells.Rows.Count, "T").End(xlUp).Offset(-1, 0).Select Selection.Formula = "=SUMIF(I12:I50030,< ""MES"",T12:T50030)" Thanks..... |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Why does this code not work? Workbooks("TEST").Sheets(1).Cells(10, 11).Formula ="=IF(H" & 10 & "=" & """XYZ""" & ";" & "G" & 10 & ";" & "0)" thx in adv. -- Frankey ------------------------------------------------------------------------ Frankey's Profile: http://www.excelforum.com/member.php...o&userid=35748 View this thread: http://www.excelforum.com/showthread...hreadid=555228 |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Thanks a lot. It works very well. : -- Franke ----------------------------------------------------------------------- Frankey's Profile: http://www.excelforum.com/member.php...fo&userid=3574 View this thread: http://www.excelforum.com/showthread.php?threadid=55522 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
A formula not working as the result of a previous formula? | Excel Discussion (Misc queries) | |||
Working an If formula | Excel Worksheet Functions | |||
formula not working | Excel Worksheet Functions | |||
Formula not working | Excel Worksheet Functions | |||
Formula Sometimes Working Sometimes Not | Excel Discussion (Misc queries) |