Hi all,
Since it is my first time using Excel in this manner, I am not sure if Excel is even able to do so, but I have to try because if it works, it will save me a lot of time.
I have got three columns (of which one in a different workbook, but I assume that will not be a problem)
Column A: a list of container numbers
Column B: the date that specific container is supposed to arrive in the harbour
Column C: A shipping notification which sometimes contains the container number
I want column D to show the arrival date of that container as shown in the data below.
[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD]Row
[/TD]
[TD]Container numbers
= Column A
[/TD]
[TD]Arrival date
= Column B
[/TD]
[TD]Shipping notification
=Column C
[/TD]
[TD]Desired outcome
= Column D
[/TD]
[TD]Explanation
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD][TABLE="width: 150"]
<colgroup><col width="150"></colgroup><tbody>[TR]
[TD="width: 150"]1SL046965
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]24-7-2014
[/TD]
[TD]CAN140171#33
[/TD]
[TD]21-7-2014
[/TD]
[TD]CAN140171 in row 4 is the container number
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD][TABLE="width: 150"]
<colgroup><col width="150"></colgroup><tbody>[TR]
[TD="width: 150"]1SL049225[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]22-7-2014
[/TD]
[TD][TABLE="width: 146"]
<colgroup><col width="146"></colgroup><tbody>[TR]
[TD="width: 146"]MSKU8021216-CAN020593
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]21-7-2014
[/TD]
[TD]CAN020593 in row 8 is the container number
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD][TABLE="width: 150"]
<colgroup><col width="150"></colgroup><tbody>[TR]
[TD="width: 150"]1TP175537[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]22-7-2014
[/TD]
[TD][TABLE="width: 146"]
<colgroup><col width="146"></colgroup><tbody>[TR]
[TD="width: 146"]1NG036027DHLETS04.07[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]21-7-2014
[/TD]
[TD]1NG036027 in row 11 is the container number
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD][TABLE="width: 150"]
<colgroup><col width="150"></colgroup><tbody>[TR]
[TD="width: 150"]CAN140171
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]21-7-2014
[/TD]
[TD]1HK863558
[/TD]
[TD]22-7-2014
[/TD]
[TD]Equal to the container number in row 7
[/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD][TABLE="width: 150"]
<colgroup><col width="150"></colgroup><tbody>[TR]
[TD="width: 150"]XMN182515
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]21-7-2014
[/TD]
[TD]00XMN182515
[/TD]
[TD]21-7-2014
[/TD]
[TD]Ends with the container number in row 5
[/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD][TABLE="width: 150"]
<colgroup><col width="150"></colgroup><tbody>[TR]
[TD="class: xl65, width: 150"]PKG040244
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]24-7-2014
[/TD]
[TD]PKG040244#21
[/TD]
[TD]24-7-2014
[/TD]
[TD]Begins with the container number in row 6
[/TD]
[/TR]
[TR]
[TD]7
[/TD]
[TD][TABLE="width: 150"]
<colgroup><col width="150"></colgroup><tbody>[TR]
[TD="width: 150"]1HK863558
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]22-7-2014
[/TD]
[TD]1SL046965
[/TD]
[TD]24-7-2014
[/TD]
[TD]Equal to the container number in row 9
[/TD]
[/TR]
[TR]
[TD]8
[/TD]
[TD][TABLE="width: 150"]
<colgroup><col width="150"></colgroup><tbody>[TR]
[TD="width: 150"]CAN020593
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]21-7-2014
[/TD]
[TD]15514XMN182515
[/TD]
[TD]21-7-2014
[/TD]
[TD]Ends with the container number in row 5
[/TD]
[/TR]
[TR]
[TD]9
[/TD]
[TD][TABLE="width: 150"]
<colgroup><col width="150"></colgroup><tbody>[TR]
[TD="width: 150"]1SL046965
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]24-7-2014
[/TD]
[TD]1GQ486279
[/TD]
[TD][/TD]
[TD]Does not contain a container number
[/TD]
[/TR]
[TR]
[TD]10
[/TD]
[TD][TABLE="width: 150"]
<colgroup><col width="150"></colgroup><tbody>[TR]
[TD="class: xl65, width: 150"]1NG032517
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]24-7-2014
[/TD]
[TD]XMN182515
[/TD]
[TD]21-7-2014
[/TD]
[TD]Equal to the container number in row 5
[/TD]
[/TR]
[TR]
[TD]11
[/TD]
[TD][TABLE="width: 150"]
<colgroup><col width="150"></colgroup><tbody>[TR]
[TD="class: xl65, width: 150"]1NG036027
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]21-7-2014
[/TD]
[TD]1SL046965
[/TD]
[TD]24-7-2014
[/TD]
[TD]Equal to the container number in row 9
[/TD]
[/TR]
</tbody>[/TABLE]
The issue I am dealing with is the following:
* The Container number in the shipping notification can have extra numbers/letters behind and in front of the container number
I have come up with the following formula: =INDEX(B2:B130;MATCH(C2:C1729;A2:A130;0)) Which works....but only when the exact container number is placed as shipping notification. I was thinking of putting asterixes around the A column in the function, but either I am not doing it right (wrong place?) or it doesn't work that way.
While I am at it I want to ask another thing (of which I suspect it is not possible). Is it possible for the formula to not change column D if there is no match? So lets say for row 9 D was already entered as 9-8-2014, the desired outcome in the example would be 9-8-2014. If this is not possible I will create another column compare the two (the existing D and the new D).
Thanks for the effort!!
Tamara
ps: I'm Dutch, so it is correct that I use semicolumns instead of comma's, else it wont work.
Since it is my first time using Excel in this manner, I am not sure if Excel is even able to do so, but I have to try because if it works, it will save me a lot of time.
I have got three columns (of which one in a different workbook, but I assume that will not be a problem)
Column A: a list of container numbers
Column B: the date that specific container is supposed to arrive in the harbour
Column C: A shipping notification which sometimes contains the container number
I want column D to show the arrival date of that container as shown in the data below.
[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD]Row
[/TD]
[TD]Container numbers
= Column A
[/TD]
[TD]Arrival date
= Column B
[/TD]
[TD]Shipping notification
=Column C
[/TD]
[TD]Desired outcome
= Column D
[/TD]
[TD]Explanation
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD][TABLE="width: 150"]
<colgroup><col width="150"></colgroup><tbody>[TR]
[TD="width: 150"]1SL046965
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]24-7-2014
[/TD]
[TD]CAN140171#33
[/TD]
[TD]21-7-2014
[/TD]
[TD]CAN140171 in row 4 is the container number
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD][TABLE="width: 150"]
<colgroup><col width="150"></colgroup><tbody>[TR]
[TD="width: 150"]1SL049225[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]22-7-2014
[/TD]
[TD][TABLE="width: 146"]
<colgroup><col width="146"></colgroup><tbody>[TR]
[TD="width: 146"]MSKU8021216-CAN020593
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]21-7-2014
[/TD]
[TD]CAN020593 in row 8 is the container number
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD][TABLE="width: 150"]
<colgroup><col width="150"></colgroup><tbody>[TR]
[TD="width: 150"]1TP175537[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]22-7-2014
[/TD]
[TD][TABLE="width: 146"]
<colgroup><col width="146"></colgroup><tbody>[TR]
[TD="width: 146"]1NG036027DHLETS04.07[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]21-7-2014
[/TD]
[TD]1NG036027 in row 11 is the container number
[/TD]
[/TR]
[TR]
[TD]4
[/TD]
[TD][TABLE="width: 150"]
<colgroup><col width="150"></colgroup><tbody>[TR]
[TD="width: 150"]CAN140171
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]21-7-2014
[/TD]
[TD]1HK863558
[/TD]
[TD]22-7-2014
[/TD]
[TD]Equal to the container number in row 7
[/TD]
[/TR]
[TR]
[TD]5
[/TD]
[TD][TABLE="width: 150"]
<colgroup><col width="150"></colgroup><tbody>[TR]
[TD="width: 150"]XMN182515
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]21-7-2014
[/TD]
[TD]00XMN182515
[/TD]
[TD]21-7-2014
[/TD]
[TD]Ends with the container number in row 5
[/TD]
[/TR]
[TR]
[TD]6
[/TD]
[TD][TABLE="width: 150"]
<colgroup><col width="150"></colgroup><tbody>[TR]
[TD="class: xl65, width: 150"]PKG040244
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]24-7-2014
[/TD]
[TD]PKG040244#21
[/TD]
[TD]24-7-2014
[/TD]
[TD]Begins with the container number in row 6
[/TD]
[/TR]
[TR]
[TD]7
[/TD]
[TD][TABLE="width: 150"]
<colgroup><col width="150"></colgroup><tbody>[TR]
[TD="width: 150"]1HK863558
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]22-7-2014
[/TD]
[TD]1SL046965
[/TD]
[TD]24-7-2014
[/TD]
[TD]Equal to the container number in row 9
[/TD]
[/TR]
[TR]
[TD]8
[/TD]
[TD][TABLE="width: 150"]
<colgroup><col width="150"></colgroup><tbody>[TR]
[TD="width: 150"]CAN020593
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]21-7-2014
[/TD]
[TD]15514XMN182515
[/TD]
[TD]21-7-2014
[/TD]
[TD]Ends with the container number in row 5
[/TD]
[/TR]
[TR]
[TD]9
[/TD]
[TD][TABLE="width: 150"]
<colgroup><col width="150"></colgroup><tbody>[TR]
[TD="width: 150"]1SL046965
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]24-7-2014
[/TD]
[TD]1GQ486279
[/TD]
[TD][/TD]
[TD]Does not contain a container number
[/TD]
[/TR]
[TR]
[TD]10
[/TD]
[TD][TABLE="width: 150"]
<colgroup><col width="150"></colgroup><tbody>[TR]
[TD="class: xl65, width: 150"]1NG032517
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]24-7-2014
[/TD]
[TD]XMN182515
[/TD]
[TD]21-7-2014
[/TD]
[TD]Equal to the container number in row 5
[/TD]
[/TR]
[TR]
[TD]11
[/TD]
[TD][TABLE="width: 150"]
<colgroup><col width="150"></colgroup><tbody>[TR]
[TD="class: xl65, width: 150"]1NG036027
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]21-7-2014
[/TD]
[TD]1SL046965
[/TD]
[TD]24-7-2014
[/TD]
[TD]Equal to the container number in row 9
[/TD]
[/TR]
</tbody>[/TABLE]
The issue I am dealing with is the following:
* The Container number in the shipping notification can have extra numbers/letters behind and in front of the container number
I have come up with the following formula: =INDEX(B2:B130;MATCH(C2:C1729;A2:A130;0)) Which works....but only when the exact container number is placed as shipping notification. I was thinking of putting asterixes around the A column in the function, but either I am not doing it right (wrong place?) or it doesn't work that way.
While I am at it I want to ask another thing (of which I suspect it is not possible). Is it possible for the formula to not change column D if there is no match? So lets say for row 9 D was already entered as 9-8-2014, the desired outcome in the example would be 9-8-2014. If this is not possible I will create another column compare the two (the existing D and the new D).
Thanks for the effort!!
Tamara
ps: I'm Dutch, so it is correct that I use semicolumns instead of comma's, else it wont work.