Last Value and Row in a Column

jay333

New Member
Joined
Nov 5, 2010
Messages
17
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'</SPAN>Col 'B'</SPAN>
Jan</SPAN>100</SPAN>
Feb</SPAN>95</SPAN>
Mar</SPAN>100</SPAN>
Apr</SPAN>75</SPAN>
May</SPAN>
Jun</SPAN>
Jul</SPAN>

<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
Joined
Mar 14, 2012
Messages
405
See if this works for you:

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

<thead>
</thead><tbody>
</tbody>
Excel 2010

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

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 

Rick Rothstein

MrExcel MVP
Joined
Apr 18, 2011
Messages
36,975
Office Version
  1. 2016
Platform
  1. Windows
Given this formula a try...

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

T. Valko

Well-known Member
Joined
May 9, 2009
Messages
16,623
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'</SPAN>
Col 'B'</SPAN>
Jan</SPAN>
100</SPAN>
Feb</SPAN>
95</SPAN>
Mar</SPAN>
100</SPAN>
Apr</SPAN>
75</SPAN>
May</SPAN>
Jun</SPAN>
Jul</SPAN>

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

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

Watch MrExcel Video

Forum statistics

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