Complex Index Match Max return date and label formula

EvanDef

New Member
Joined
Jan 6, 2014
Messages
21
Hello Excel Gurus,

I have a problem that has been stifling me for the past 2 weeks. I have a data table that includes a primary product and its components i am trying to forecast for completion within a set of 30 day periods. The components must complete first within enough time to complete the primary for the given period. Otherwise the primary will bill for the following period. I have tried combinations of VLOOKUP, INDEX, MATCH, MAX, MIN and RANK.EQ all to no avail.

The goal is to lookup the order number, match the primary forecast to the component forecast if the PVA status is current. If the PVA Status is next, the primary would fall into the following PVA period. Also, if a component or primary is on hold, no forecast would be provided.

Any guidance in the proper direction would be greatly appreciated!
Component ForecastProduct TypeOrder NumberOrder StatusPrimary ForecastPVA StatusPVA Date
Primary3P44MZ550001ASSIGNED
Component3P44MZ550001ASSIGNED
2015 PVA4Component3P44MZ550001FIRM CURRENT3/18/2015
2015 PVA4Component3P44MZ550001FIRM CURRENT3/18/2015
2015 PVA4Component3P44MZ550001FIRM CURRENT3/18/2015
2015 PVA4Component3P44MZ550001FIRM CURRENT3/18/2015
Primary3P44MZFL0009HOLD
Component3P44MZFL0009HOLD
2015 PVA4Component3P44MZFL0009FIRM CURRENT3/17/2015
2015 PVA4Component3P44MZFL0009FIRM CURRENT3/17/2015
2015 PVA4Component3P44MZFL0009FIRM CURRENT3/17/2015
Primary3P511P7T0001ASSIGNED
2015 PVA4Component3P511P7T0001FIRM CURRENT3/26/2015
2015 PVA4Component3P511P7T0001FIRM CURRENT3/26/2015
PrimaryNPA000103815ASSIGNED
ComponentNPA000103815ASSIGNED
2015 PVA3ComponentNPA000103815FIRM NEXT3/8/2015
2015 PVA3ComponentNPA000103815WORKING NEXT3/9/2015
2015 PVA3ComponentNPA000103815WORKING CURRENT3/4/2015
2015 PVA3ComponentNPA000103815FIRM CURRENT3/5/2015
PrimaryWZ410138ASSIGNED
2015 PVA3ComponentWZ410138FIRM NEXT3/11/2015
2015 PVA3ComponentWZ410138FIRM NEXT3/11/2015
2015 PVA3ComponentWZ410138SENT CURRENT3/4/2015
2015 PVA3ComponentWZ410138SENT CURRENT3/4/2015

<colgroup><col style="width: 60pt; mso-width-source: userset; mso-width-alt: 2925;" width="80"> <col style="width: 66pt; mso-width-source: userset; mso-width-alt: 3218;" width="88"> <col style="width: 71pt; mso-width-source: userset; mso-width-alt: 3474;" width="95"> <col style="width: 76pt; mso-width-source: userset; mso-width-alt: 3693;" width="101"> <col style="width: 50pt; mso-width-source: userset; mso-width-alt: 2413;" width="66"> <col style="width: 42pt; mso-width-source: userset; mso-width-alt: 2048;" width="56"> <col style="width: 50pt; mso-width-source: userset; mso-width-alt: 2413;" width="66"> <tbody>
</tbody>
PVA Start DatePVA End DatePVA Forecast LabelCompletion DeadlineRANK
1/16/20152/15/20152015 PVA22/6/20151
2/16/20153/15/20152015 PVA33/6/20152
3/16/20154/15/20152015 PVA44/7/20153
4/16/20155/15/20152015 PVA55/7/20154

<colgroup><col style="width: 56pt; mso-width-source: userset; mso-width-alt: 2742;" span="2" width="75"> <col style="width: 66pt; mso-width-source: userset; mso-width-alt: 3218;" width="88"> <col style="width: 62pt; mso-width-source: userset; mso-width-alt: 2998;" width="82"> <col style="width: 32pt; mso-width-source: userset; mso-width-alt: 1536;" width="42"> <tbody>
</tbody>

<tbody>
</tbody>
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Hello,

Assuming your first table starts in A1 and the secondary table is in J1, try this in ccolumn E:
=IF(F4="current",G4,IF(F4="next",(INDEX($M$2:$M$5,MATCH(G4,$J$2:$J$5,1)+1)),""))

My understandign was that, when there is "next" in column F, the primary forecast will be equal to the completion deadline of the next period (eg if status is "next" and PVA date = 3/8/2015 wich is in the 2nd period, then the result will be the completion deadline of the 3rd period)

I hope I understood correctly and that can help.
 
Upvote 0

Forum statistics

Threads
1,215,416
Messages
6,124,774
Members
449,187
Latest member
hermansoa

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