Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to place formula to cell


people, my task is to place to cells a formula

for example

for vv = 1 to 10
.cells(vv,2).formula = "=if(sum(XX:XX)=160;2,3)"

next



when i try to assign a formula to a cell, i get the erorr,
why ??


can anybody help ????]

thank

--
Mare
-----------------------------------------------------------------------
Marek's Profile: http://www.excelforum.com/member.php...fo&userid=1376
View this thread: http://www.excelforum.com/showthread.php?threadid=26516

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default how to place formula to cell

Sub InsertFormula()
Dim vv As Integer
With Application
..ScreenUpdating = False
..Calculation = xlCalculationManual
For vv = 1 To 10
Cells(vv, 2).Formula = _
"=IF(SUM(C1:C10)=160,2,3)"
Next
..ScreenUpdating = True
..Calculation = xlCalculationAutomatic
End With
End Sub

---
HTH
Jason
Atlanta, GA

-----Original Message-----

people, my task is to place to cells a formula

for example

for vv = 1 to 10
.cells(vv,2).formula = "=if(sum(XX:XX)=160;2,3)"

next



when i try to assign a formula to a cell, i get the

erorr,
why ??


can anybody help ????]

thanks


--
Marek
---------------------------------------------------------

---------------
Marek's Profile: http://www.excelforum.com/member.php?

action=getinfo&userid=13769
View this thread:

http://www.excelforum.com/showthread...hreadid=265164

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default how to place formula to cell

Not sure where that second dot came from. Should be "."
not ".." in the code.

Jason

-----Original Message-----
Sub InsertFormula()
Dim vv As Integer
With Application
..ScreenUpdating = False
..Calculation = xlCalculationManual
For vv = 1 To 10
Cells(vv, 2).Formula = _
"=IF(SUM(C1:C10)=160,2,3)"
Next
..ScreenUpdating = True
..Calculation = xlCalculationAutomatic
End With
End Sub

---
HTH
Jason
Atlanta, GA

-----Original Message-----

people, my task is to place to cells a formula

for example

for vv = 1 to 10
.cells(vv,2).formula = "=if(sum(XX:XX)=160;2,3)"

next



when i try to assign a formula to a cell, i get the

erorr,
why ??


can anybody help ????]

thanks


--
Marek
--------------------------------------------------------

-
---------------
Marek's Profile: http://www.excelforum.com/member.php?

action=getinfo&userid=13769
View this thread:

http://www.excelforum.com/showthread...hreadid=265164

.

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default how to place formula to cell

Hi Marek,

Changing to:

cells(vv,2).formula = "=if(sum(XX:XX)=160;2,3)"


to

cells(vv,2).formula = "=if(sum(XX:XX)=160,2,3)"

worked for me.

I changed the semicolon after 160 to a comma.


---
Regards,
Norman



"Marek" wrote in message
...

people, my task is to place to cells a formula

for example

for vv = 1 to 10
cells(vv,2).formula = "=if(sum(XX:XX)=160;2,3)"

next



when i try to assign a formula to a cell, i get the erorr,
why ??


can anybody help ????]

thanks


--
Marek
------------------------------------------------------------------------
Marek's Profile:
http://www.excelforum.com/member.php...o&userid=13769
View this thread: http://www.excelforum.com/showthread...hreadid=265164



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
Can a formula place a value in another cell default105 Excel Discussion (Misc queries) 5 June 30th 09 10:32 PM
I want to place a checkbox in the middle of a cell, yet I want thecheckboxArea take up the entire cell. Leonid L Excel Discussion (Misc queries) 2 July 30th 08 04:25 PM
Automatically place text in one cell into cell in another sheet Jack Frost New Users to Excel 2 April 13th 07 03:11 AM
Can I place a formula/cell reference in the Header/footer Excel john mcmichael Excel Worksheet Functions 2 August 11th 05 09:10 PM
Is there a formula that will place the sheet name in a cell? Reed Excel Worksheet Functions 7 January 20th 05 01:29 AM


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