pateln1594
New Member
- Joined
- Jul 31, 2018
- Messages
- 6
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]FULL ID[/TD]
[TD]LEFT ID[/TD]
[TD]RIGHT ID[/TD]
[TD]TYPE[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD][/TD]
[TD]1234[/TD]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]2345[/TD]
[TD]2345[/TD]
[TD][/TD]
[TD][/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]3456[/TD]
[TD]3456[/TD]
[TD][/TD]
[TD][/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]6234[/TD]
[TD][/TD]
[TD][/TD]
[TD]6234[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]4657[/TD]
[TD][/TD]
[TD][/TD]
[TD]4657[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]6879[/TD]
[TD][/TD]
[TD][/TD]
[TD]6879[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]1243[/TD]
[TD][/TD]
[TD]1243[/TD]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]5436[/TD]
[TD]5436[/TD]
[TD][/TD]
[TD][/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]7896[/TD]
[TD][/TD]
[TD]7896[/TD]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]4894[/TD]
[TD]4894[/TD]
[TD][/TD]
[TD][/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]
I am having trouble getting the values in Column "Type".
So the idea here is that I have a list of ID's for my device. Some of my devices are full devices, whereas some are only right or left devices. I want the type column to display 0 if they are full devices and display 1 if they are right or left devices. I want to do this using an excel formula not VBA.
I was trying to use the MATCH function to compare the ID column with full right and left columns and then if its a match result is 0 or 1 but I was not able to get the formula correct. Please help!!
<tbody>[TR]
[TD]ID[/TD]
[TD]FULL ID[/TD]
[TD]LEFT ID[/TD]
[TD]RIGHT ID[/TD]
[TD]TYPE[/TD]
[/TR]
[TR]
[TD]1234[/TD]
[TD][/TD]
[TD]1234[/TD]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]2345[/TD]
[TD]2345[/TD]
[TD][/TD]
[TD][/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]3456[/TD]
[TD]3456[/TD]
[TD][/TD]
[TD][/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]6234[/TD]
[TD][/TD]
[TD][/TD]
[TD]6234[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]4657[/TD]
[TD][/TD]
[TD][/TD]
[TD]4657[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]6879[/TD]
[TD][/TD]
[TD][/TD]
[TD]6879[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]1243[/TD]
[TD][/TD]
[TD]1243[/TD]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]5436[/TD]
[TD]5436[/TD]
[TD][/TD]
[TD][/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]7896[/TD]
[TD][/TD]
[TD]7896[/TD]
[TD][/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]4894[/TD]
[TD]4894[/TD]
[TD][/TD]
[TD][/TD]
[TD]0[/TD]
[/TR]
</tbody>[/TABLE]
I am having trouble getting the values in Column "Type".
So the idea here is that I have a list of ID's for my device. Some of my devices are full devices, whereas some are only right or left devices. I want the type column to display 0 if they are full devices and display 1 if they are right or left devices. I want to do this using an excel formula not VBA.
I was trying to use the MATCH function to compare the ID column with full right and left columns and then if its a match result is 0 or 1 but I was not able to get the formula correct. Please help!!