excelalways
New Member
- Joined
- Sep 8, 2013
- Messages
- 2
Hi Guys,
Im struggling to find a formula to populate cells based on values to be checked in two fields (ICODE, COMPANY).
In the example shown, all records where ever the ICODE = 49, i need to populate the fields AD1,AD2,AD3 or AD4 with the Product Name of the same company name but only where the ICODE <> 49.
Request you Excel gurus out there to please help me with this. Thanks in advance
[TABLE="class: cms_table"]
<tbody>[TR]
[TD]
[/TD]
[TD]CURRENT SHEET[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]ICODE[/TD]
[TD]PRODUCT[/TD]
[TD]COMPANY[/TD]
[TD]AD1[/TD]
[TD]AD2[/TD]
[TD]AD3[/TD]
[TD]AD4[/TD]
[/TR]
[TR]
[TD]
[TD]PENS[/TD]
[TD]ABC STATIONERY[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]
[TD]PENCILS[/TD]
[TD]ABC STATIONERY[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]
[TD]ERASER[/TD]
[TD]ABC STATIONERY[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]
[TD]OVEN[/TD]
[TD]W. *******WARE[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]
[TD]CABINETS[/TD]
[TD]W. *******WARE[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]
[TD]COOKING RANGE[/TD]
[TD]W. *******WARE[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]
[TD]S. S. TABLE[/TD]
[TD]W. *******WARE[/TD]
[TD]
[/TD]
[TD]
[/TD]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]
[/TR]
[TR]
[TD]
[TD]CHAIRS[/TD]
[TD]GEN. FURNITURE [/TD]
[TD]TABLES[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]
[TD]PIPES[/TD]
[TD]RELIABLE PLASTICS [/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]
[TD]CHAIRS[/TD]
[TD]RELIABLE PLASTICS [/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]
[TD]BUCKET[/TD]
[TD]RELIABLE PLASTICS [/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]
[TD]TABLES[/TD]
[TD]RELIABLE PLASTICS [/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]
[TD]TOYS[/TD]
[TD]RELIABLE PLASTICS [/TD]
[TD]PIPES[/TD]
[TD]CHAIRS[/TD]
[TD]BUCKET[/TD]
[TD]TABLES[/TD]
[/TR]
[TR]
[TD]
[TD]BOTTLES[/TD]
[TD]RELIABLE PLASTICS [/TD]
[TD]PIPES[/TD]
[TD]CHAIRS[/TD]
[TD]BUCKET[/TD]
[TD]TABLES[/TD]
[/TR]
</tbody>[/TABLE]
Im struggling to find a formula to populate cells based on values to be checked in two fields (ICODE, COMPANY).
In the example shown, all records where ever the ICODE = 49, i need to populate the fields AD1,AD2,AD3 or AD4 with the Product Name of the same company name but only where the ICODE <> 49.
Request you Excel gurus out there to please help me with this. Thanks in advance
[TABLE="class: cms_table"]
<tbody>[TR]
[TD]
[TD]CURRENT SHEET[/TD]
[TD]
[TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD]ICODE[/TD]
[TD]PRODUCT[/TD]
[TD]COMPANY[/TD]
[TD]AD1[/TD]
[TD]AD2[/TD]
[TD]AD3[/TD]
[TD]AD4[/TD]
[/TR]
[TR]
[TD]
89
[/TD][TD]PENS[/TD]
[TD]ABC STATIONERY[/TD]
[TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD]
49
[/TD][TD]PENCILS[/TD]
[TD]ABC STATIONERY[/TD]
[TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD]
49
[/TD][TD]ERASER[/TD]
[TD]ABC STATIONERY[/TD]
[TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD]
94
[/TD][TD]OVEN[/TD]
[TD]W. *******WARE[/TD]
[TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD]
90
[/TD][TD]CABINETS[/TD]
[TD]W. *******WARE[/TD]
[TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD]
49
[/TD][TD]COOKING RANGE[/TD]
[TD]W. *******WARE[/TD]
[TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD]
49
[/TD][TD]S. S. TABLE[/TD]
[TD]W. *******WARE[/TD]
[TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD]
49
[/TD][TD]DISHWASHER[/TD]
[TD]W. *******WARE[/TD]
[TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD]
91
[/TD][TD]TABLES[/TD]
[TD]GEN. FURNITURE[/TD]
[TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD]
49
[/TD][TD]CHAIRS[/TD]
[TD]GEN. FURNITURE[/TD]
[TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD]
89
[/TD][TD]PIPES[/TD]
[TD]RELIABLE PLASTICS[/TD]
[TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD]
90
[/TD][TD]CHAIRS[/TD]
[TD]RELIABLE PLASTICS[/TD]
[TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD]
24
[/TD][TD]BUCKET[/TD]
[TD]RELIABLE PLASTICS[/TD]
[TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD]
93
[/TD][TD]TABLES[/TD]
[TD]RELIABLE PLASTICS[/TD]
[TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD]
49
[/TD][TD]TOYS[/TD]
[TD]RELIABLE PLASTICS[/TD]
[TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD]
49
[/TD][TD]BOTTLES[/TD]
[TD]RELIABLE PLASTICS[/TD]
[TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD]
[TD]
[TD]
[TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD]
[TD]FINAL REQUIRED SHEET[/TD]
[TD]
[TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD]ICODE[/TD]
[TD]PRODUCT[/TD]
[TD]COMPANY[/TD]
[TD]AD1[/TD]
[TD]AD2[/TD]
[TD]AD3[/TD]
[TD]AD4[/TD]
[/TR]
[TR]
[TD]
89
[/TD]
[TD]PENS[/TD]
[TD]ABC STATIONERY[/TD]
[TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD]
49
[/TD][TD]PENCILS[/TD]
[TD]ABC STATIONERY[/TD]
[TD]PENS[/TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD]
49
[/TD][TD]ERASER[/TD]
[TD]ABC STATIONERY[/TD]
[TD]PENS[/TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD]
94
[/TD][TD]OVEN[/TD]
[TD]W. *******WARE[/TD]
[TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD]
90
[/TD][TD]CABINETS[/TD]
[TD]W. *******WARE[/TD]
[TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD]
49
[/TD][TD]COOKING RANGE[/TD]
[TD]W. *******WARE[/TD]
[TD]OVEN[/TD]
[TD]CABINETS[/TD]
[TD]
[TD]
[/TR]
[TR]
[TD]
49
[/TD][TD]S.S. TABLE[/TD]
[TD]W. *******WARE[/TD]
[TD]OVEN[/TD]
[TD]CABINETS[/TD]
[TD]
[TD]
[/TR]
[TR]
[TD]
49
[/TD][TD]DISHWASHER[/TD]
[TD]W. *******WARE[/TD]
[TD]OVEN[/TD]
[TD]CABINETS[/TD]
[TD]
[TD]
[/TR]
[TR]
[TD]
91
[/TD][TD]TABLES[/TD]
[TD]GEN. FURNITURE[/TD]
[TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD]
49
[/TD][TD]CHAIRS[/TD]
[TD]GEN. FURNITURE [/TD]
[TD]TABLES[/TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD]
89
[/TD][TD]PIPES[/TD]
[TD]RELIABLE PLASTICS [/TD]
[TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD]
90
[/TD][TD]CHAIRS[/TD]
[TD]RELIABLE PLASTICS [/TD]
[TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD]
24
[/TD][TD]BUCKET[/TD]
[TD]RELIABLE PLASTICS [/TD]
[TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD]
93
[/TD][TD]TABLES[/TD]
[TD]RELIABLE PLASTICS [/TD]
[TD]
[TD]
[TD]
[TD]
[/TR]
[TR]
[TD]
49
[/TD][TD]TOYS[/TD]
[TD]RELIABLE PLASTICS [/TD]
[TD]PIPES[/TD]
[TD]CHAIRS[/TD]
[TD]BUCKET[/TD]
[TD]TABLES[/TD]
[/TR]
[TR]
[TD]
49
[/TD][TD]BOTTLES[/TD]
[TD]RELIABLE PLASTICS [/TD]
[TD]PIPES[/TD]
[TD]CHAIRS[/TD]
[TD]BUCKET[/TD]
[TD]TABLES[/TD]
[/TR]
</tbody>[/TABLE]
Last edited: