Apologies if the example is not formatted properly.
I have a data set with one sample per row, the data contain two columns with reference numbers of the start value and end value.
- cell A1 = Sample #1
- cell B1 = 101-263 (start value)
cell C1 = 101-266 (end value)
cell A2 = Sample #2
- cell B2 = 162-186 (start value)
- cell C2 = 162-187 (end value)
The range of values is a different length of each row of data, with a maximum range of 8 values. I need to fill in the values in the range, with each value in a cell along the row.
So for sample #1 above I need to create the cell values: D1 = 101-264, and E1 = 101-265
While for sample #2 there will be no extra cells needed.
Is there a formula (using Vlookup and If perhaps?) that I can create and drag across all rows and over the 8 needed columns to fill in this data? (I don't mind if there are N/A in the shorter-range rows)
If there is an easier way using R also fine with me.
Thanks for any advice