Forum Discussion
Automating values inside a column
- May 13, 2020
Mrinal1996 I believe that you first need to create a table with weight codes and their matching color code. Something like in the attached picture, where the green areas contains the weight/color table. Column D has the weights and column E looks up the corresponding color code from the weight table.
Your IF formula will be as such
=IF(C2=3,3,0)
- Abiola1May 13, 2020MVPIts better to attach the file than pictures
- Mrinal1996May 13, 2020Copper Contributor
Abiola1 Hi! I am sorry for that. I will attach the file along with this message.
- wumoladMay 13, 2020Iron Contributor
Hi Mrinal1996
There are several values in the weight column, what do you want the colour code column to return for each value?
If you want the colour code column to only return a specific value only when the weight column value is 3, then you can use the formula earlier suggested by Abiola1. However, it appears you were trying to achieve a different result based on the values currently on the attached worksheet.
Are you able to provide more information to guide in the appropriate solution?
I have however included the 2 formula in the worksheet to achieve the following:
i. Reproduce the same value under colour code based on information from weight column
ii. Only show 3 when the values in weight is 3, and 0 when different from 3 using
=IF(C2=3,3,0)Cheers