Ark68
Well-known Member
- Joined
- Mar 23, 2004
- Messages
- 4,616
- Office Version
- 365
- 2016
- Platform
- Windows
Consider these two georgraphic co-ordinates
I am trying to extract the seconds values of these co-ordinates. Lets consider we're tring to extract the Longitudinal minutes from column B (in text) to column I (in decimal). You will notice that the data in column C is inconsistent. In my dataset, in column c, there are several values that do not have decimal second values as in C43 (47"), unlike the majority of data that does have a decimal seconds value like in C42 (50.2").
My formula in column I is failing. I am getting a value of all zeros, which is correct for that source data without decimal seconds (length of value in C = 10), however, the other values in C (whose length = 12) do not produce the desired result. In the illustrated case I am looking for a numeric value of 50.2. Column I is formatted as a number to one decimal place.
Can someone point out to me where the error in my formula is (column I)? Should I be going about this with a different approach perhaps?
Cell Formulas | ||
---|---|---|
Range | Formula | |
F42:F43 | F42 | =LEFT([@Column2],1) |
G42:G43 | G42 | =VALUE(MID([@Column2],2,2)) |
H42:H43 | H42 | =VALUE(MID([@Column2],5,2)) |
I42:I43 | I42 | =IF(LEN(B42=10),0,VALUE(MID(B42,8,4))) |
I am trying to extract the seconds values of these co-ordinates. Lets consider we're tring to extract the Longitudinal minutes from column B (in text) to column I (in decimal). You will notice that the data in column C is inconsistent. In my dataset, in column c, there are several values that do not have decimal second values as in C43 (47"), unlike the majority of data that does have a decimal seconds value like in C42 (50.2").
My formula in column I is failing. I am getting a value of all zeros, which is correct for that source data without decimal seconds (length of value in C = 10), however, the other values in C (whose length = 12) do not produce the desired result. In the illustrated case I am looking for a numeric value of 50.2. Column I is formatted as a number to one decimal place.
Can someone point out to me where the error in my formula is (column I)? Should I be going about this with a different approach perhaps?