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 input formula into selective cells in column ??


s/s is 325501 rows deep and this consists of over 30000 ranges of data.

There are formulas at the head of each range in columns K and I.

Running down column L is the formula: =K3-I3

The problem is: This last formula runs all down column L and I cannot
delete the cells which dont produce a value.

The need is for the formula to only appear by the side of the formulas
in columns K and I.

If anyone can supply code to run, or other help, I would be most
grateful.
Big thanks.
Colwyn.


--
colwyn
------------------------------------------------------------------------
colwyn's Profile: http://www.thecodecage.com/forumz/member.php?userid=34
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=52980

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to input formula into selective cells in column ??


Colwyn, why not attach a workbook where we can help you with that
directly.

Attatchments.

To upload a workbook, click reply then add your few words, scroll down
past the submit button and you will see the Manage Attatchments button,
this is where you get to add files for upload, if you have any trouble
please use this link or the one at the bottom of the
any page.


--
Simon Lloyd

Regards,
Simon Lloyd
'The Code Cage' (http://www.thecodecage.com)
------------------------------------------------------------------------
Simon Lloyd's Profile: http://www.thecodecage.com/forumz/member.php?userid=1
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=52980

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default how to input formula into selective cells in column ??


LastRow = Range("K" & Rows.count).End(xlup).row
New = LastRow + 1
Range("L" & NewRow & ":L" & Rows.count).Clearcontents

"colwyn" wrote:


s/s is 325501 rows deep and this consists of over 30000 ranges of data.

There are formulas at the head of each range in columns K and I.

Running down column L is the formula: =K3-I3

The problem is: This last formula runs all down column L and I cannot
delete the cells which dont produce a value.

The need is for the formula to only appear by the side of the formulas
in columns K and I.

If anyone can supply code to run, or other help, I would be most
grateful.
Big thanks.
Colwyn.


--
colwyn
------------------------------------------------------------------------
colwyn's Profile: http://www.thecodecage.com/forumz/member.php?userid=34
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=52980


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to input formula into selective cells in column ??


Joel can you give me the full code please?
Big thanks.
Colwyn.


--
colwyn
------------------------------------------------------------------------
colwyn's Profile: http://www.thecodecage.com/forumz/member.php?userid=34
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=52980

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to input formula into selective cells in column ??


Simon Lloyd thanks.
I'm enclosing attachment to illustrate what my problem is.
Big thanks.
Colwyn.


+-------------------------------------------------------------------+
|Filename: example 1.xls |
|Download: http://www.thecodecage.com/forumz/attachment.php?attachmentid=67|
+-------------------------------------------------------------------+

--
colwyn
------------------------------------------------------------------------
colwyn's Profile: http://www.thecodecage.com/forumz/member.php?userid=34
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=52980



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to input formula into selective cells in column ??


Well considering your workbook has absolutely no code in it i assume you
have entered the formula manually, so put this in L2 =IF(K2="","",K2-I2)
and copy down!
colwyn;192379 Wrote:
Simon Lloyd thanks.
I'm enclosing attachment to illustrate what my problem is.
Big thanks.
Colwyn.



--
Simon Lloyd

Regards,
Simon Lloyd
'The Code Cage' (http://www.thecodecage.com)
------------------------------------------------------------------------
Simon Lloyd's Profile: http://www.thecodecage.com/forumz/member.php?userid=1
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=52980

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to input formula into selective cells in column ??


Simon Lloyd;192399 Wrote:
Well considering your workbook has absolutely no code in it i assume you
have entered the formula manually, so put this in L2 =IF(K2="","",K2-I2)
and copy down!If you really want a coded version this is crude but does the job, its

based on column I having a value:

Code:
--------------------
Sub formula()
Dim Rng As Range, MyCell As Range
Set Rng = Range("A2:A" & Range("A" & Rows.Count).End(xlUp).Row)
For Each MyCell In Rng
If MyCell.Offset(0, 8) < "" Then
MyCell.Offset(0, 11).Value = "=IF(K" & MyCell.Row & "=" & Chr(34) & Chr(34) _
& "," & Chr(34) & Chr(34) & ",K" & MyCell.Row & "-I" & MyCell.Row & ")"
End If
Next MyCell
End Sub
--------------------


--
Simon Lloyd

Regards,
Simon Lloyd
'The Code Cage' (http://www.thecodecage.com)
------------------------------------------------------------------------
Simon Lloyd's Profile: http://www.thecodecage.com/forumz/member.php?userid=1
View this thread: http://www.thecodecage.com/forumz/sh...ad.php?t=52980

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
help with formula for last input in column mag Excel Worksheet Functions 7 January 13th 12 04:06 PM
Input formula into a column via macro franciz Excel Programming 10 June 3rd 08 08:03 AM
Setting of input cells as blue font and formula cells as black fon Sunnyskies Excel Discussion (Misc queries) 2 May 14th 07 05:27 PM
Selective Column deletion mattrane Excel Discussion (Misc queries) 4 December 25th 05 02:01 AM
More than one cells in row & column input cell SAMI GAD Excel Programming 0 September 15th 03 08:20 AM


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