Only last entry in a column to count

tea_chr

New Member
Joined
Jun 18, 2004
Messages
20
I have XP. I am trying to track my stocks. I have a column where I add the lastest stock quote (price per share) each month, with January on the top going down to December. At the bottom of the column. Below that I have a cell (where I guess a total would normally be) that I want the last stock quote entered to be reflected.

My question is; as I add a new stock quote each month, how do I get only this last entry in the colum to be recorded at the bottom of the column also?
 

Some videos you may like

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

timorrill

Well-known Member
Joined
Sep 20, 2006
Messages
528
You could use the INDIRECT function. Let's say you have stock prices starting in cell A1 and going through A7. You want the most recent price (in A7) to show up in cell A32. The the formula in cell A32 could be...

Code:
=INDIRECT("A"&COUNT(A1:A31))

Of course, you will need to adapt this to your own data.
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,201
I have XP. I am trying to track my stocks. I have a column where I add the lastest stock quote (price per share) each month, with January on the top going down to December. At the bottom of the column. Below that I have a cell (where I guess a total would normally be) that I want the last stock quote entered to be reflected.

My question is; as I add a new stock quote each month, how do I get only this last entry in the colum to be recorded at the bottom of the column also?

Try the following in the cell where you want the last numeric entry...

=LOOKUP(9.99999999999999E+307,OFFSET(INDEX(A:A,1),0,0,ROW()-1))

Adjust the column to suit...
 

tea_chr

New Member
Joined
Jun 18, 2004
Messages
20
Thank you for your input, no luck so far.

Here is some additional information that may help.

The column I'm in is D
Jan is on row 58 with a stock quote of 1.87 in cell D58
Feb is on row 59 with a stock quote of 2.00 in cell D59
Mar is on row 60 with a stock quote of 2.28 in cell D60
Apr is on row 61 with a stock quote of 2.63 in cell D61
Dec is on row 69
The cell I want the last number entered to reflect in is D71

So cell D71 should be reflecting 2.63 as the last number to date.

Aladin
This is what your formula looked like when I tried it
=LOOKUP(9.99999999999999E+307,OFFSET(INDEX(D58:D69,1),0,0,ROW()-1))
I saw 1.06 in cell D71 which is where I put the formula

Timorrill
This is what your formula looked like when I tried it
=INDIRECT("D"&COUNT(D58:D69))
I didn't see anything in cell D71, which is where I put the formula.

So obviously, I am doing something wrong. Maybe with this additional information you can
give me more quidance. I sure appreciate your help.
****
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,201
Thank you for your input, no luck so far.

Here is some additional information that may help.

The column I'm in is D
Jan is on row 58 with a stock quote of 1.87 in cell D58
Feb is on row 59 with a stock quote of 2.00 in cell D59
Mar is on row 60 with a stock quote of 2.28 in cell D60
Apr is on row 61 with a stock quote of 2.63 in cell D61
Dec is on row 69
The cell I want the last number entered to reflect in is D71

So cell D71 should be reflecting 2.63 as the last number to date.

Aladin
This is what your formula looked like when I tried it
=LOOKUP(9.99999999999999E+307,OFFSET(INDEX(D58:D69,1),0,0,ROW()-1))
I saw 1.06 in cell D71 which is where I put the formula

Timorrill
This is what your formula looked like when I tried it
=INDIRECT("D"&COUNT(D58:D69))
I didn't see anything in cell D71, which is where I put the formula.

So obviously, I am doing something wrong. Maybe with this additional information you can
give me more quidance. I sure appreciate your help.
****

Try...

D71:

=LOOKUP(9.99999999999999E+307,OFFSET(D58,0,0,ROW()-ROW(D58)))

=LOOKUP(9.99999999999999E+307,OFFSET(D58,0,0,MIN(ROW()-ROW(D58))))

which is a kosher version of the first.
 

Watch MrExcel Video

Forum statistics

Threads
1,123,385
Messages
5,601,329
Members
414,445
Latest member
walramgo02

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
Top