Hi,
I'm receiving an extract of data and I would like to rearrange in another spreadsheet.
for that I have a to use a Vlookup function with several condition.
Here is the file I receive:
A B C D ...
-- removed inline image ---
<table border="0" cellpadding="0" cellspacing="0" width="956"><colgroup><col style="mso-width-source:userset;mso-width-alt:4315;width:89pt" width="118"> <col style="mso-width-source:userset;mso-width-alt:5632;width:116pt" width="154"> <col style="mso-width-source:userset;mso-width-alt:2486;width:51pt" width="68"> <col style="mso-width-source:userset;mso-width-alt:4864;width:100pt" width="133"> <col style="mso-width-source:userset;mso-width-alt:5961;width:122pt" width="163"> <col style="mso-width-source:userset;mso-width-alt:5412;width:111pt" width="148"> <col style="mso-width-source:userset;mso-width-alt:6290;width:129pt" width="172"> </colgroup><tbody><tr style="height:12.75pt" height="17"> <td class="xl63" style="height:12.75pt;width:89pt" height="17" width="118">number simplified</td> <td class="xl63" style="border-left:none;width:116pt" width="154">NUMBER</td> <td class="xl63" style="border-left:none;width:51pt" width="68">R</td> <td class="xl63" style="border-left:none;width:100pt" width="133">ID</td> <td class="xl63" style="border-left:none;width:122pt" width="163"> start date</td> <td class="xl63" style="border-left:none;width:111pt" width="148"> end date</td> <td class="xl63" style="border-left:none;width:129pt" width="172"> status</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl63" style="height:12.75pt;border-top:none" height="17">00041782</td> <td class="xl63" style="border-top:none;border-left:none">00041782-X</td> <td class="xl63" style="border-top:none;border-left:none">A.12</td> <td class="xl63" style="border-top:none;border-left:none">OWF</td> <td class="xl64" style="border-top:none;border-left:none" align="right">22/05/2011</td> <td class="xl64" style="border-top:none;border-left:none" align="right">22/05/2011
</td> <td class="xl63" style="border-top:none;border-left:none">wwww</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl63" style="height:12.75pt;border-top:none" height="17">00041782</td> <td class="xl63" style="border-top:none;border-left:none">00041782-Y</td> <td class="xl63" style="border-top:none;border-left:none">A</td> <td class="xl63" style="border-top:none;border-left:none">3DWF</td> <td class="xl64" style="border-top:none;border-left:none" align="right">23/05/2011</td> <td class="xl64" style="border-top:none;border-left:none" align="right">23/05/2011
</td> <td class="xl63" style="border-top:none;border-left:none">xxx</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl63" style="height:12.75pt;border-top:none" height="17">00041782</td> <td class="xl63" style="border-top:none;border-left:none">00041782-X</td> <td class="xl63" style="border-top:none;border-left:none">A</td> <td class="xl63" style="border-top:none;border-left:none">2DWF</td> <td class="xl64" style="border-top:none;border-left:none" align="right">25/05/2011</td> <td class="xl64" style="border-top:none;border-left:none" align="right">25/05/2011
</td> <td class="xl63" style="border-top:none;border-left:none">yyy</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl63" style="height:12.75pt;border-top:none" height="17">00041782</td> <td class="xl63" style="border-top:none;border-left:none">00041782-Y</td> <td class="xl63" style="border-top:none;border-left:none">B</td> <td class="xl63" style="border-top:none;border-left:none">3DWF</td> <td class="xl64" style="border-top:none;border-left:none" align="right">23/05/2011</td> <td class="xl64" style="border-top:none;border-left:none" align="right">23/05/2011</td> <td class="xl63" style="border-top:none;border-left:none">zzz</td> </tr> </tbody></table>
Here is the file I need to feed:
-- removed inline image ---
<table border="0" cellpadding="0" cellspacing="0" width="779"><col style="mso-width-source:userset;mso-width-alt:4498;width:92pt" width="123"> <col style="width:48pt" width="64"> <col style="mso-width-source:userset;mso-width-alt:2742;width:56pt" width="75"> <col style="width:48pt" width="64"> <col style="mso-width-source:userset;mso-width-alt:2706;width:56pt" width="74"> <col style="mso-width-source:userset;mso-width-alt:3035;width:62pt" width="83"> <col style="mso-width-source:userset;mso-width-alt:2742;width:56pt" width="75"> <col style="width:48pt" width="64"> <col style="mso-width-source:userset;mso-width-alt:2779;width:57pt" width="76"> <col style="mso-width-source:userset;mso-width-alt:2962;width:61pt" width="81"> <tbody><tr style="height:12.75pt" height="17"> <td style="height:12.75pt;width:92pt" height="17" width="123">number simplified</td> <td class="xl65" style="width:48pt" width="64">R</td> <td class="xl65" style="border-left:none;width:56pt" width="75">ID</td> <td class="xl65" style="border-left:none;width:48pt" width="64">status
</td> <td class="xl65" style="border-left:none;width:56pt" width="74">/start date</td> <td class="xl65" style="border-left:none;width:62pt" width="83">end date</td> <td class="xl65" style="border-left:none;width:56pt" width="75">ID</td> <td class="xl65" style="border-left:none;width:48pt" width="64">status</td> <td class="xl65" style="border-left:none;width:57pt" width="76">start date</td> <td class="xl65" style="border-left:none;width:61pt" width="81">end date</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl67" style="height:12.75pt" height="17">00041782</td> <td class="xl67" style="border-top:none;border-left:none">A</td> <td class="xl67" style="border-top:none;border-left:none">OWF</td> <td class="xl68" style="border-top:none;border-left:none"> </td> <td class="xl66" style="border-top:none;border-left:none"> </td> <td class="xl66" style="border-top:none;border-left:none"> </td> <td class="xl67" style="border-top:none;border-left:none">3DWF</td> <td class="xl66" style="border-top:none;border-left:none"> </td> <td class="xl66" style="border-top:none;border-left:none"> </td> <td class="xl66" style="border-top:none;border-left:none"> </td> </tr> </tbody></table>
I want to have the status (contained in the data I receive) in the cell. the conditions are the blue cells:number 00041782 with R contains A and ID=OWF
I tried this formula bu I get a NA#:
{INDEX(Extract!G:G;(MATCH(1;(A2=Extract!A:A)*(B2=Extract!C:C)*(C2=Extract!D:D);0)))}
I have then to do the same for the start date, end date and change of conditions ID=3DWF but still with R=A and the ID=00041782.
If someone could help me it would be so great.
(Sorry for the visualization but the pictures I pasted first are not visible posts)
Thanks a lot in advance
I'm receiving an extract of data and I would like to rearrange in another spreadsheet.
for that I have a to use a Vlookup function with several condition.
Here is the file I receive:
A B C D ...
-- removed inline image ---
<table border="0" cellpadding="0" cellspacing="0" width="956"><colgroup><col style="mso-width-source:userset;mso-width-alt:4315;width:89pt" width="118"> <col style="mso-width-source:userset;mso-width-alt:5632;width:116pt" width="154"> <col style="mso-width-source:userset;mso-width-alt:2486;width:51pt" width="68"> <col style="mso-width-source:userset;mso-width-alt:4864;width:100pt" width="133"> <col style="mso-width-source:userset;mso-width-alt:5961;width:122pt" width="163"> <col style="mso-width-source:userset;mso-width-alt:5412;width:111pt" width="148"> <col style="mso-width-source:userset;mso-width-alt:6290;width:129pt" width="172"> </colgroup><tbody><tr style="height:12.75pt" height="17"> <td class="xl63" style="height:12.75pt;width:89pt" height="17" width="118">number simplified</td> <td class="xl63" style="border-left:none;width:116pt" width="154">NUMBER</td> <td class="xl63" style="border-left:none;width:51pt" width="68">R</td> <td class="xl63" style="border-left:none;width:100pt" width="133">ID</td> <td class="xl63" style="border-left:none;width:122pt" width="163"> start date</td> <td class="xl63" style="border-left:none;width:111pt" width="148"> end date</td> <td class="xl63" style="border-left:none;width:129pt" width="172"> status</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl63" style="height:12.75pt;border-top:none" height="17">00041782</td> <td class="xl63" style="border-top:none;border-left:none">00041782-X</td> <td class="xl63" style="border-top:none;border-left:none">A.12</td> <td class="xl63" style="border-top:none;border-left:none">OWF</td> <td class="xl64" style="border-top:none;border-left:none" align="right">22/05/2011</td> <td class="xl64" style="border-top:none;border-left:none" align="right">22/05/2011
</td> <td class="xl63" style="border-top:none;border-left:none">wwww</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl63" style="height:12.75pt;border-top:none" height="17">00041782</td> <td class="xl63" style="border-top:none;border-left:none">00041782-Y</td> <td class="xl63" style="border-top:none;border-left:none">A</td> <td class="xl63" style="border-top:none;border-left:none">3DWF</td> <td class="xl64" style="border-top:none;border-left:none" align="right">23/05/2011</td> <td class="xl64" style="border-top:none;border-left:none" align="right">23/05/2011
</td> <td class="xl63" style="border-top:none;border-left:none">xxx</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl63" style="height:12.75pt;border-top:none" height="17">00041782</td> <td class="xl63" style="border-top:none;border-left:none">00041782-X</td> <td class="xl63" style="border-top:none;border-left:none">A</td> <td class="xl63" style="border-top:none;border-left:none">2DWF</td> <td class="xl64" style="border-top:none;border-left:none" align="right">25/05/2011</td> <td class="xl64" style="border-top:none;border-left:none" align="right">25/05/2011
</td> <td class="xl63" style="border-top:none;border-left:none">yyy</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl63" style="height:12.75pt;border-top:none" height="17">00041782</td> <td class="xl63" style="border-top:none;border-left:none">00041782-Y</td> <td class="xl63" style="border-top:none;border-left:none">B</td> <td class="xl63" style="border-top:none;border-left:none">3DWF</td> <td class="xl64" style="border-top:none;border-left:none" align="right">23/05/2011</td> <td class="xl64" style="border-top:none;border-left:none" align="right">23/05/2011</td> <td class="xl63" style="border-top:none;border-left:none">zzz</td> </tr> </tbody></table>
Here is the file I need to feed:
-- removed inline image ---
<table border="0" cellpadding="0" cellspacing="0" width="779"><col style="mso-width-source:userset;mso-width-alt:4498;width:92pt" width="123"> <col style="width:48pt" width="64"> <col style="mso-width-source:userset;mso-width-alt:2742;width:56pt" width="75"> <col style="width:48pt" width="64"> <col style="mso-width-source:userset;mso-width-alt:2706;width:56pt" width="74"> <col style="mso-width-source:userset;mso-width-alt:3035;width:62pt" width="83"> <col style="mso-width-source:userset;mso-width-alt:2742;width:56pt" width="75"> <col style="width:48pt" width="64"> <col style="mso-width-source:userset;mso-width-alt:2779;width:57pt" width="76"> <col style="mso-width-source:userset;mso-width-alt:2962;width:61pt" width="81"> <tbody><tr style="height:12.75pt" height="17"> <td style="height:12.75pt;width:92pt" height="17" width="123">number simplified</td> <td class="xl65" style="width:48pt" width="64">R</td> <td class="xl65" style="border-left:none;width:56pt" width="75">ID</td> <td class="xl65" style="border-left:none;width:48pt" width="64">status
</td> <td class="xl65" style="border-left:none;width:56pt" width="74">/start date</td> <td class="xl65" style="border-left:none;width:62pt" width="83">end date</td> <td class="xl65" style="border-left:none;width:56pt" width="75">ID</td> <td class="xl65" style="border-left:none;width:48pt" width="64">status</td> <td class="xl65" style="border-left:none;width:57pt" width="76">start date</td> <td class="xl65" style="border-left:none;width:61pt" width="81">end date</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl67" style="height:12.75pt" height="17">00041782</td> <td class="xl67" style="border-top:none;border-left:none">A</td> <td class="xl67" style="border-top:none;border-left:none">OWF</td> <td class="xl68" style="border-top:none;border-left:none"> </td> <td class="xl66" style="border-top:none;border-left:none"> </td> <td class="xl66" style="border-top:none;border-left:none"> </td> <td class="xl67" style="border-top:none;border-left:none">3DWF</td> <td class="xl66" style="border-top:none;border-left:none"> </td> <td class="xl66" style="border-top:none;border-left:none"> </td> <td class="xl66" style="border-top:none;border-left:none"> </td> </tr> </tbody></table>
I want to have the status (contained in the data I receive) in the cell. the conditions are the blue cells:number 00041782 with R contains A and ID=OWF
I tried this formula bu I get a NA#:
{INDEX(Extract!G:G;(MATCH(1;(A2=Extract!A:A)*(B2=Extract!C:C)*(C2=Extract!D:D);0)))}
I have then to do the same for the start date, end date and change of conditions ID=3DWF but still with R=A and the ID=00041782.
If someone could help me it would be so great.
(Sorry for the visualization but the pictures I pasted first are not visible posts)
Thanks a lot in advance