Hello everyone...
It seems very simple, but I can't seem to get any solution for it.
As you can see from the table below, I have order no. on one column and another warehouse code on another.
I need to put a mark (asterisk or anything) on all rows that have the same order no. but different warehouse code.
So far I can only get to put asterisk mark on the row that has different warehouse code.
The result that I want to achieve is:
It seems very simple, but I can't seem to get any solution for it.
As you can see from the table below, I have order no. on one column and another warehouse code on another.
I need to put a mark (asterisk or anything) on all rows that have the same order no. but different warehouse code.
So far I can only get to put asterisk mark on the row that has different warehouse code.
Cell Formulas | ||
---|---|---|
Range | Formula | |
A2:A20 | A2 | =IF(AND(J1<>J2,G1=G2),"*","") |
B2:B3 | B2 | =IF(元データ!A12="","",0) |
C2:C20 | C2 | =IF(B2="","",0) |
D2:D20 | D2 | =IF(B2="","",TODAY()) |
E2:E20 | E2 | =D2 |
F2:F20 | F2 | =IF(B2="","","SMJ01000") |
G2:G3 | G2 | =IF(B2="","",IF(LEN(元データ!B12)<11,CONCATENATE(TEXT(元データ!B12,"0000000000")),元データ!B12)) |
H2:H3 | H2 | =IF(B2="","",IF(元データ!U12="","",DATE(LEFT(元データ!U12,4),MID(元データ!U12,5,2),RIGHT(元データ!U12,2)))) |
I2:I3 | I2 | =IF(B2="","",IF(元データ!U12="",WORKDAY(D2,1,$X$8:$X$28),H2)) |
J2:J20 | J2 | =CONCATENATE(G2,K2) |
B4 | B4 | =IF(元データ!A9="","",0) |
G4 | G4 | =IF(B4="","",IF(LEN(元データ!B9)<11,CONCATENATE(TEXT(元データ!B9,"0000000000")),元データ!B9)) |
H4 | H4 | =IF(B4="","",IF(元データ!U9="","",DATE(LEFT(元データ!U9,4),MID(元データ!U9,5,2),RIGHT(元データ!U9,2)))) |
I4 | I4 | =IF(B4="","",IF(元データ!U9="",WORKDAY(D4,1,$X$8:$X$28),H4)) |
B5:B7,B10:B11 | B5 | =IF(元データ!A2="","",0) |
G5:G7,G10:G11 | G5 | =IF(B5="","",IF(LEN(元データ!B2)<11,CONCATENATE(TEXT(元データ!B2,"0000000000")),元データ!B2)) |
H5:H7,H10:H11 | H5 | =IF(B5="","",IF(元データ!U2="","",DATE(LEFT(元データ!U2,4),MID(元データ!U2,5,2),RIGHT(元データ!U2,2)))) |
I5:I7,I10:I11 | I5 | =IF(B5="","",IF(元データ!U2="",WORKDAY(D5,1,$X$8:$X$28),H5)) |
B8,B12:B13 | B8 | =IF(元データ!A6="","",0) |
G8,G12:G13 | G8 | =IF(B8="","",IF(LEN(元データ!B6)<11,CONCATENATE(TEXT(元データ!B6,"0000000000")),元データ!B6)) |
H8,H12:H13 | H8 | =IF(B8="","",IF(元データ!U6="","",DATE(LEFT(元データ!U6,4),MID(元データ!U6,5,2),RIGHT(元データ!U6,2)))) |
I8,I12:I13 | I8 | =IF(B8="","",IF(元データ!U6="",WORKDAY(D8,1,$X$8:$X$28),H8)) |
B9 | B9 | =IF(元データ!A5="","",0) |
G9 | G9 | =IF(B9="","",IF(LEN(元データ!B5)<11,CONCATENATE(TEXT(元データ!B5,"0000000000")),元データ!B5)) |
H9 | H9 | =IF(B9="","",IF(元データ!U5="","",DATE(LEFT(元データ!U5,4),MID(元データ!U5,5,2),RIGHT(元データ!U5,2)))) |
I9 | I9 | =IF(B9="","",IF(元データ!U5="",WORKDAY(D9,1,$X$8:$X$28),H9)) |
B14:B20 | B14 | =IF(元データ!A14="","",0) |
G14:G20 | G14 | =IF(B14="","",IF(LEN(元データ!B14)<11,CONCATENATE(TEXT(元データ!B14,"0000000000")),元データ!B14)) |
H14:H20 | H14 | =IF(B14="","",IF(元データ!U14="","",DATE(LEFT(元データ!U14,4),MID(元データ!U14,5,2),RIGHT(元データ!U14,2)))) |
I14:I20 | I14 | =IF(B14="","",IF(元データ!U14="",WORKDAY(D14,1,$X$8:$X$28),H14)) |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
F:F | Cell Value | contains "登録" | text | NO |
K:K | Cell Value | contains "" | text | NO |
Cells with Data Validation | ||
---|---|---|
Cell | Allow | Criteria |
J1 | Text length | <=32 |
J2:J1048576 | Text length | <=40 |
The result that I want to achieve is:
test.xlsx | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | |||
1 | Inv Header | Inv | Sales | Date | Inv. Date | Customer code | Order No. | Delivery date | Actual setting | Delivery Inv | Warehouse code | ||
2 | 0 | 0 | 2024/7/4 | 2024/7/4 | SMJ01000 | 0110221623 | 2024/7/4 | 2024/7/4 | 01102216239 | 9 | |||
3 | 0 | 0 | 2024/7/4 | 2024/7/4 | SMJ01000 | 0110221623 | 2024/7/4 | 2024/7/4 | 01102216239 | 9 | |||
4 | 0 | 0 | 2024/7/4 | 2024/7/4 | SMJ01000 | 0110221621 | 2024/7/4 | 2024/7/4 | 01102216214 | 4 | |||
5 | 0 | 0 | 2024/7/4 | 2024/7/4 | SMJ01000 | 5230002341 | 2024/7/5 | 52300023414 | 4 | ||||
6 | 0 | 0 | 2024/7/4 | 2024/7/4 | SMJ01000 | 5230002341 | 2024/7/5 | 52300023414 | 4 | ||||
7 | 0 | 0 | 2024/7/4 | 2024/7/4 | SMJ01000 | 5600000754 | 2024/7/5 | 56000007544 | 4 | ||||
8 | 0 | 0 | 2024/7/4 | 2024/7/4 | SMJ01000 | 6530000240 | 2024/7/5 | 65300002404 | 4 | ||||
9 | 0 | 0 | 2024/7/4 | 2024/7/4 | SMJ01000 | 5800000756 | 2024/7/5 | 58000007566 | 6 | ||||
10 | 0 | 0 | 2024/7/4 | 2024/7/4 | SMJ01000 | 0110221620 | 2024/7/4 | 2024/7/4 | 01102216209 | 9 | |||
11 | 0 | 0 | 2024/7/4 | 2024/7/4 | SMJ01000 | 0110221620 | 2024/7/4 | 2024/7/4 | 01102216209 | 9 | |||
12 | 0 | 0 | 2024/7/4 | 2024/7/4 | SMJ01000 | 0110221622 | 2024/7/4 | 2024/7/4 | 01102216224 | 4 | |||
13 | 0 | 0 | 2024/7/4 | 2024/7/4 | SMJ01000 | 0110221622 | 2024/7/4 | 2024/7/4 | 01102216224 | 4 | |||
14 | 0 | 0 | 2024/7/4 | 2024/7/4 | SMJ01000 | 0110221627 | 2024/7/4 | 2024/7/4 | 01102216276 | 6 | |||
15 | 0 | 0 | 2024/7/4 | 2024/7/4 | SMJ01000 | 0110221627 | 2024/7/4 | 2024/7/4 | 01102216276 | 6 | |||
16 | 0 | 0 | 2024/7/4 | 2024/7/4 | SMJ01000 | 0230120540 | 2024/7/4 | 2024/7/4 | 02301205404 | 4 | |||
17 | 0 | 0 | 2024/7/4 | 2024/7/4 | SMJ01000 | 0230120540 | 2024/7/4 | 2024/7/4 | 02301205404 | 4 | |||
18 | * | 0 | 0 | 2024/7/4 | 2024/7/4 | SMJ01000 | 0110221643 | 2024/7/4 | 2024/7/4 | 01102216439 | 9 | ||
19 | * | 0 | 0 | 2024/7/4 | 2024/7/4 | SMJ01000 | 0110221643 | 2024/7/4 | 2024/7/4 | 01102216439 | 9 | ||
20 | * | 0 | 0 | 2024/7/4 | 2024/7/4 | SMJ01000 | 0110221643 | 2024/7/4 | 2024/7/4 | 01102216434 | 4 | ||
入力 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B2:B3 | B2 | =IF(元データ!A12="","",0) |
C2:C20 | C2 | =IF(B2="","",0) |
D2:D20 | D2 | =IF(B2="","",TODAY()) |
E2:E20 | E2 | =D2 |
F2:F20 | F2 | =IF(B2="","","SMJ01000") |
G2:G3 | G2 | =IF(B2="","",IF(LEN(元データ!B12)<11,CONCATENATE(TEXT(元データ!B12,"0000000000")),元データ!B12)) |
H2:H3 | H2 | =IF(B2="","",IF(元データ!U12="","",DATE(LEFT(元データ!U12,4),MID(元データ!U12,5,2),RIGHT(元データ!U12,2)))) |
I2:I3 | I2 | =IF(B2="","",IF(元データ!U12="",WORKDAY(D2,1,$X$8:$X$28),H2)) |
J2:J20 | J2 | =CONCATENATE(G2,K2) |
B4 | B4 | =IF(元データ!A9="","",0) |
G4 | G4 | =IF(B4="","",IF(LEN(元データ!B9)<11,CONCATENATE(TEXT(元データ!B9,"0000000000")),元データ!B9)) |
H4 | H4 | =IF(B4="","",IF(元データ!U9="","",DATE(LEFT(元データ!U9,4),MID(元データ!U9,5,2),RIGHT(元データ!U9,2)))) |
I4 | I4 | =IF(B4="","",IF(元データ!U9="",WORKDAY(D4,1,$X$8:$X$28),H4)) |
B5:B7,B10:B11 | B5 | =IF(元データ!A2="","",0) |
G5:G7,G10:G11 | G5 | =IF(B5="","",IF(LEN(元データ!B2)<11,CONCATENATE(TEXT(元データ!B2,"0000000000")),元データ!B2)) |
H5:H7,H10:H11 | H5 | =IF(B5="","",IF(元データ!U2="","",DATE(LEFT(元データ!U2,4),MID(元データ!U2,5,2),RIGHT(元データ!U2,2)))) |
I5:I7,I10:I11 | I5 | =IF(B5="","",IF(元データ!U2="",WORKDAY(D5,1,$X$8:$X$28),H5)) |
B8,B12:B13 | B8 | =IF(元データ!A6="","",0) |
G8,G12:G13 | G8 | =IF(B8="","",IF(LEN(元データ!B6)<11,CONCATENATE(TEXT(元データ!B6,"0000000000")),元データ!B6)) |
H8,H12:H13 | H8 | =IF(B8="","",IF(元データ!U6="","",DATE(LEFT(元データ!U6,4),MID(元データ!U6,5,2),RIGHT(元データ!U6,2)))) |
I8,I12:I13 | I8 | =IF(B8="","",IF(元データ!U6="",WORKDAY(D8,1,$X$8:$X$28),H8)) |
B9 | B9 | =IF(元データ!A5="","",0) |
G9 | G9 | =IF(B9="","",IF(LEN(元データ!B5)<11,CONCATENATE(TEXT(元データ!B5,"0000000000")),元データ!B5)) |
H9 | H9 | =IF(B9="","",IF(元データ!U5="","",DATE(LEFT(元データ!U5,4),MID(元データ!U5,5,2),RIGHT(元データ!U5,2)))) |
I9 | I9 | =IF(B9="","",IF(元データ!U5="",WORKDAY(D9,1,$X$8:$X$28),H9)) |
B14:B20 | B14 | =IF(元データ!A14="","",0) |
G14:G20 | G14 | =IF(B14="","",IF(LEN(元データ!B14)<11,CONCATENATE(TEXT(元データ!B14,"0000000000")),元データ!B14)) |
H14:H20 | H14 | =IF(B14="","",IF(元データ!U14="","",DATE(LEFT(元データ!U14,4),MID(元データ!U14,5,2),RIGHT(元データ!U14,2)))) |
I14:I20 | I14 | =IF(B14="","",IF(元データ!U14="",WORKDAY(D14,1,$X$8:$X$28),H14)) |
A2:A17,A20 | A2 | =IF(AND(J1<>J2,G1=G2),"*","") |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
F:F | Cell Value | contains "登録" | text | NO |
K:K | Cell Value | contains "" | text | NO |
Cells with Data Validation | ||
---|---|---|
Cell | Allow | Criteria |
J1 | Text length | <=32 |
J2:J1048576 | Text length | <=40 |