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: 3
Default entering formula using cells notation

Hi - I am trying to write the following in a macro in excel

For k = 8 to 1000
........
For l = 1 To 50
If Cells(k + l, 2) < "" Then
Cells(k + l, 19).Formula = "=cells(k+l,19)/cells(k,19)" - does not
work in xls
Cells(k + l, 20).Formula = "=A1/B2" -
works in xls
End If
Next
..........

Can anyone suggest how to do this in loops?
 
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
Entering dates into cells as mm/yy or yy dabarr Excel Discussion (Misc queries) 4 September 1st 07 06:18 PM
Entering Times in Cells denise Excel Discussion (Misc queries) 2 February 1st 07 02:44 PM
Scientific notation in text cells miles Excel Discussion (Misc queries) 3 December 7th 06 10:59 PM
Entering text in cells Hallway Excel Discussion (Misc queries) 4 September 26th 06 04:49 AM
Entering zeros in cells jay_perry01 Excel Discussion (Misc queries) 1 January 16th 06 07:25 PM


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