+ Reply to Thread
Results 1 to 4 of 4

Position Numbers

  1. #1
    Registered User
    Join Date
    05-31-2012
    Location
    Groenlo, Netherlands
    MS-Off Ver
    Excel 2019
    Posts
    63

    Position Numbers

    In the German Gaeb-files. d83, d84 etc there is a type of coding for the position numbers. In the line with code 00 there is a code like "123PPI000" which is used like a kind of translation code for all position numbers. Here a couple op positions and what they should look like in the print:

    1 09 --> 1.09
    21 --> 2.1
    21 02 --> 2.1.02

    Don't know if you guys are familiar which such translations, but '123PPI000' means basically that theirs one 1, then a dot; one 2 then a dot; one 3 then a dot, two P's, then a dot etc. in case all positions are used.
    In the example above with 1 09 the 2 and 3 are not used, with 21 only the 1 and 2 are used.
    I can split the positions code in different fields and then add them with concatenate add them together and add the dots. problem is when parts are not used it should NOT result in 1...09. To avoid that many ifs are needed.

    Whats the easiest way to get from 1 09 --> 1.09 with the 123PPI000 code? This 'translation code' is different for every tender, but is the same within the tender for all positions.


    Maybe convert to 1. . .09 and then delete spaces and the the double dots, but what formula to use for that?
    Last edited by Dubrock; 11-01-2013 at 06:08 AM.

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Position Numbers

    Hi,

    Could you post a workbook with some examples and your desired result in each case?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Position Numbers

    I think maybe if you had morefunc's mconcat or something similar to concatenate an array you could use something like:
    =MCONCAT(MID(LEFT(A1,FIND(" ",A1)-1),ROW(INDIRECT("A1:A"&LEN(LEFT(A1,FIND(" ",A1))-1))),1)&".")&" "&RIGHT(A1,LEN(A1)-FIND(" ",A1))

    Or you could write your own user-defined-function to do it.

  4. #4
    Registered User
    Join Date
    05-31-2012
    Location
    Groenlo, Netherlands
    MS-Off Ver
    Excel 2019
    Posts
    63

    Re: Position Numbers

    Here the attachment with all the positions in one specific tender. Be aware that the formula is different now in many cases. I am looking for a fomula that can be used for all situations, and can maybe even skip the step of splitting up the original position without the dots. Or would that be to much at once?
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VBA IF statement equaling numbers (decimal position rounding problem)
    By farzyness in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-10-2010, 03:41 PM
  2. extracting numbers with the same word in diferrent position
    By darkhangelsk in forum Excel General
    Replies: 4
    Last Post: 08-16-2009, 07:43 AM
  3. Position of last two numbers
    By zbor in forum Excel General
    Replies: 3
    Last Post: 06-07-2009, 07:37 AM
  4. Select specific numbers from a list based on position
    By judoist in forum Excel General
    Replies: 1
    Last Post: 11-21-2005, 12:25 PM
  5. Finding the Relative Position of Numbers within a String
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 08-23-2005, 04:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1