Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Cell Referencing 1

Status
Not open for further replies.

renesp

MIS
Jul 27, 2010
8
MX
Hi all and thanks for helping out. I need to have a cell on Sheet1 keep referencing the latest cell of column F Sheet2. So as the worksheet grows,I know the what the latest information on the other worksheet is.

Thanks again.
 
Try using the OFFSET function in combination with COUNTA
a sample formula would look like this.

=OFFSET(Sheet2!A1,COUNTA(Sheet2!F:F)-1,5)
 


Hi,
latest information on the other worksheet
Do you want to know the 1) MAX numeric value in a column or 2) the row number of the last row of data in a column or 3) the VALUE in the last row of data in a column ?

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
I need to know what is in the last cell in column F. So if i add another row, the next last cell in column F keeps showing up.

Thanks
 
In which case WebGeniis formula will work just fine

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 



Do you merely want to know what the last row is, or do you need to know the new range of data in column F, when you add or delete rows?

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
By the way, welcome, renesp and WebGenii to tek-tips.

WebGenii, if you're looking at a challenge for proving who knows the best in Excel and other MS Office Apps, you've found the right place. [wink]

renesp, Skip asked you a pretty basic question, necessary for getting the definite right answer. That question is simply thus: Do you want the [blue]DATA[/blue] contained in the last cell of your Column F, or do you want the [blue]ADDRESS[/blue] of the last cell in said Column?

And either way, once you do find a solution that works well for your specific situation, please update the thread here, letting others know exactly what the solution was - whether something here, or whether something altogether different.
 
renesp said:
I need to know what is in the last cell in column F

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 


Yes, the OP got his answer.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
I've tried the offset formula but it just returns 1/0/1900. When it the last cell in column F has 8/12/10. I forgot to mention that the data starts on F8 and continues on down.
 


Web's formula
[tt]
=OFFSET(Sheet2!A1,COUNTA(Sheet2!F:F)-1,5)
[/tt]
assumes that 1) there is a heading in F1 and the data starting in F2 is contiguous to the last cell containing data and 3) there are no cells in column F ANYWHERE below the last contiguous cell containing data.
I forgot to mention that the data starts on F8 and continues on down.
Are there any cells ABOVE F8 containing ANY value and are there any cells BELOW the last cell containing ANY values?

If not then...
[tt]
[tt]
=OFFSET(Sheet2!A1,COUNTA(Sheet2!F:F)+7,5)
[/tt]

[/tt]

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
The COUNTA portion of the formula counts the number of cells in the column (F) containing data. If there are empty cells above F8, this is the part of the formula to change.
Assuming empty cells above F8 I'd try this
=OFFSET(Sheet2!A1,COUNTA(Sheet2!F:F)+7,5)

Catharine (aka WebGenii)
 
The header starts from B7-F7. So the data starts on row 8. So there is "data" above F8 but nothing important.

Thank you all once again.
 


The header starts from B7-[red]F[/red]7
[red]THAT[/red] is important because it is a VALUE in column F. COUNTA [red]counts[/red] F7, sou you must account for that in the offset from row 1.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
So should it be =OFFSET(Sheet2!A1,COUNTA(Sheet2!F:F)+8,5) instead of =OFFSET(Sheet2!A1,COUNTA(Sheet2!F:F)+7,5)
 



Doe it return what you expect?

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
It keeps giving me 0 and when I change the cell type to date it always gives me 1/0/1900.
 


If your first cell containing data is in F7, then the offset from row 1 is 6: 1 + 6 = 7.

You need to look at the Excel HELP on OFFSET and fully understand how it works.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top