Mark Roberts
Board Regular
- Joined
- Jul 9, 2012
- Messages
- 68
Hi,
Hope the title makes sense. I'll explain below what I mean. RIGHT, LEFT etc does not work for this (well a simple one doesn't).
In CELL A1 I have 367921. In CELL B1 I want the number 9 to show (3rd last). In CELL C1 I want the number 2 to show (2nd last) and in CELL D1 I want the number 1 to show (last number).
However in CELL A2 I have the numbers 52. So in CELL B2 I would want 0 as there is no third to last number. In CELL C2 I would want 5 and in CELL D2 I would want 2 to show.
Just to add a bit more confusion if there is a zero in any of the final three numbers I would want to show this as a number 10. e.g. If I have the string 156030 in CELL A3 I would want 10 in CELL B3, 3 in CELL C3 and 10 in CELL D3.
I have typed this in manually below. Any help greatly appreciated as always.
<COLGROUP><COL style="WIDTH: 48pt" span=4 width=64><TBODY>
</TBODY>
Hope the title makes sense. I'll explain below what I mean. RIGHT, LEFT etc does not work for this (well a simple one doesn't).
In CELL A1 I have 367921. In CELL B1 I want the number 9 to show (3rd last). In CELL C1 I want the number 2 to show (2nd last) and in CELL D1 I want the number 1 to show (last number).
However in CELL A2 I have the numbers 52. So in CELL B2 I would want 0 as there is no third to last number. In CELL C2 I would want 5 and in CELL D2 I would want 2 to show.
Just to add a bit more confusion if there is a zero in any of the final three numbers I would want to show this as a number 10. e.g. If I have the string 156030 in CELL A3 I would want 10 in CELL B3, 3 in CELL C3 and 10 in CELL D3.
I have typed this in manually below. Any help greatly appreciated as always.
367921 | 9 | 2 | 1 |
52 | 0 | 5 | 2 |
156030 | 10 | 3 | 10 |
<COLGROUP><COL style="WIDTH: 48pt" span=4 width=64><TBODY>
</TBODY>