huiyin9218
Board Regular
- Joined
- Aug 7, 2018
- Messages
- 53
Hi,
How do I write a code to replace cell that contains specific value. For example, when "0.00E+00" is detected, I would like the cell on the left to replace "0.00E+00"
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Column A[/TD]
[TD]Column B[/TD]
[/TR]
[TR]
[TD]Row 1[/TD]
[TD]AB[/TD]
[TD]0.00E+00[/TD]
[/TR]
[TR]
[TD]Row 2[/TD]
[TD]0[/TD]
[TD]8.65E+00[/TD]
[/TR]
[TR]
[TD]Row 3[/TD]
[TD]EF[/TD]
[TD]0.00E+00[/TD]
[/TR]
[TR]
[TD]Row 4[/TD]
[TD]0[/TD]
[TD]1.85E+00[/TD]
[/TR]
</tbody>[/TABLE]
When "0.00E+00" is detected in column B, cell on the left will replace it. Sample table is shown above and output I wish to obtain is shown in table below.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Column A[/TD]
[TD]Column B[/TD]
[/TR]
[TR]
[TD]Row 1[/TD]
[TD][/TD]
[TD]AB[/TD]
[/TR]
[TR]
[TD]Row 2[/TD]
[TD]0[/TD]
[TD]8.65E+00[/TD]
[/TR]
[TR]
[TD]Row 3[/TD]
[TD][/TD]
[TD]EF[/TD]
[/TR]
[TR]
[TD]Row 4[/TD]
[TD]0[/TD]
[TD]1.85E+00[/TD]
[/TR]
</tbody>[/TABLE]
I would be so grateful for your help.
How do I write a code to replace cell that contains specific value. For example, when "0.00E+00" is detected, I would like the cell on the left to replace "0.00E+00"
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Column A[/TD]
[TD]Column B[/TD]
[/TR]
[TR]
[TD]Row 1[/TD]
[TD]AB[/TD]
[TD]0.00E+00[/TD]
[/TR]
[TR]
[TD]Row 2[/TD]
[TD]0[/TD]
[TD]8.65E+00[/TD]
[/TR]
[TR]
[TD]Row 3[/TD]
[TD]EF[/TD]
[TD]0.00E+00[/TD]
[/TR]
[TR]
[TD]Row 4[/TD]
[TD]0[/TD]
[TD]1.85E+00[/TD]
[/TR]
</tbody>[/TABLE]
When "0.00E+00" is detected in column B, cell on the left will replace it. Sample table is shown above and output I wish to obtain is shown in table below.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Column A[/TD]
[TD]Column B[/TD]
[/TR]
[TR]
[TD]Row 1[/TD]
[TD][/TD]
[TD]AB[/TD]
[/TR]
[TR]
[TD]Row 2[/TD]
[TD]0[/TD]
[TD]8.65E+00[/TD]
[/TR]
[TR]
[TD]Row 3[/TD]
[TD][/TD]
[TD]EF[/TD]
[/TR]
[TR]
[TD]Row 4[/TD]
[TD]0[/TD]
[TD]1.85E+00[/TD]
[/TR]
</tbody>[/TABLE]
I would be so grateful for your help.