last month

mistersteve

Board Regular
Joined
Aug 18, 2014
Messages
110
Office Version
  1. 365
I have a row of months as below

Jan QtyJan £Feb QtyFeb £Mar QtyMar £Apr QtyApr £May QtyMay £Jun QtyJun £Jul QtyJul £
2568.752571
<colgroup><col width="61" style="width: 46pt; mso-width-source: userset; mso-width-alt: 2230;"> <col width="61" style="width: 46pt; mso-width-source: userset; mso-width-alt: 2230;" span="11"> <col width="61" style="width: 46pt; mso-width-source: userset; mso-width-alt: 2230;" span="2"> <tbody> </tbody>

this continues onto Dec.

I am looking for a formula that will tell me the latest month a product has been inputted and the qty

Thanks
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
1. Last month

=INDEX(A1:N1,MATCH(9.99999999999999E+307,A2:N2)-1)

2. Last month qty

=INDEX(A2:N2,MATCH(9.99999999999999E+307,A2:N2)-1)
 
Upvote 0
Similar option...
A​
B​
C​
D​
E​
F​
G​
H​
I​
J​
K​
L​
M​
N​
1​
Jan Qty​
Jan £​
Feb Qty​
Feb £​
Mar Qty
Mar £​
Apr Qty​
Apr £​
May Qty​
May £​
Jun Qty​
Jun £​
Jul Qty​
Jul £​
2​
25​
68.75​
25​
71​
3​
4​
Jul Qty
5​
25​
A4=INDEX($A$1:$N$1,MATCH(0,A2:N2,-1)-1)
A5=INDEX($A$2:$N$2,MATCH(0,A2:N2,-1)-1)
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,698
Members
448,979
Latest member
DET4492

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