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  dBforums > PC based Database Applications > Microsoft Excel > Reference Last Data Cells in Columns in another Workbook

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-27-08, 16:04
JerryDal JerryDal is offline
Registered User
 
Join Date: Jan 2002
Location: Bay Area
Posts: 473
Question Reference Last Data Cells in Columns in another Workbook

I have a monthly Excel report I'll call "Report" that I want to reference cells in another workbook "ExternalWB". ExternalWB will have data added to it each month and the current month row is the last data row of Sheet1. There are several cells in Report, Sheet1 tab, that I want to reference the very last data row for columns C, D, E, F in ExternalWB.

I need help with a formula and/or technique to do this.
Jerry
Reply With Quote
  #2 (permalink)  
Old 02-28-08, 12:38
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
Howdy, Jerry. I was going to answer this, but work has been almost non-stop. Looks like my earliest time to setup and test is next Monday.

Hopefully someone else can provide you with a solution before then.
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
  #3 (permalink)  
Old 02-28-08, 21:14
myle myle is offline
(Making Your Life Easy)
 
Join Date: Feb 2004
Location: New Zealand
Posts: 1,143
First we need to count the number of Rows

=countif(C:C,">0") will give a number of cell that are not blank

then we can do a =Index(C:C,countif(C:C,">0"),0)

ill also used the Offset() but that a bit hard to explan
__________________
hope this help

See clear as mud


StePhan McKillen
the aim is store once, not store multiple times
Remember... Optimize 'til you die!
Progaming environment:
Access based on my own environment: DAO3.6/A97/A2000/A2003
VB based on my own environment: vb6 sp5
ASP based on my own environment: 5.6
VB-NET based on my own environment started 2007
SQL-2005 based on my own environment started 2008
MYLE
Reply With Quote
  #4 (permalink)  
Old 03-05-08, 04:25
karthic_85 karthic_85 is offline
Registered User
 
Join Date: Dec 2007
Posts: 37
Using offset

Sub test()
ActiveWorkbook.Sheets("Sheet1").Activate
Range("A1", "A6335").Select


Do Until IsEmpty(ActiveCell) = True

ActiveCell.Offset(1, 0).Select

Loop
ActiveCell.Offset(-1, 0).Select
MsgBox (ActiveCell.Value)


End Sub
__________________
Meyyappan
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On