# Last Value and Row in a Column

#### jay333

##### New Member
I need a formula that provides the value in Column 'A' at Row 'X' where 'X' is the last row for which there is data in Column 'B'. In the below example this would mean - for the last row in Col 'B' that has a value what is the value in Col 'A'. In this case the result would be 'Apr'. I have a formula which finds the last value in Col 'B' which I do need (ie. 75), however, I now need a formula that provides the corresponding month (ie. Apr). Any suggestions? Thank you in advance.
 Col 'A' Col 'B' Jan 100 Feb 95 Mar 100 Apr 75 May Jun Jul

<TBODY>
</TBODY><COLGROUP><COL span=2></COLGROUP>

### Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

#### Jeff Meyers

##### Active Member
See if this works for you:

Sheet2
AB
1Jan100
2Feb95
3Mar100
4Apr75
5May
6Jun
7Jul
8
9
10
11Apr
12
13
14------------------------
15

</tbody>
Excel 2010

Worksheet Formulas
CellFormula
A11=OFFSET(A1,COUNT(B1:B7)-1,0)

</tbody>

<tbody>
</tbody>

#### Rick Rothstein

##### MrExcel MVP
Given this formula a try...

=INDEX(A:A,SUMPRODUCT(MAX(ROW(B\$1:B\$65535)*(B\$1:B\$65535<>""))))

#### jay333

##### New Member
This works great. Thanks!

#### Jeff Meyers

##### Active Member
Happy to help out. Thanks for the feedback.

#### T. Valko

##### Well-known Member
I need a formula that provides the value in Column 'A' at Row 'X' where 'X' is the last row for which there is data in Column 'B'. In the below example this would mean - for the last row in Col 'B' that has a value what is the value in Col 'A'. In this case the result would be 'Apr'. I have a formula which finds the last value in Col 'B' which I do need (ie. 75), however, I now need a formula that provides the corresponding month (ie. Apr). Any suggestions? Thank you in advance.
 Col 'A' Col 'B' Jan 100 Feb 95 Mar 100 Apr 75 May Jun Jul

<TBODY>
</TBODY>
Here's another one...

=LOOKUP(1E100,B:B,A:A)

Replies
5
Views
70
Replies
4
Views
924
Replies
0
Views
72
Replies
4
Views
127
Replies
19
Views
262

1,129,587
Messages
5,637,274
Members
416,963
Latest member
samfuge

### 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.

### Which adblocker are you using?

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

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