There is 2 parts to my query.
1st, is there a better way to write the IF OR formula I have got in A9.
2nd, when I insert a row (in say C11) how can I ensure the formula in A9 adjusts to include the NEW row.
Because as it stands at the moment, (part of A9 formula) is:
But when I insert a row in C11 the above automatically changes to:
so formula is missing A10=C11
I have added a Mini sheet with a Validation List on it just to assist. HOWEVER in my real situation the VD list is in (Source)WB and that selected value would be brought into A10 by using:
1st, is there a better way to write the IF OR formula I have got in A9.
2nd, when I insert a row (in say C11) how can I ensure the formula in A9 adjusts to include the NEW row.
Because as it stands at the moment, (part of A9 formula) is:
Excel Formula:
IF(OR(A10=C7, A10=C8, A10=C9, A10=C10, A10=C11),"Supplier #1 (Spain)"
Excel Formula:
IF(OR(A10=C7, A10=C8, A10=C9, A10=C10, A10=C12),"Supplier #1 (Spain)"
I have added a Mini sheet with a Validation List on it just to assist. HOWEVER in my real situation the VD list is in (Source)WB and that selected value would be brought into A10 by using:
Excel Formula:
A10='[Source.xlsm]Sheet1 '!$D$20
Data.xlsm | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | ||||||
2 | ||||||
3 | ||||||
4 | ||||||
5 | ||||||
6 | Supplier #1 (Spain) | |||||
7 | Green Grapes | |||||
8 | Red Grapes | |||||
9 | Supplier #2 (Spain) | Oranges | ||||
10 | Cucumber | Strawberry | ||||
11 | ||||||
12 | Supplier #2 (Spain) | |||||
13 | Data Validation List = $C$6:$C$24 | Cucumber | ||||
14 | Lettice | |||||
15 | Tomatoes | |||||
16 | Green Peppers | |||||
17 | Red Peppers | |||||
18 | ||||||
19 | Supplier #3 (Kenya) | |||||
20 | Green beans | |||||
21 | Kiwi | |||||
22 | Pomegranate | |||||
23 | ||||||
Sheet3 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
A9 | A9 | =IF(A10=0,"", IF(OR(A10=C7,A10=C8,A10=C9,A10=C10,A10=C11),"Supplier #1 (Spain)", IF(OR(A10=C13,A10=C14,A10=C15,A10=C16,A10=C17,A10=C18),"Supplier #2 (Spain)",IF(OR(A10=C20,A10=C21,A10=C22,A10=C23),"Supplier #3 (Kenya)", "Check selection")))) |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
A9 | Cell Value | contains "Check selection" | text | NO |
A10 | Expression | =$A$10>"" | text | NO |
A9 | Expression | =$A$9>"" | text | NO |
C7:C23 | Expression | =IF($A$10>"",$A$10=$C7:$C$23) | text | NO |
Cells with Data Validation | ||
---|---|---|
Cell | Allow | Criteria |
A10 | List | =$C$6:$C$22 |