Wishmaster89
Board Regular
- Joined
- Jan 10, 2022
- Messages
- 77
- Office Version
- 2021
- 2019
- 2016
- Platform
- Windows
- MacOS
Hi Everyone
I've written a formula in column AC that looks up the id number in column D on the "operations team orders" sheet and then checks to see if the shipment dates month ( column I) matches the order date month on the "operations team orders" sheet. In most cases orders are shipped within 5 days of ordering so that's why in the formula it is "ordDate+5".
What i am wondering is have i over complicated this formula and secondly i was worried that the sumif was going to ignore the if statements i have applied even though the sum if only happens if those conditions are met.
Is there a better way to do this formula?
Note: ignore column H on the first sheet, despite being named 'order date' its irrelavent.
I've written a formula in column AC that looks up the id number in column D on the "operations team orders" sheet and then checks to see if the shipment dates month ( column I) matches the order date month on the "operations team orders" sheet. In most cases orders are shipped within 5 days of ordering so that's why in the formula it is "ordDate+5".
What i am wondering is have i over complicated this formula and secondly i was worried that the sumif was going to ignore the if statements i have applied even though the sum if only happens if those conditions are met.
Is there a better way to do this formula?
Note: ignore column H on the first sheet, despite being named 'order date' its irrelavent.
CI invoices stuff.xlsx | |||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | AC | ||||||||
1 | Posting Date | Document No. | Line No. | Sell-to Customer No. | No. | Order No. | Customer Reference No | Order Date | Shipment Date | Description | Quantity | Unit Price | VAT % | Amount | VAT | Amount Including VAT | Bill-to Customer No. | Sell-to Customer Name | Forename | Surname | Order total | Orders sheet total | Difference | Amount from orders sheet | |||||||
2 | 30/06/2023 | test | 1880000 | 001770110H | LM3_QUESTION_PACK | 30/06/2023 | 06/06/2023 | test | 1 | 29.17 | 20 | £21.60 | £4.32 | £25.92 | COLQQL | test | test name | test name | 222.3 | 231.8 | 9.5 | £231.80 | |||||||||
3 | 30/06/2023 | test | 1930000 | 001775028D | M80_EKEY_FACTS | 30/06/2023 | 06/06/2023 | test | 1 | 30 | 0 | £27.00 | £0.00 | £27.00 | COLQQL | test | test name | test name | 438.3 | 411.3 | -27 | £411.30 | |||||||||
4 | 30/06/2023 | test | 2060000 | 001819431L | M85_EKEY_FACTS | 30/06/2023 | 06/06/2023 | test | 1 | 30 | 0 | £27.00 | £0.00 | £27.00 | COLQQL | test | test name | test name | 438.3 | 411.3 | -27 | £411.30 | |||||||||
5 | 30/06/2023 | test | 2150000 | 001835987F | 13420 | 30/06/2023 | 16/06/2023 | test | 1 | 8 | 0 | £8.00 | £0.00 | £8.00 | COLQQL | test | test name | test name | 250.1 | 251.7 | 1.6 | £259.70 | |||||||||
CI export |
Cell Formulas | ||
---|---|---|
Range | Formula | |
V2:V5 | V2 | =SUMIF('[Copy of COLQQL 06072023 JULY.xlsx]Orders'!$D$5:$D$2211,D2,'[Copy of COLQQL 06072023 JULY.xlsx]Orders'!$K$5:$K$2211) |
W2:W5 | W2 | =V2-U2 |
AC2:AC5 | AC2 | =LET(ordDate,XLOOKUP(D2&MONTH(I2),'Operations team orders'!$D$2:$D$5&MONTH('Operations team orders'!$A$2:$A$5),'Operations team orders'!$A$2:$A$5),IF(OR(ordDate=I2,I2<=ordDate+5),SUMIF('Operations team orders'!$D$1:$D$5,'CI export'!D2,'Operations team orders'!$I$1:$I$5),"not in range")) |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
W2:W5 | Cell Value | <>0 | text | NO |
W2:W5 | Cell Value | =0 | text | NO |
CI invoices stuff.xlsx | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | |||
1 | Date of order | Learner first name | Learner surname | CII PIN | CII member/Non-member | price | postage | price with vat | |||
2 | 01/06/2023 | test | test | 001770110H | test | member | 231.8 | 0 | 231.8 | ||
3 | 01/06/2023 | test | test | 001775028D | test | member | 411.3 | 0 | 411.3 | ||
4 | 01/06/2023 | test | test | 001819431L | test | member | 411.3 | 0 | 411.3 | ||
5 | 12/06/2023 | test | test | 001835987F | test | member | 251.7 | 8 | 259.7 | ||
Operations team orders |