Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Last Row Question?

I have a workbook with 2 sheets.
Sheet 1 contains the values which be updated daily.
Sheet 2 uses to get the values from the last row of sheet 1 to perfor
calculation.

My question is how to make A2,A3 of sheet2 always get the value o
column K,L of the last row in Sheet 1?

Thanks
Michae

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Last Row Question?


With Worksheets("Sheet1")
Worksheets("Sheet2").Range("A2").Value =
.Range("K" & Cells(Rows.Count,"K").End(xlUp).Row).Value
Worksheets("Sheet2").Range("A3").Value =
.Range("L" & Cells(Rows.Count,"L").End(xlUp).Row).Value
End With

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Michael168 " wrote in message
...
I have a workbook with 2 sheets.
Sheet 1 contains the values which be updated daily.
Sheet 2 uses to get the values from the last row of sheet 1 to perform
calculation.

My question is how to make A2,A3 of sheet2 always get the value of
column K,L of the last row in Sheet 1?

Thanks
Michael


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Last Row Question?

Are you looking for a formula or vba code.

Are the values numeric or text?

--
Regards,
Tom Ogilvy


"Michael168 " wrote in message
...
I have a workbook with 2 sheets.
Sheet 1 contains the values which be updated daily.
Sheet 2 uses to get the values from the last row of sheet 1 to perform
calculation.

My question is how to make A2,A3 of sheet2 always get the value of
column K,L of the last row in Sheet 1?

Thanks
Michael


---
Message posted from http://www.ExcelForum.com/



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Last Row Question?

Hi, Tom

The values are in numeric
I am looking for a formula.
Thanks to Bob Philips for the VBA code.

Regards
Michael

Tom Ogilvy wrote:
*Are you looking for a formula or vba code.

Are the values numeric or text?

--
Regards,
Tom Ogilvy


"Michael168 " wrote i
message
...
I have a workbook with 2 sheets.
Sheet 1 contains the values which be updated daily.
Sheet 2 uses to get the values from the last row of sheet 1 t

perform
calculation.

My question is how to make A2,A3 of sheet2 always get the value of
column K,L of the last row in Sheet 1?

Thanks
Michael


---
Message posted from http://www.ExcelForum.com/


--
Message posted from http://www.ExcelForum.com

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Last Row Question?

A2: =INDEX(Sheet1!K:K,MATCH(9.99999999999999E+307,Shee t1!K:K))

A3: =INDEX(Sheet1!L:L,MATCH(9.99999999999999E+307,Shee t1!L:L))


If column K (or L) is blank, it will return #N/A

--
Regards,
Tom Ogilvy

"Michael168 " wrote in message
...
Hi, Tom

The values are in numeric
I am looking for a formula.
Thanks to Bob Philips for the VBA code.

Regards
Michael

Tom Ogilvy wrote:
*Are you looking for a formula or vba code.

Are the values numeric or text?

--
Regards,
Tom Ogilvy


"Michael168 " wrote in
message
...
I have a workbook with 2 sheets.
Sheet 1 contains the values which be updated daily.
Sheet 2 uses to get the values from the last row of sheet 1 to

perform
calculation.

My question is how to make A2,A3 of sheet2 always get the value of
column K,L of the last row in Sheet 1?

Thanks
Michael


---
Message posted from http://www.ExcelForum.com/
*



---
Message posted from http://www.ExcelForum.com/





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 422
Default Last Row Question?

Tom:
The row argument within the Match() function below is:
9.99999999999999E+307 <<?? This evidently is computereeze for a real
row-number.
What does it equate to?
TIA,
JMay

"Tom Ogilvy" wrote in message
...
A2: =INDEX(Sheet1!K:K,MATCH(9.99999999999999E+307,Shee t1!K:K))

A3: =INDEX(Sheet1!L:L,MATCH(9.99999999999999E+307,Shee t1!L:L))


If column K (or L) is blank, it will return #N/A

--
Regards,
Tom Ogilvy

"Michael168 " wrote in message
...
Hi, Tom

The values are in numeric
I am looking for a formula.
Thanks to Bob Philips for the VBA code.

Regards
Michael

Tom Ogilvy wrote:
*Are you looking for a formula or vba code.

Are the values numeric or text?

--
Regards,
Tom Ogilvy


"Michael168 " wrote in
message
...
I have a workbook with 2 sheets.
Sheet 1 contains the values which be updated daily.
Sheet 2 uses to get the values from the last row of sheet 1 to
perform
calculation.

My question is how to make A2,A3 of sheet2 always get the value of
column K,L of the last row in Sheet 1?

Thanks
Michael


---
Message posted from http://www.ExcelForum.com/
*



---
Message posted from http://www.ExcelForum.com/





  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Last Row Question?

It is the largest number Excel can store. It doesn't have anything to do
with a row number . Match returns the row number.

--
Regards,
Tom Ogilvy

"JMay" wrote in message news:ksLrc.2979$zE6.107@lakeread06...
Tom:
The row argument within the Match() function below is:
9.99999999999999E+307 <<?? This evidently is computereeze for a real
row-number.
What does it equate to?
TIA,
JMay

"Tom Ogilvy" wrote in message
...
A2: =INDEX(Sheet1!K:K,MATCH(9.99999999999999E+307,Shee t1!K:K))

A3: =INDEX(Sheet1!L:L,MATCH(9.99999999999999E+307,Shee t1!L:L))


If column K (or L) is blank, it will return #N/A

--
Regards,
Tom Ogilvy

"Michael168 " wrote in

message
...
Hi, Tom

The values are in numeric
I am looking for a formula.
Thanks to Bob Philips for the VBA code.

Regards
Michael

Tom Ogilvy wrote:
*Are you looking for a formula or vba code.

Are the values numeric or text?

--
Regards,
Tom Ogilvy


"Michael168 " wrote in
message
...
I have a workbook with 2 sheets.
Sheet 1 contains the values which be updated daily.
Sheet 2 uses to get the values from the last row of sheet 1 to
perform
calculation.

My question is how to make A2,A3 of sheet2 always get the value of
column K,L of the last row in Sheet 1?

Thanks
Michael


---
Message posted from http://www.ExcelForum.com/
*


---
Message posted from http://www.ExcelForum.com/







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
Excel 2007 Macro/VB Question DDE Question MadDog22 Excel Worksheet Functions 1 March 10th 10 01:47 AM
BIG question Wu Excel Discussion (Misc queries) 11 June 15th 09 02:58 AM
where can I see my question and answer? Yesterday I ask a question IP Excel Discussion (Misc queries) 2 May 10th 08 04:08 PM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
The question is an excel question that I need to figure out howto do in excel. Terry Excel Worksheet Functions 3 January 23rd 06 06:22 PM


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