Hello,
I've spent 2 days trying to figure out a solution to this but my brain is in knots
The attached spreadsheet is Bill of Lading data from 2 different sources that has been combined into one file. I need to find the BOL's that match between Sources depending on the total Billed Units (column E) for the BOL number (column F), and Product Code (column I) . The problem is that it's not always a 1-row for 1-row comparison between the 2 sources. In the example below, you can see where the 2 rows in dark green are actually a 1-row for 1-row match: BOL 248247, same product code, same billed units, each from a different source. But the next 3 rows (in blue) are different--it's still a match between the BOL number, total billed units and product code--but ABC Source is only on one row with 12,001 billed units and Libra Source is broken up into 2 rows with 1,100 units on one row and 10,901 units on the other row.
I'm trying to find a way to label these rows as a match even though the units are sometimes broken up into multiple rows. The number of rows is not consistent so I need a solution that will sum and total by BOL number and Product Code and Source, then see if there's a match between Source Libra and Source ABC.
I can use helper rows or other sheets.
As a side note, I already have some formulas in the sheet to pull out BOL's where the billed units net to zero, and other classifications that were easier to make with if statements.
The attached spreadsheet is a sample, my real data has about 16,000 rows. I color coded the rows that match by BOL number. My hope was that I could do this match calculation in a helper row, then add the result of that row to my IF statement in the Classification column (column B).
Any help would be greatly appreciated!!
I've spent 2 days trying to figure out a solution to this but my brain is in knots
The attached spreadsheet is Bill of Lading data from 2 different sources that has been combined into one file. I need to find the BOL's that match between Sources depending on the total Billed Units (column E) for the BOL number (column F), and Product Code (column I) . The problem is that it's not always a 1-row for 1-row comparison between the 2 sources. In the example below, you can see where the 2 rows in dark green are actually a 1-row for 1-row match: BOL 248247, same product code, same billed units, each from a different source. But the next 3 rows (in blue) are different--it's still a match between the BOL number, total billed units and product code--but ABC Source is only on one row with 12,001 billed units and Libra Source is broken up into 2 rows with 1,100 units on one row and 10,901 units on the other row.
I'm trying to find a way to label these rows as a match even though the units are sometimes broken up into multiple rows. The number of rows is not consistent so I need a solution that will sum and total by BOL number and Product Code and Source, then see if there's a match between Source Libra and Source ABC.
I can use helper rows or other sheets.
As a side note, I already have some formulas in the sheet to pull out BOL's where the billed units net to zero, and other classifications that were easier to make with if statements.
The attached spreadsheet is a sample, my real data has about 16,000 rows. I color coded the rows that match by BOL number. My hope was that I could do this match calculation in a helper row, then add the result of that row to my IF statement in the Classification column (column B).
Any help would be greatly appreciated!!
BOL Matching Sample.xlsx | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | |||
1 | Period: | 11/1/2021 | 1 - Match - Report from Libra | 5 - Diversion - Report from Libra | ||||||||||||||
2 | Sort by BOL, BOL Date, Prod Code, Billed Units | 2 - Product Mismatch - Report from Libra | 6 - Report Libra - 3rd party | |||||||||||||||
3 | 3 - In RA but not Libra - Report from RA | 7 - Nets to zero | ||||||||||||||||
4 | 4 - In Libra but not RA - Report Libra | 8 - Prior period | ||||||||||||||||
5 | ||||||||||||||||||
6 | False = Nets to Zero - Same Source | Classification | NA-Source | FileName | BilledUnits | BillOfLadingNumber | InvoiceDate | InvoiceNumber | ProductCode | BuyerLegalName | SellerLegalName | Custom_String_04 | BillofLadingDate | Period | filing_entity | DiversionNumber | ||
7 | FALSE | 8 - Prior period | LIBRA | NY-Superway-Recp-202111 | -2498 | 164740 | 2021-11-16 | 2103871640 | 555 | SUPERWAY LLC | Mart Goods Company LP | SUWY | 10/4/2021 | 2021-10 | SUWY | |||
8 | FALSE | 8 - Prior period | LIBRA | NY-Superway-Recp-202111 | 2498 | 164740 | 2021-11-02 | 2103714655 | 555 | SUPERWAY LLC | Mart Goods Company LP | SUWY | 10/4/2021 | 2021-10 | SUWY | |||
9 | TRUE | 8 - Prior period | LIBRA | NY-Superway-Recp-202111 | 2498 | 164740 | 2021-11-16 | 2103871639 | 555 | SUPERWAY LLC | Mart Goods Company LP | SUWY | 10/4/2021 | 2021-10 | SUWY | |||
10 | FALSE | 8 - Prior period | LIBRA | NY-Superway-Recp-202111 | -1998 | 164741 | 2021-11-16 | 2103871660 | 555 | SUPERWAY LLC | Mart Goods Company LP | SUWY | 10/4/2021 | 2021-10 | SUWY | |||
11 | FALSE | 8 - Prior period | LIBRA | NY-Superway-Recp-202111 | 1998 | 164741 | 2021-11-02 | 2103714654 | 555 | SUPERWAY LLC | Mart Goods Company LP | SUWY | 10/4/2021 | 2021-10 | SUWY | |||
12 | TRUE | 8 - Prior period | LIBRA | NY-Superway-Recp-202111 | 1998 | 164741 | 2021-11-16 | 2103871642 | 555 | SUPERWAY LLC | Mart Goods Company LP | SUWY | 10/4/2021 | 2021-10 | SUWY | |||
13 | FALSE | 8 - Prior period | LIBRA | NY-Superway-Recp-202111 | -5497 | 164875 | 2021-11-16 | 2103871658 | 555 | SUPERWAY LLC | Mart Goods Company LP | SUWY | 10/6/2021 | 2021-10 | SUWY | |||
14 | FALSE | 8 - Prior period | LIBRA | NY-Superway-Recp-202111 | 5497 | 164875 | 2021-11-16 | 2103871637 | 555 | SUPERWAY LLC | Mart Goods Company LP | SUWY | 10/6/2021 | 2021-10 | SUWY | |||
15 | TRUE | 8 - Prior period | LIBRA | NY-Superway-Recp-202111 | 5497 | 164875 | 2021-11-02 | 2103714656 | 555 | SUPERWAY LLC | Mart Goods Company LP | SUWY | 10/6/2021 | 2021-10 | SUWY | |||
16 | TRUE | 6 - Report Libra - 3rd party | LIBRA | NY-Superway-Recp-202111 | 4034 | 234290 | 2021-11-03 | 10938505 | 555 | SUPERWAY LLC | SMITH | SUWY | 11/3/2021 | 2021-11 | SUWY | |||
17 | TRUE | 6 - Report Libra - 3rd party | LIBRA | NY-Superway-Recp-202111 | 3033 | 234720 | 2021-11-06 | 10972619 | 555 | SUPERWAY LLC | SMITH | SUWY | 11/6/2021 | 2021-11 | SUWY | |||
18 | TRUE | 6 - Report Libra - 3rd party | LIBRA | NY-Superway-Recp-202111 | 5037 | 234721 | 2021-11-06 | 10972618 | 555 | SUPERWAY LLC | SMITH | SUWY | 11/6/2021 | 2021-11 | SUWY | |||
19 | TRUE | 6 - Report Libra - 3rd party | LIBRA | NY-Superway-Recp-202111 | 4031 | 236889 | 2021-11-26 | 11005228 | 555 | SUPERWAY LLC | SMITH | SUWY | 11/26/2021 | 2021-11 | SUWY | |||
20 | TRUE | 6 - Report Libra - 3rd party | LIBRA | NY-Superway-Recp-202111 | 4031 | 236893 | 2021-11-26 | 11005172 | 555 | SUPERWAY LLC | SMITH | SUWY | 11/26/2021 | 2021-11 | SUWY | |||
21 | TRUE | #N/A | LIBRA | NY-Superway-Recp-202111 | 4850 | 248247 | 2021-11-02 | 2103710980 | E88 | SUPERWAY LLC | Mart Goods Company LP | SUWY | 11/1/2021 | 2021-11 | SUWY | |||
22 | TRUE | #N/A | ABC | NY-ABC to SUWY-Sale-202111 | 4850 | 248247 | 11/2/2021 0:00 | 2103710980 | E88 | Superway LLC - LOI-WH | Mart Goods Company LP | SUWY | 11/1/2021 | 2021-11 | SUWY | |||
23 | TRUE | #N/A | LIBRA | NY-Superway-Recp-202111 | 1100 | 248249 | 2021-11-02 | 2103711466 | E88 | SUPERWAY LLC | Mart Goods Company LP | SUWY | 11/1/2021 | 2021-11 | SUWY | |||
24 | TRUE | #N/A | LIBRA | NY-Superway-Recp-202111 | 10901 | 248249 | 2021-11-02 | 2103711466 | E88 | SUPERWAY LLC | Mart Goods Company LP | SUWY | 11/1/2021 | 2021-11 | SUWY | |||
25 | TRUE | #N/A | ABC | NY-ABC to SUWY-Sale-202111 | 12001 | 248249 | 11/2/2021 0:00 | 2103711466 | E88 | Superway LLC - LOI-WH | Mart Goods Company LP | SUWY | 11/1/2021 | 2021-11 | SUWY | |||
26 | TRUE | #N/A | LIBRA | NY-Superway-Recp-202111 | 3350 | 248266 | 2021-11-02 | 2103711765 | E88 | SUPERWAY LLC | Mart Goods Company LP | SUWY | 11/1/2021 | 2021-11 | SUWY | |||
27 | TRUE | #N/A | ABC | NY-ABC to SUWY-Sale-202111 | 4850 | 248266 | 11/2/2021 0:00 | 2103711765 | E88 | Superway LLC - LOI-WH | Mart Goods Company LP | SUWY | 11/1/2021 | 2021-11 | SUWY | |||
28 | TRUE | #N/A | LIBRA | NY-Superway-Recp-202111 | 1500 | 248267 | 2021-11-04 | 2103739196 | 967 | SUPERWAY LLC | Mart Goods Company LP | SUWY | 11/1/2021 | 2021-11 | SUWY | |||
29 | TRUE | #N/A | ABC | NY-ABC to SUWY-Sale-202111 | 1500 | 248267 | 11/4/2021 0:00 | 2103739196 | 967 | Superway LLC - LOI-WH | Mart Goods Company LP | SUWY | 11/1/2021 | 2021-11 | SUWY | |||
30 | TRUE | #N/A | LIBRA | NY-Superway-Recp-202111 | 10400 | 248267 | 2021-11-04 | 2103739196 | E88 | SUPERWAY LLC | Mart Goods Company LP | SUWY | 11/1/2021 | 2021-11 | SUWY | |||
31 | TRUE | #N/A | ABC | NY-ABC to SUWY-Sale-202111 | 10400 | 248267 | 11/4/2021 0:00 | 2103739196 | E88 | Superway LLC - LOI-WH | Mart Goods Company LP | SUWY | 11/1/2021 | 2021-11 | SUWY | |||
32 | TRUE | #N/A | LIBRA | NY-Superway-Recp-202111 | 2500 | 248330 | 2021-11-03 | 2103724398 | 967 | SUPERWAY LLC | Mart Goods Company LP | SUWY | 11/2/2021 | 2021-11 | SUWY | |||
33 | TRUE | #N/A | ABC | NY-ABC to SUWY-Sale-202111 | 2500 | 248330 | 11/3/2021 0:00 | 2103724398 | 967 | Superway LLC - LOI-WH | Mart Goods Company LP | SUWY | 11/2/2021 | 2021-11 | SUWY | |||
34 | TRUE | #N/A | LIBRA | NY-Superway-Recp-202111 | 1100 | 248330 | 2021-11-03 | 2103724398 | E88 | SUPERWAY LLC | Mart Goods Company LP | SUWY | 11/2/2021 | 2021-11 | SUWY | |||
35 | TRUE | #N/A | LIBRA | NY-Superway-Recp-202111 | 7900 | 248330 | 2021-11-03 | 2103724398 | E88 | SUPERWAY LLC | Mart Goods Company LP | SUWY | 11/2/2021 | 2021-11 | SUWY | |||
36 | TRUE | #N/A | ABC | NY-ABC to SUWY-Sale-202111 | 9000 | 248330 | 11/3/2021 0:00 | 2103724398 | E88 | Superway LLC - LOI-WH | Mart Goods Company LP | SUWY | 11/2/2021 | 2021-11 | SUWY | |||
37 | TRUE | #N/A | LIBRA | NY-Superway-Recp-202111 | 1486 | 249233 | 2021-11-16 | 2103866830 | E88 | SPEEDWAY LLC | Mart Goods Company LP | 11/15/2021 | 2021-11 | SUWY | ||||
38 | TRUE | #N/A | LIBRA | NY-Superway-Recp-202111 | 1486 | 249233 | 2021-11-16 | 2103866830 | E88 | SPEEDWAY LLC | Mart Goods Company LP | 11/15/2021 | 2021-11 | SUWY | ||||
39 | TRUE | #N/A | LIBRA | NY-Superway-Recp-202111 | 5850 | 249233 | 2021-11-16 | 2103866830 | E88 | SPEEDWAY LLC | Mart Goods Company LP | 11/15/2021 | 2021-11 | SUWY | ||||
40 | TRUE | #N/A | ABC - Rightangle | NY-ABC to SUWY-Sale-202111 | 8822 | 249233 | 11/16/2021 0:00 | 2103866830 | E88 | Superway LLC - LOI-WH | Mart Goods Company LP | 11/15/2021 | 2021-11 | SUWY | ||||
41 | TRUE | #N/A | LIBRA | NY-Superway-Recp-202111 | 12000 | 249251 | 2021-11-17 | 2103880251 | E88 | SPEEDWAY LLC | Mart Goods Company LP | 11/16/2021 | 2021-11 | SUWY | ||||
42 | TRUE | #N/A | ABC - Rightangle | NY-ABC to SUWY-Sale-202111 | 12000 | 249251 | 11/17/2021 0:00 | 2103880251 | E88 | Superway LLC - LOI-WH | Mart Goods Company LP | 11/16/2021 | 2021-11 | SUWY | ||||
43 | FALSE | 7 - Nets to zero | LIBRA | NY-Superway-Recp-202111 | -12000 | 580572 | 2021-11-23 | 2103939784 | E88 | SUPERWAY LLC | Mart Goods Company LP | SUWY | 11/19/2021 | 2021-11 | SUWY | |||
44 | TRUE | #N/A | LIBRA | NY-Superway-Recp-202111 | 2500 | 580572 | 2021-11-23 | 2103939811 | E88 | SUPERWAY LLC | Mart Goods Company LP | SUWY | 11/19/2021 | 2021-11 | SUWY | |||
45 | TRUE | #N/A | ABC | NY-ABC to SUWY-Sale-202111 | 2500 | 580572 | 11/23/2021 0:00 | 2103939811 | E88 | Superway LLC - LOI-WH | Mart Goods Company LP | SUWY | 11/19/2021 | 2021-11 | SUWY | |||
46 | TRUE | #N/A | LIBRA | NY-Superway-Recp-202111 | 9500 | 580572 | 2021-11-23 | 2103939789 | E88 | SUPERWAY LLC | Mart Goods Company LP | SUWY | 11/19/2021 | 2021-11 | SUWY | |||
47 | TRUE | #N/A | ABC | NY-ABC to SUWY-Sale-202111 | 9500 | 580572 | 11/20/2021 0:00 | 2103917872 | E88 | Superway LLC - LOI-WH | Mart Goods Company LP | SUWY | 11/19/2021 | 2021-11 | SUWY | |||
48 | FALSE | 7 - Nets to zero | LIBRA | NY-Superway-Recp-202111 | 12000 | 580572 | 2021-11-20 | 2103917872 | E88 | SUPERWAY LLC | Mart Goods Company LP | SUWY | 11/19/2021 | 2021-11 | SUWY | |||
49 | TRUE | #N/A | ABC | NY-ABC to SUWY-Sale-202111 | 4200 | 1113304 | 11/30/2021 0:00 | 2104011954 | E88 | Superway LLC - LOI-WH | Mart Goods Company LP | SUWY | 11/29/2021 | 2021-11 | SUWY | |||
50 | TRUE | #N/A | LIBRA | NY-Superway-Recp-202111 | 1000 | 383026670 | 2021-11-30 | 2104013005 | E88 | SUPERWAY LLC | Mart Goods Company LP | SUWY | 11/29/2021 | 2021-11 | SUWY | |||
51 | TRUE | #N/A | LIBRA | NY-Superway-Recp-202111 | 5000 | 383026670 | 2021-11-30 | 2104013005 | E88 | SUPERWAY LLC | Mart Goods Company LP | SUWY | 11/29/2021 | 2021-11 | SUWY | |||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
A7:A51 | A7 | =(COUNTIFS($E$7:E7,E7,$F$7:F7,F7,$I$7:I7,I7,$C$7:C7,C7)>(COUNTIFS($E$7:$E$15315,-E7,$F$7:$F$15315,F7,$I$7:$I$15315,I7,$C$7:$C$15315,C7))) |
B7:B51 | B7 | =IFS(M7<$B$1,$M$4,K7<>"Mart Goods Company LP",$M$2,A7=FALSE,$M$3) |