Finding last row in a column and extracting the data in the cell

Coach316

New Member
Joined
Mar 29, 2011
Messages
4
I need a formula that will find the last row of data in a worksheet and return the value of a cell in a particular column into another worksheet in the same workbook.

The worksheet is updated with new information daily so the number of rows will vary. But it will never be greater than 31 (most # days in any month). Also, certain columns are MTD running totals so formulas populate all of the cells in that column through day 31. I will need to use Column A (which contains the date/time data was entered) to establish my "last row".

For example: If the last row of information is in Sheet 1 is 12, I want to return the value in column C row 12 to a specific cell in Sheet 2.

Also, I am using Excel 2007 and I'm sharing the spreadsheet among multiple users on Google Docs and cannot use VBA code or a macro to resolve this problem.
 
Last edited:

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
I need a formula that will find the last row of data in a worksheet and return the value of a cell in a particular column into another worksheet in the same workbook.

The worksheet is updated with new information daily so the number of rows will vary. But it will never be greater than 31 (most # days in any month). Also, certain columns are MTD running totals so formulas populate all of the cells in that column through day 31. I will need to use Column A (which contains the date/time data was entered) to establish my "last row".

For example: If the last row of information is in Sheet 1 is 12, I want to return the value in column C row 12 to a specific cell in Sheet 2.

Also, I am using Excel 2007 and I'm sharing the spreadsheet among multiple users on Google Docs and cannot use VBA code or a macro to resolve this problem.
What type of data is entered in column A? Is it text? Numeric? Could be either?
 
Upvote 0
Column A is a timestamp of the date the spreadsheet is updated. So it is a date type in the format of: 3/29/2011 4:24:20

If that makes things difficult, I can use Column B (numerical data) to determine the last row used.

Cant use Counta....all that does is return the number of the last row used.
 
Upvote 0
Column A is a timestamp of the date the spreadsheet is updated. So it is a date type in the format of: 3/29/2011 4:24:20

If that makes things difficult, I can use Column B (numerical data) to determine the last row used.

Cant use Counta....all that does is return the number of the last row used.
Ok, let's start with this and then go from there...

This formula will return the value from the cell that is in the last row and the 3rd column from the range A:G.

=INDEX(A:G,COUNTA(A:A),3)

Assumes that there are no empty/blank cells within the data range of column A.
 
Upvote 0
That works beautifully. There will never any empty cells as the information is being brought over from a form and all items are required to have an entry even if it is 0.

Now the trick to get that amount to populate in another worksheet in the same workbook I have: =INDEX(Sheet4!$A:$G,COUNTA(Sheet4!$A:$A),2)

It works, but I want to make sure that it looks sound to you.
 
Upvote 0
That works beautifully. There will never any empty cells as the information is being brought over from a form and all items are required to have an entry even if it is 0.

Now the trick to get that amount to populate in another worksheet in the same workbook I have: =INDEX(Sheet4!$A:$G,COUNTA(Sheet4!$A:$A),2)

It works, but I want to make sure that it looks sound to you.
The syntax is correct.

That formula is getting the result from column B of Sheet4.
 
Upvote 0

Forum statistics

Threads
1,224,564
Messages
6,179,544
Members
452,925
Latest member
duyvmex

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top