I have this spreadsheet that contains order lines, some orders only have one line, easy enough to display to "net invoice" total. The orders with multiple lines is where I am stuck. If the order has multiple lines, the "additional charges/deductions" are always on the first line of the order. So if an order has multiple lines I need to add the (total of column L to column M+N)-O=P, and I only want to display P on the first line of the order. Column L is a detail field and M,N,O are all header fields in the DB I am pulling from.
INVOICE 03012024.xlsx | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | |||
1 | SalesOrderNo | InvoiceDate | UDF_EMPLOYEE_NAME | UDF_EXTCUSTPO | UDF_EXTRAORDERINFORMATION | ItemCode | ItemCodeDesc | ShipToCity | ShipToState | ShipToZipCode | ExtensionAmt | FreightAmt | SalesTaxAmt | DepositAmt | Net Invoice | ||
2 | 8432310 | 3/1/2024 0:00 | AGUSTIN RODRIGUEZ | IKIHWYN7J | GARYVILLE | 8051-33BK | High Sierra Elite Fly-By 17 in | Walker | LA | 70785 | 78 | 11.53 | 7.76 | 0 | 97.29 | ||
3 | 8424191 | 3/1/2024 0:00 | BOBBY RUMORE | WDHH8M0AH | SHELL NORCO | 10022597-NAVY-MEDR | MNS FR AIR HENLEY LS TOP NAVY | Raceland | LA | 70394 | 72 | 8.86 | 20.73 | 41.59 | 60 | ||
4 | 8424191 | 3/1/2024 0:00 | BOBBY RUMORE | WDHH8M0AH | SHELL NORCO | 10022599-GRAY-MEDR | MNS FR AIR HENLEY LS TOP SILVR | Raceland | LA | 70394 | 72 | 72 | |||||
5 | 8424191 | 3/1/2024 0:00 | BOBBY RUMORE | WDHH8M0AH | SHELL NORCO | 10022597-NAVY-MEDR | MNS FR AIR HENLEY LS TOP NAVY | Raceland | LA | 70394 | 72 | 72 | |||||
6 | 8425683 | 3/1/2024 0:00 | BRANDON GONZALEZ | 7Q6LCEJNB | GOLDEN PASS LNG | 10023466-BLUE-2932 | MNS FR M4 RLX STR DLT BSC BT C | Port Arthur | TX | 77642 | 206 | 9.13 | 17.75 | 11.37 | 221.51 | ||
7 | 8425305 | 3/1/2024 0:00 | GUILLERMO MENDOZA | 2B6MZVIMT | CARSON | P-INDM10 42X30 | 42x30 10OZ FR MODERN JEANS | LONG BEACH | CA | 90805 | 59 | 28.14 | 0 | 0 | 87.14 | ||
8 | 8425305 | 3/1/2024 0:00 | GUILLERMO MENDOZA | 2B6MZVIMT | CARSON | 888830073032 | Rambler 36oz Bottle Chug Navy | LONG BEACH | CA | 90805 | 59 | 0 | 0 | 59 | |||
9 | 8425305 | 3/1/2024 0:00 | GUILLERMO MENDOZA | 2B6MZVIMT | CARSON | 10023466-BLUE-4230 | MNS FR M4 Relaxed Stretch Dura | LONG BEACH | CA | 90805 | 103 | 0 | 0 | 103 | |||
10 | 8425305 | 3/1/2024 0:00 | GUILLERMO MENDOZA | 2B6MZVIMT | CARSON | 10012258-GRAY-3XLTR | MNS FR Work Crew T-Shirt | LONG BEACH | CA | 90805 | 83 | 0 | 0 | 83 | |||
11 | 8432443 | 3/1/2024 0:00 | ANDREW GARCIA | 5UASCACLJ | CITGO | 306-396-XL | Tahoe | MISSION | TX | 78574 | 40 | 11.6 | 4.26 | 0 | 55.86 | ||
12 | 8430820 | 3/1/2024 0:00 | SHALTON LOPEZ-GARCIA | BMFBSK7OR | GBR | 8051-33BK | High Sierra Elite Fly-By 17 in | NORTH BRUNSW | NJ | 08902 | 78 | 9.85 | 0 | 3.21 | 84.64 | ||
AR_Bartlett |
Cell Formulas | ||
---|---|---|
Range | Formula | |
P2:P12 | P2 | =SUM(AR_Bartlett[@[ExtensionAmt]:[SalesTaxAmt]])-[@DepositAmt] |