Extracting data

JojoWhite

New Member
Joined
May 17, 2018
Messages
2
HI,
I am needing to extract 2 bits of information from this spreadsheet below, all based around numbers in column A which are product numbers. this is for an ordering sheet.
I need to know the next date that the product is needed.
I need to know how much of that product is needed, which is the figures in each cell below date.

ignore second row!

Many thanks Jo
[TABLE="width: 522"]
<colgroup><col width="37" style="width: 28pt; mso-width-source: userset; mso-width-alt: 1353;"> <col width="84" style="width: 63pt; mso-width-source: userset; mso-width-alt: 3072;"> <col width="77" style="width: 58pt; mso-width-source: userset; mso-width-alt: 2816;"> <col width="84" style="width: 63pt; mso-width-source: userset; mso-width-alt: 3072;" span="4"> <col width="77" style="width: 58pt; mso-width-source: userset; mso-width-alt: 2816;"> <col width="84" style="width: 63pt; mso-width-source: userset; mso-width-alt: 3072;"> <tbody>[TR]
[TD="class: xl63, width: 37, bgcolor: transparent"][/TD]
[TD="class: xl63, width: 84, bgcolor: transparent, align: right"]14/05/2018[/TD]
[TD="class: xl63, width: 77, bgcolor: transparent, align: right"]21/05/2018[/TD]
[TD="class: xl63, width: 84, bgcolor: transparent, align: right"]28/05/2018[/TD]
[TD="class: xl63, width: 84, bgcolor: transparent, align: right"]04/06/2018[/TD]
[TD="class: xl63, width: 84, bgcolor: transparent, align: right"]11/06/2018[/TD]
[TD="class: xl63, width: 84, bgcolor: transparent, align: right"]18/06/2018[/TD]
[TD="class: xl63, width: 77, bgcolor: transparent, align: right"]25/06/2018[/TD]
[TD="class: xl63, width: 84, bgcolor: transparent, align: right"]02/07/2018[/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: right"]229[/TD]
[TD="align: right"]230[/TD]
[TD="align: right"]231[/TD]
[TD="align: right"]232[/TD]
[TD="align: right"]233[/TD]
[TD="align: right"]234[/TD]
[TD="align: right"]235[/TD]
[TD="align: right"]236[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2006[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="align: right"]2052[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2074[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="align: right"]2100[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]3.78[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2101[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="align: right"]2102[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]30.21[/TD]
[TD][/TD]
[TD="align: right"]7.875[/TD]
[TD="align: right"]14.364[/TD]
[TD="align: right"]27.7476[/TD]
[TD="align: right"]48.216[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2103[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent, align: right"]1001.229025[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent, align: right"]2578.66308[/TD]
[TD="bgcolor: transparent, align: right"]512.4[/TD]
[TD="bgcolor: transparent, align: right"]753.8376[/TD]
[TD="bgcolor: transparent, align: right"]1677.921[/TD]
[/TR]
[TR]
[TD="align: right"]2631[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2632[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="align: right"]2633[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2634[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="align: right"]2636[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2637[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="align: right"]2638[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2628[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent, align: right"]21215.25[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="align: right"]2629[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]2627[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
What do you mean by "next date product is needed"?
Next date after today, ie if today is 5/06/2018 next date product is needed for 2102 is 11/06/2018,
or earliest date for each product irrespective of what today is, ie 2102 next date needed would be 28/05/2018

With 14/5/2018 in B1

in J3
=IFERROR(INDEX(B$1:I$1,1,MATCH(TRUE,INDEX(B3:I3>0,),0)),"")
for earliest date product is needed

in K3
=IFERROR(INDEX(B$2:I$2,1,MATCH(TRUE,INDEX(B3:I3>0,),0)),"")
for how much product is needed
 
Upvote 0
What do you mean by "next date product is needed"?
Next date after today, ie if today is 5/06/2018 next date product is needed for 2102 is 11/06/2018,
or earliest date for each product irrespective of what today is, ie 2102 next date needed would be 28/05/2018

With 14/5/2018 in B1

in J3
=IFERROR(INDEX(B$1:I$1,1,MATCH(TRUE,INDEX(B3:I3>0,),0)),"")
for earliest date product is needed

in K3
=IFERROR(INDEX(B$2:I$2,1,MATCH(TRUE,INDEX(B3:I3>0,),0)),"")
for how much product is needed

hi,

what i need in one cell is the next date product 2101 is due so would be 02/07/2018
in another cell I need how much of that product is needed on that date so would be 3.78
thanks for your help
Jo
 
Upvote 0
For date

in J3
=IFERROR(INDEX(B$1:I$1,1,MATCH(TRUE,INDEX(B3:I3>0,),0)),"")

For amount

in K3
=IFERROR(INDEX(B3:I3,1,MATCH(TRUE,INDEX(B3:I3>0,),0)),"")

and copy the formulas down the columns
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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