Jyotirmaya
Board Regular
- Joined
- Dec 2, 2015
- Messages
- 205
- Office Version
- 2019
- Platform
- Windows
for example
I have two Sheets "DATA" "RAW DATA"
In DATA sheets
[TABLE="width: 500"]
<tbody>[TR]
[TD]
APPLE[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]APPLE[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]APPLE[/TD]
[TD]16.5[/TD]
[/TR]
[TR]
[TD]BANANA
[/TD]
[TD]35[/TD]
[/TR]
[TR]
[TD]BANANA[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]BANANA[/TD]
[TD]36[/TD]
[/TR]
[TR]
[TD]ORANGE[/TD]
[TD]45
[/TD]
[/TR]
[TR]
[TD]ORANGE[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]ORANGE[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]ORANGE[/TD]
[TD]111[/TD]
[/TR]
</tbody>[/TABLE]
In RAW DATA sheet in Column B I have to input APPLE/BANANA/ORANGE in various rows.
I want that if in B2 I have entered APPLE then in C2 I can enter only 10 or 15 or 16.5 if anything else I will enter then I will get error message that enter correct value. Similarly If I will enter Banana in column B of Raw Data sheet then I can only input values 35 or 20 or 36 in the column C
SO what will be the code for Column C of Raw Data sheet to do so ?
I have two Sheets "DATA" "RAW DATA"
In DATA sheets
[TABLE="width: 500"]
<tbody>[TR]
[TD]
APPLE[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]APPLE[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]APPLE[/TD]
[TD]16.5[/TD]
[/TR]
[TR]
[TD]BANANA
[/TD]
[TD]35[/TD]
[/TR]
[TR]
[TD]BANANA[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]BANANA[/TD]
[TD]36[/TD]
[/TR]
[TR]
[TD]ORANGE[/TD]
[TD]45
[/TD]
[/TR]
[TR]
[TD]ORANGE[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]ORANGE[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]ORANGE[/TD]
[TD]111[/TD]
[/TR]
</tbody>[/TABLE]
In RAW DATA sheet in Column B I have to input APPLE/BANANA/ORANGE in various rows.
I want that if in B2 I have entered APPLE then in C2 I can enter only 10 or 15 or 16.5 if anything else I will enter then I will get error message that enter correct value. Similarly If I will enter Banana in column B of Raw Data sheet then I can only input values 35 or 20 or 36 in the column C
SO what will be the code for Column C of Raw Data sheet to do so ?