A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Charts and Charting
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

COPY last cell of a column..variable number of cells(macro)



 
 
Thread Tools Display Modes
  #1  
Old March 16th, 2004, 09:44 PM
external usenet poster
 
Posts: n/a
Default COPY last cell of a column..variable number of cells(macro)

Got column A1 thru A?.
What macro coding to copy that last (A? variable number on
entries) cell to K1? Thanks.
  #2  
Old March 16th, 2004, 11:33 PM
Frank Kabel
external usenet poster
 
Posts: n/a
Default COPY last cell of a column..variable number of cells(macro)

Hi
without a macro (and if there a no blank rows in between) try the
following formula in K1:
=OFFSET($A$1,COUNTA(A:A)-1,0)

--
Regards
Frank Kabel
Frankfurt, Germany

schrieb im Newsbeitrag
...
Got column A1 thru A?.
What macro coding to copy that last (A? variable number on
entries) cell to K1? Thanks.


  #3  
Old March 17th, 2004, 05:24 PM
external usenet poster
 
Posts: n/a
Default COPY last cell of a column..variable number of cells(macro)

Thanks Frank. Easy to tweek into Macro...
Range("K1").Select
ActiveCell.Formula = "=offset($A$1,counta(A:A)-1,0)"


-----Original Message-----
Hi
without a macro (and if there a no blank rows in between)

try the
following formula in K1:
=OFFSET($A$1,COUNTA(A:A)-1,0)

--
Regards
Frank Kabel
Frankfurt, Germany

schrieb im

Newsbeitrag
...
Got column A1 thru A?.
What macro coding to copy that last (A? variable number

on
entries) cell to K1? Thanks.


.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:15 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.