+ Reply to Thread
Results 1 to 28 of 28

Formatting Easting/Northing

  1. #1
    Registered User
    Join Date
    09-15-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Formatting Easting/Northing

    Hi,

    I've been tasked with formatting a very badly managed worksheet containing easting / northing's.

    The type of formats used are (numbers are for show):

    1. 291493 : 055473
    2. (293692, 87898)
    3. (383098, 203305)
    4. Easting 287426 Northing 63057
    5. EASTING 372410 NORTHING 166185
    6. (E 316700, N 175502)

    What I'd ideally like to do is pluck out the 1st 6 numbers (Easting) and then the last 6 numbers (Northing) and do this independently so I can have 2 different columns.


    Thanks

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Formatting Easting/Northing

    Are the numbers: 1. 2. 3., etc, present in your cells?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    09-15-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Formatting Easting/Northing

    No, simply used them for show here to identify the different uses of how they've inserted the references before.

    Sorry for the confusion.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Formatting Easting/Northing

    OK. For the Eastings:
    =LOOKUP(99^99,--(0&MID(A1,MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&1234567890)),ROW(INDIRECT("1:"&LEN(A1)+1)))))

    For the Northings:
    =LOOKUP(99^99,--(0&MID(SUBSTITUTE(A1,B1,""),MIN(FIND({0,1,2,3,4,5,6,7,8,9},SUBSTITUTE(A1,B1,"")&1234567890)),ROW(INDIRECT("1:"&LEN(SUBSTITUTE(A1,B1,""))+1)))))

    This has "lost" the leading zero in 055473 Do you want the results formatted to give 6 characters?
    Attached Files Attached Files

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Formatting Easting/Northing

    If you do, simply select the cells and format as custom: 000000

  6. #6
    Registered User
    Join Date
    09-15-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Formatting Easting/Northing

    Thanks

    I'll have a little play around with it and get back to you in 20 mins if any problems

  7. #7
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Formatting Easting/Northing

    Using your posted example (removing the leading ordinals) in Col_A

    B1: the ordinal of the number to pull.......1
    D1: the ordinal of the number to pull.......2
    This ARRAY FORMULA, completed by holding down CTRL and SHIFT when you press ENTER (instead of just pressing ENTER)
    pulls that number from the referenced cell
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    In your example, those formulas returns: 291493 and 55473

    Copy C1 and paste into C2 and down as far as you need
    Copy E1 and paste into E2 and down as far as you need
    Be sure to extend the 1's and 2's in columns B and D

    These are the results:
    A
    B
    C
    D
    E
    1
    291493 : 055473
    1
    291493
    2
    55473
    2
    (293692, 87898)
    1
    293692
    2
    87898
    3
    (383098, 203305)
    1
    383098
    2
    203305
    4
    Easting 287426 Northing 63057
    1
    287426
    2
    63057
    5
    EASTING 372410 NORTHING 166185
    1
    372410
    2
    166185
    6
    (E 316700, N 175502)
    1
    316700
    2
    175502


    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  8. #8
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Formatting Easting/Northing

    In B1 and copy down

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    in C1 and copy down

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    ***Array formula must be entered by using key combination of CTRL+SHIFT+ENTER and not just ENTER

    Format cells as General


    A
    B
    C
    1
    291493 : 055473
    291493
    55473
    2
    (293692, 87898)
    293692
    287898
    3
    (383098, 203305)
    383098
    203305
    4
    Easting 287426 Northing 63057
    287426
    663057
    5
    EASTING 372410 NORTHING 166185
    372410
    166185
    6
    (E 316700, N 175502)
    316700
    175502
    Sheet: Sheet1
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  9. #9
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Formatting Easting/Northing

    Another option
    first 6
    =MID(A1, MIN(FIND({0,1,2,3,4,5,6,7,8,9}, A1&1234567890)),6)

    second 6
    =RIGHT(TRIM(SUBSTITUTE(A1,")","")),6)
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Formatting Easting/Northing

    OK, Alkey, put me out of my misery.... How can that work??? Clearly, it DOES, but I don't see how NPV delivered this result.... Why -0.9?

  11. #11
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Formatting Easting/Northing

    Quote Originally Posted by Glenn Kennedy View Post
    OK, Alkey, put me out of my misery.... How can that work??? Clearly, it DOES, but I don't see how NPV delivered this result.... Why -0.9?
    LOL! I have no idea! I found this formula long time ago and I never used it before for the reason that I have no clue how it works.

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Formatting Easting/Northing

    At least you're honest. It's back to the tiny "evaluate formula" window for me....

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,031

    Re: Formatting Easting/Northing

    Quote Originally Posted by Glenn Kennedy View Post
    At least you're honest. It's back to the tiny "evaluate formula" window for me....
    OT, but yes, why don't they make that bigger???
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  14. #14
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Formatting Easting/Northing

    LOL, let me know if you figure it out, Glenn!

  15. #15
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Formatting Easting/Northing

    I might have known that a "familiar face" here has written extensively on the subject:

    http://excelxor.com/2014/11/01/extra...a-single-cell/

  16. #16
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Formatting Easting/Northing

    try:
    1.
    Please Login or Register  to view this content.
    I assumed first numeric string has 6 characters.
    2.
    Please Login or Register  to view this content.
    I assumed 8 places from right don't argue with places of first numeric string.(if so, can be changed to 7)
    and after second numeric string is no more then 2 characters, and two character between numeric strings (too many posibilities)
    both formulas are CSE entered.

    result:
    291493 055473
    293692 87898
    383098 203305
    287426 63057
    372410 166185
    316700 175502
    Last edited by sandy666; 12-30-2015 at 06:07 AM. Reason: second formula changed

  17. #17
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Formatting Easting/Northing

    This is why I don't post that formula, unless there's absolutely no other alternative. You need to really understand the way financial formulas work to even understand the explanation!
    NPV is actually summing a series of PV calculations:

    A
    B
    C
    D
    E
    F
    1
    Easting 287426 Northing 63057
    28742663057
    :Sum of PV
    2
    Position
    Number
    NumPct
    PV_Periods
    PV
    Formulas
    3
    1
    (text blank)
    4
    2
    (text blank)
    5
    3
    (text blank)
    6
    4
    (text blank)
    7
    5
    (text blank)
    8
    6
    (text blank)
    9
    7
    (text blank)
    10
    8
    7
    0.07
    2
    7
    =PV(-0.9,F10,0,-E10)
    11
    9
    5
    0.05
    3
    50
    =PV(-0.9,F11,0,-E11)
    12
    10
    0
    0
    4
    0
    =PV(-0.9,F12,0,-E12)
    13
    11
    3
    0.03
    5
    3000
    =PV(-0.9,F13,0,-E13)
    14
    12
    6
    0.06
    6
    60000
    =PV(-0.9,F14,0,-E14)
    15
    13
    (text blank)
    16
    14
    (text blank)
    17
    15
    (text blank)
    18
    16
    (text blank)
    19
    17
    (text blank)
    20
    18
    (text blank)
    21
    19
    (text blank)
    22
    20
    (text blank)
    23
    21
    (text blank)
    24
    22
    (text blank)
    25
    23
    6
    0.06
    7
    600000
    26
    24
    2
    0.02
    8
    2000000
    27
    25
    4
    0.04
    9
    40000000
    28
    26
    7
    0.07
    10
    700000000
    29
    27
    8
    0.08
    11
    8000000000
    30
    28
    2
    0.02
    12
    20000000000
    31
    29
    (text blank)
    32
    30
    (text blank)
    33
    31
    (text blank)
    34
    32
    (text blank)
    35
    33
    (text blank)
    36
    34
    (text blank)
    37
    35
    (text blank)
    38
    36
    (text blank)

  18. #18
    Registered User
    Join Date
    09-15-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Formatting Easting/Northing

    Hey,

    I was having a play around with Glenn's formula and wondered how to deal with an extra formatting type i.e 323934,199510 currrently it'll almost do it by typing 323934199510 and if I had the space it'll do it perfectly.

  19. #19
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Formatting Easting/Northing

    One way... Eastings:
    =LOOKUP(99^99,--(0&MID(SUBSTITUTE(A1,","," "),MIN(FIND({0,1,2,3,4,5,6,7,8,9},SUBSTITUTE(A1,","," ")&1234567890)),ROW(INDIRECT("1:"&LEN(SUBSTITUTE(A1,","," "))+1)))))

    Northings:
    =LOOKUP(99^99,--(0&MID(SUBSTITUTE(A1,B1,""),MIN(FIND({0,1,2,3,4,5,6,7,8,9},SUBSTITUTE(A1,B1,"")&1234567890)),ROW(INDIRECT("1:"&LEN(SUBSTITUTE(A1,B1,""))+1)))))

  20. #20
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Formatting Easting/Northing

    But... if you like the quirky/offbeat/"How on earth did that work?" type of solution.... Alkey's effort works perfectly well with the additional format,too. having spent a bit of time yesterday looking at it, this format might be more efficient.

    Eastings:
    =LEFT(INT(NPV(-0.9,IFERROR(MID(A2,1+LEN(A2)-ROW(INDIRECT("1:"&LEN(A2))),1)/10,""))),6)

    Northings:
    =RIGHT(INT(NPV(-0.9,IFERROR(MID(A2,1+LEN(A2)-ROW(INDIRECT("1:"&LEN(A2))),1)/10,""))),6)

    Both entered as an array.
    Last edited by Glenn Kennedy; 12-30-2015 at 05:24 AM.

  21. #21
    Registered User
    Join Date
    09-15-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Formatting Easting/Northing

    Thanks again, enjoyable read about that NPV formula, still haven't a clue but used it for the wow factor if anyone asks how it works :D

  22. #22
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Formatting Easting/Northing

    As long as they don't demand an explanation from you!!

  23. #23
    Registered User
    Join Date
    09-15-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Formatting Easting/Northing

    Explanation: Black magic was used.

  24. #24
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Formatting Easting/Northing

    That will do it !!!!!

    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  25. #25
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Formatting Easting/Northing

    Nominate for thread of the month.

  26. #26
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Formatting Easting/Northing

    Not to take anything away from the NPV formula...BUT..
    we need to be aware that it pulls and concatenates ALL digits from the referenced text and it is limited to 15 significant digits.

    Example:
    A1: 291493 : 055473 : 1234

    This formula could pull the left 6 digits (291493)
    Please Login or Register  to view this content.
    But this one couldn't pull the right 6 digits (731234)
    Please Login or Register  to view this content.
    The reason is that the base formula returns: 2914930554731250
    Significant digits get pared off the right side.

    While the formula I posted is certainly more verbose...it is capable of pulling any discrete series of digits (limited to 15 significant digits per series, of course).
    Example:
    A1: abc1234DEF567ghi891011JKLM121314op

    numeric instances to pull
    B1: 1
    B2: 2
    B3: 3
    B4: 4

    This array formula, copied down, returns the specified values
    Please Login or Register  to view this content.
    In that example, the formulas return:
    Please Login or Register  to view this content.

  27. #27
    Forum Expert
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,513

    Re: Formatting Easting/Northing

    AlKey what mean (NPV(-0.9

  28. #28
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Formatting Easting/Northing

    NPV is Net Present Value. If you want to try to understand how it works, follow the link that I provided at Post 15. Good luck. You'll need it.

+ 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. [SOLVED] Lats Longs Easting Northing Conversions
    By Knawl in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-04-2015, 05:34 AM
  2. Computing the differance between two Northing and Eastings
    By RRien07 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-12-2015, 12:50 PM
  3. Can anyone help me to convert Easting to Latitude,
    By mohammadamjad48 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-30-2014, 08:01 AM
  4. How to convert Easting to Latitude Help me???
    By mohammadamjad48 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-30-2014, 07:31 AM
  5. Creating a grid of Easting and Northing values based on control points?
    By Carlos1989 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-28-2013, 09:28 AM
  6. Easting/northing to Longitude/Latitude
    By nrschmid in forum Excel General
    Replies: 1
    Last Post: 07-11-2007, 10:21 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