Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 69
Default Range formula - urgent!

Excel 2003, SR 1

In a previous post, I asked about do loops, and the reply was to use range
instead - i.e.
Range(Range("J3"), Cells(Cells(Rows.Count, 1).End(xlUp).Row,
11)).Formula = _
"=IF(B3=""Employee:"",F3,"""")"

I thought I had it working, but something changed. The J column has numbers
in it until the data in the rows end. The problem seems to be that the
formula doesn't get placed in the K column (11).

This is a learning process for me, I'm not quite understanding this, just
doing what I'm told!

TIA,
Carole


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Range formula - urgent!

I think I'd do something like:

Dim LastRow as long
with worksheets("sheet999") '<-- change this
lastrow = .cells(.rows.count,"A").end(xlup).row
.range("K3:K" & lastrow).formula = "=IF(B3=""Employee:"",F3,"""")"
end with


Carole O wrote:

Excel 2003, SR 1

In a previous post, I asked about do loops, and the reply was to use range
instead - i.e.
Range(Range("J3"), Cells(Cells(Rows.Count, 1).End(xlUp).Row,
11)).Formula = _
"=IF(B3=""Employee:"",F3,"""")"

I thought I had it working, but something changed. The J column has numbers
in it until the data in the rows end. The problem seems to be that the
formula doesn't get placed in the K column (11).

This is a learning process for me, I'm not quite understanding this, just
doing what I'm told!

TIA,
Carole


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,290
Default Range formula - urgent!


Range("J3", Cells(Cells(Rows.Count, 1).End(xlUp).Row, 11)).Formula = _
"=IF(B3=""Employee:"",F3,"""")"
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"Carole O"
wrote in message
Excel 2003, SR 1
In a previous post, I asked about do loops, and the reply was to use range
instead - i.e.
Range(Range("J3"), Cells(Cells(Rows.Count, 1).End(xlUp).Row,
11)).Formula = _
"=IF(B3=""Employee:"",F3,"""")"

I thought I had it working, but something changed. The J column has numbers
in it until the data in the rows end. The problem seems to be that the
formula doesn't get placed in the K column (11).

This is a learning process for me, I'm not quite understanding this, just
doing what I'm told!
TIA,
Carole


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
Urgent Dynamic Range with Vlookup Jeff Excel Discussion (Misc queries) 3 October 6th 05 01:09 AM
URGENT - Help with choice of formula Piloulondon Excel Worksheet Functions 2 August 19th 05 07:06 PM
the best prediction formula?URgent! Vincci Excel Worksheet Functions 0 June 1st 05 04:32 AM
Urgent Formula Help Peter Curtis Excel Discussion (Misc queries) 17 January 12th 05 02:00 PM
Urgent Formula! Peter Curtis Excel Discussion (Misc queries) 4 January 6th 05 03:11 PM


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