Hi all,
I would very much value some help with the below!
Based on this example dataset
I would like to store v2 and v3 for each of the following 2 values of v1: 19.5 22.3
Specifically, since v1 only consists of integers, I want to find the nearest value of v1 (rounded up)- in this case it would be 20 and 22.
There are also repetitions as shown in the above table- I only want one of these values.
I would like to then export into an excel file the below desired output table:
I would like for the code not to destroy the data- i.e. it will need to store the values and then output them.
Many thanks in advance for any help!
I would very much value some help with the below!
Based on this example dataset
| v1 | v2 | v3 |
| 19 | 1.5 | 1.7 |
| 19 | 1.5 | 1.7 |
| 20 | 1.6 | 1.8 |
| 21 | 0.5 | 0.6 |
| 22 | 1.2 | 1.4 |
| 22 | 1.2 | 1.4 |
| 22 | 1.2 | 1.4 |
| 23 | 1.9 | 2.2 |
Specifically, since v1 only consists of integers, I want to find the nearest value of v1 (rounded up)- in this case it would be 20 and 22.
There are also repetitions as shown in the above table- I only want one of these values.
I would like to then export into an excel file the below desired output table:
| v1 | v2 | v3 |
| 20 | 1.6 | 1.8 |
| 22 | 1.2 | 1.4 |
Many thanks in advance for any help!

Comment