chintanbtech
New Member
- Joined
- Jan 16, 2012
- Messages
- 6
Hi,
Please find below the Sample spreadsheet.
[TABLE="class: cms_table_grid, width: 500, align: left"]
<tbody>[TR]
[TD]ACD[/TD]
[TD]AVAL[/TD]
[TD]AVALCD[/TD]
[TD]AVCDREF[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Apple[/TD]
[TD][/TD]
[TD]Fruit[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Banana[/TD]
[TD][/TD]
[TD]Fruit[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]Cat[/TD]
[TD]C for Cat[/TD]
[TD]Animal[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]Dog[/TD]
[TD]D for Dog[/TD]
[TD]Animal[/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD]Elephant[/TD]
[TD]E for Elephant[/TD]
[TD]Animal[/TD]
[/TR]
[TR]
[TD]F[/TD]
[TD]Fox[/TD]
[TD]F for Fox[/TD]
[TD]Animal[/TD]
[/TR]
[TR]
[TD]G[/TD]
[TD]Grape[/TD]
[TD][/TD]
[TD]Fruit[/TD]
[/TR]
[TR]
[TD].......[/TD]
[TD].......[/TD]
[TD].......[/TD]
[TD].......[/TD]
[/TR]
</tbody>[/TABLE]
Is it possible to create a macro which fulfill below conditions?
If in Column D (AVCDREF) the value is Animal then in Column C (AVALCD) formula should appear as =IF(D2="Animal",A2&" for "&B2,"").
If in Column D (AVCDREF) the value is Fruit then in Column C (AVALCD) Formula should not be appeared and user should allow to enter any value in the corresponding cell of Column C. In case in Column D (AVCDREF) the value is updated to Animal then again formula should appear.
Thank you for your help!
Regards,
CP
Please find below the Sample spreadsheet.
[TABLE="class: cms_table_grid, width: 500, align: left"]
<tbody>[TR]
[TD]ACD[/TD]
[TD]AVAL[/TD]
[TD]AVALCD[/TD]
[TD]AVCDREF[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Apple[/TD]
[TD][/TD]
[TD]Fruit[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Banana[/TD]
[TD][/TD]
[TD]Fruit[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]Cat[/TD]
[TD]C for Cat[/TD]
[TD]Animal[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]Dog[/TD]
[TD]D for Dog[/TD]
[TD]Animal[/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD]Elephant[/TD]
[TD]E for Elephant[/TD]
[TD]Animal[/TD]
[/TR]
[TR]
[TD]F[/TD]
[TD]Fox[/TD]
[TD]F for Fox[/TD]
[TD]Animal[/TD]
[/TR]
[TR]
[TD]G[/TD]
[TD]Grape[/TD]
[TD][/TD]
[TD]Fruit[/TD]
[/TR]
[TR]
[TD].......[/TD]
[TD].......[/TD]
[TD].......[/TD]
[TD].......[/TD]
[/TR]
</tbody>[/TABLE]
Is it possible to create a macro which fulfill below conditions?
If in Column D (AVCDREF) the value is Animal then in Column C (AVALCD) formula should appear as =IF(D2="Animal",A2&" for "&B2,"").
If in Column D (AVCDREF) the value is Fruit then in Column C (AVALCD) Formula should not be appeared and user should allow to enter any value in the corresponding cell of Column C. In case in Column D (AVCDREF) the value is updated to Animal then again formula should appear.
Thank you for your help!
Regards,
CP