If Formula to Enter in Last Date that inventory was received

jjm3066

New Member
Joined
Jun 22, 2011
Messages
43
Lets say in Row 1, I have every other column with a date as the header. In Row 2 under in each column of the date above, I have listed a number of how much inventory was received. How do I build a formula, that says look back Row 2 in msot recent order, and then place the date of Row 2 when the date is greater than 0. Pretty much tell me the most recent date (cell in Row 1) when inventory was received, and stop and palce that date.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Lets say in Row 1, I have every other column with a date as the header. In Row 2 under in each column of the date above, I have listed a number of how much inventory was received. How do I build a formula, that says look back Row 2 in msot recent order, and then place the date of Row 2 when the date is greater than 0. Pretty much tell me the most recent date (cell in Row 1) when inventory was received, and stop and palce that date.
Maybe this...

Book1
BCDEFGH
18/1/2011_8/2/2011_8/3/2011_8/4/2011
210_20____
Sheet1

=LOOKUP(1E100,B2:H2,B1:H1)

Format as Date

Returns 8/2/2011
 
Upvote 0
I have zeros, in your last two columns, and it is bringing the last date which holds a zero, anyway to write and say dont mind the zeros?
 
Upvote 0
Lets say in Row 1, I have every other column with a date as the header. In Row 2 under in each column of the date above, I have listed a number of how much inventory was received. How do I build a formula, that says look back Row 2 in msot recent order, and then place the date of Row 2 when the date is greater than 0. Pretty much tell me the most recent date (cell in Row 1) when inventory was received, and stop and palce that date.

Control+shift+enter, not just enter:

=LOOKUP(9.99999999999999E+307,IF(MOD(COLUMN(A2:N2)-COLUMN(A2),2)=0,1/A2:N2),A1:N1)
 
Upvote 0
I have zeros, in your last two columns, and it is bringing the last date which holds a zero, anyway to write and say dont mind the zeros?
Try this...

Book1
BCDEFGH
18/1/2011_8/2/2011_8/3/2011_8/4/2011
210_20_0_0
Sheet1

Assuming the "in between" cells don't contain numbers.

=LOOKUP(1E100,1/(B2:H2),B1:H1)

Format as Date
 
Upvote 0

Forum statistics

Threads
1,224,525
Messages
6,179,314
Members
452,905
Latest member
deadwings

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