citrusfish
New Member
- Joined
- Nov 24, 2015
- Messages
- 11
Hi
This post has two requests
I have the data shown below:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]Target 1[/TD]
[TD="align: center"]Target 2[/TD]
[TD="align: center"]Value of Target 1[/TD]
[TD="align: center"]Value of Target 2[/TD]
[TD="align: center"]Best Target[/TD]
[TD="align: center"]Best Value[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]-0.78[/TD]
[TD="align: center"]2.22[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
</tbody>[/TABLE]
I would like to research two possible options as I am not sure which will suit my purpose best:
1. Return in F2 the value of C2 or D2 which is closest to 0 and then copy the corresponding Target depending on whether Value Target 1 or Value Target 2 was the closest. So it would return -0.78 in F2 and 5 in E2.
2. Slightly easier I think. I want to return in F2 the Positive value from C2 or D2 and then copy the corresponding Target depending on whether Value Target 1 or Value Target 2 was the closest. So it would return 2.22 in F2 and 4 in E2.
I hope it is OK to ask two questions in one.
Many thanks for any help you can give.
Citrusfish
This post has two requests
I have the data shown below:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]Target 1[/TD]
[TD="align: center"]Target 2[/TD]
[TD="align: center"]Value of Target 1[/TD]
[TD="align: center"]Value of Target 2[/TD]
[TD="align: center"]Best Target[/TD]
[TD="align: center"]Best Value[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]-0.78[/TD]
[TD="align: center"]2.22[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
</tbody>[/TABLE]
I would like to research two possible options as I am not sure which will suit my purpose best:
1. Return in F2 the value of C2 or D2 which is closest to 0 and then copy the corresponding Target depending on whether Value Target 1 or Value Target 2 was the closest. So it would return -0.78 in F2 and 5 in E2.
2. Slightly easier I think. I want to return in F2 the Positive value from C2 or D2 and then copy the corresponding Target depending on whether Value Target 1 or Value Target 2 was the closest. So it would return 2.22 in F2 and 4 in E2.
I hope it is OK to ask two questions in one.
Many thanks for any help you can give.
Citrusfish