Return Value of Cell to the Left of a Calculated Cell

claybwagner28

Board Regular
Joined
Sep 25, 2014
Messages
67
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have a running monthly total of sales. I type the value in Column L.

I have a formula which finds and returns the most recent entry. That formula is LOOKUP(2,1/(L2:L13<>””),L2:L13).

In column K is the corresponding month, Jan-Dec. What I would like is for excel to find the most recent month’s sales and return the value one cell to the left. So if I type in L4, I want it to return K3, which is the month in this case.

This seems easy, but I can’t seem to get it to work. I tried LOOKUP and INDEX and MATCH, but I can’t seem it get it right.

Any ideas?
Thanks in advance.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
How about
Excel Formula:
=LOOKUP(2,1/(L2:L13<>""),K2:K13)
 
Upvote 1
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,393
Messages
6,124,680
Members
449,180
Latest member
kfhw720

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