I still don't have a clear picture of how you assign warranties, however, this is my latest take on it:
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O |
---|
Customer Name | Brand | Products Code | Serial Number | Date Sold | Warranty Term | Waranty Ended | Brand | Product | Wholesale Warranty Length | Retail Warranty Length | Wholesale customers | | | | |
Mary Smith | aaa | Valid | xyz | Joe's Plumbing | | | | | | | | | | | |
Mark Jones | xyz | Not valid | xyz | | | | | | | | | | | | |
Joe's Plumbing | xyz | Not valid | vwx | default | | | | | | | | | | | |
Amy Adams | ddd | Valid | uvw | default | | | | | | | | | | | |
Joe's Plumbing | xyz | Valid | xyz | default | | | | | | | | | | | |
Ed Smith | qqq | Not found | None | aaa | default | | | | | | | | | | |
ddd | default | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | |
<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]2[/TD]
[TD="align: right"]111[/TD]
[TD="align: right"]111[/TD]
[TD="align: right"]1/20/2019[/TD]
[TD="align: right"]45[/TD]
[TD="align: right"][/TD]
[TD="align: right"]123[/TD]
[TD="align: right"]90[/TD]
[TD="align: right"]60[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]3[/TD]
[TD="align: right"]222[/TD]
[TD="align: right"]222[/TD]
[TD="align: right"]7/1/2018[/TD]
[TD="align: right"]60[/TD]
[TD="align: right"][/TD]
[TD="align: right"]245[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]4[/TD]
[TD="align: right"]245[/TD]
[TD="align: right"]333[/TD]
[TD="align: right"]10/1/2018[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"][/TD]
[TD="align: right"]365[/TD]
[TD="align: right"]180[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]5[/TD]
[TD="align: right"]444[/TD]
[TD="align: right"]444[/TD]
[TD="align: right"]12/24/2018[/TD]
[TD="align: right"]90[/TD]
[TD="align: right"][/TD]
[TD="align: right"]180[/TD]
[TD="align: right"]90[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]6[/TD]
[TD="align: right"]555[/TD]
[TD="align: right"]555[/TD]
[TD="align: right"]1/1/2019[/TD]
[TD="align: right"]90[/TD]
[TD="align: right"][/TD]
[TD="align: right"]90[/TD]
[TD="align: right"]60[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]7[/TD]
[TD="align: right"]666[/TD]
[TD="align: right"]666[/TD]
[TD="align: right"]10/1/2018[/TD]
[TD="align: right"][/TD]
[TD="align: right"]90[/TD]
[TD="align: right"]45[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]8[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]90[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]9[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
</tbody>
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]G2[/TH]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]F2[/TH]
If entered correctly, Excel will surround with curly braces {}.
In this version, you still have 2 tables. The table in N is a list of your wholesale customers. The table in I:L has the warranties. Brand and product go in I:J, and the wholesale period for wholesale/retail goes in K:L. If the actual product number is found, it takes that (like xyz/245). If not found, it next looks for the brand and the word "default" and takes that.