tarynmahon
Member
I have a template that our Marketing Department records invoices on, in order to have them use the correct source codes I also had data validation rules mixed with VLOOKUP's pulling through the correct codes, unfortunately the problem occurs when the same source is used for different entities that should pull through a different source code, obviously due to using VLOOKUP's it will only pull through the first instance, eg.
COLUMN A(ENTITY), COLUMN B(SOURCE NAME), COLUMN C(SOURCE CODE)
LIS, SUPPLIER A, *FORMULA TO RETREIVE CODE BASED ON COL(B)*
LIS, SUPPLIER B, *FORMULA TO RETREIVE CODE BASED ON COL(B)*
SDL, SUPPLIER A, *FORMULA TO RETREIVE CODE BASED ON COL(B)*
SDL, SUPPLIER C, *FORMULA TO RETREIVE CODE BASED ON COL(B)*
Each of these lines should pull through a unique Source Code from the following list;
LIS, Supplier A, CODE1
LIS, Supplier B, CODE2
LIS, Supplier C, CODE3
LIS, Supplier D, CODE4
SDL, Supplier A, CODE5
SDL, Supplier B, CODE6
SDL, Supplier C, CODE7
SDL, Supplier D, CODE8
The Source Codes for the above example should return;
COLUMN A(ENTITY), COLUMN B(SOURCE NAME), COLUMN C(SOURCE CODE)
LIS, SUPPLIER A, CODE1
LIS, SUPPLIER B, CODE2
SDL, SUPPLIER A, CODE5
SDL, SUPPLIER C, CODE7
I've tried to do a SUMIFS and an IF(AND but I cant seem to get them to work, any ideas please?
COLUMN A(ENTITY), COLUMN B(SOURCE NAME), COLUMN C(SOURCE CODE)
LIS, SUPPLIER A, *FORMULA TO RETREIVE CODE BASED ON COL(B)*
LIS, SUPPLIER B, *FORMULA TO RETREIVE CODE BASED ON COL(B)*
SDL, SUPPLIER A, *FORMULA TO RETREIVE CODE BASED ON COL(B)*
SDL, SUPPLIER C, *FORMULA TO RETREIVE CODE BASED ON COL(B)*
Each of these lines should pull through a unique Source Code from the following list;
LIS, Supplier A, CODE1
LIS, Supplier B, CODE2
LIS, Supplier C, CODE3
LIS, Supplier D, CODE4
SDL, Supplier A, CODE5
SDL, Supplier B, CODE6
SDL, Supplier C, CODE7
SDL, Supplier D, CODE8
The Source Codes for the above example should return;
COLUMN A(ENTITY), COLUMN B(SOURCE NAME), COLUMN C(SOURCE CODE)
LIS, SUPPLIER A, CODE1
LIS, SUPPLIER B, CODE2
SDL, SUPPLIER A, CODE5
SDL, SUPPLIER C, CODE7
I've tried to do a SUMIFS and an IF(AND but I cant seem to get them to work, any ideas please?