+ Reply to Thread
Results 1 to 6 of 6

Extract POS- Terminal Numebrs

  1. #1
    Registered User
    Join Date
    12-20-2011
    Location
    RIYADH
    MS-Off Ver
    Excel 2007
    Posts
    98

    Red face Extract POS- Terminal Numebrs

    Hi,

    I have an issue in extract the POS- Terminal numbers from long narration which is include the Terminal numbers, pls go through this , hope i can get the answers from you.

    Thnx
    Attached Files Attached Files

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Extract POS- Terminal Numebrs

    May be the following will work in your case
    D4=LEFT(LOOKUP(99^99,MID(SUBSTITUTE(B4,CHAR(10)," "),ROW(INDIRECT("1:"&LEN(B4)-15)),18)+0),8)
    Try this and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Registered User
    Join Date
    12-20-2011
    Location
    RIYADH
    MS-Off Ver
    Excel 2007
    Posts
    98

    Re: Extract POS- Terminal Numebrs

    Thnx Mr. Ravi Bro.... Working good.

  4. #4
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Extract POS- Terminal Numebrs

    This also works however there are 3 entries in your test data that appear to have Carriage Returns after the DR which cause it to lose a character.

    Please Login or Register  to view this content.
    Anybody know however why the following I was trying wouldn't work? just returns a #VALUE error
    Please Login or Register  to view this content.
    If someone has helped you then please add to their Reputation

  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 2403
    Posts
    44,064

    Re: Extract POS- Terminal Numebrs

    Use this array formula in D4, copied down:

    =IFERROR(--LEFT(LOOKUP(10^100,MID(SUBSTITUTE(B4," ","a"),ROW(INDIRECT("1:"&LEN(B4)-15)),16)
    /ISERROR(--MID(" "&B4,ROW(INDIRECT("1:"&LEN(B4)-15)),1))/ISERROR(--MID(B4&" ",ROW(INDIRECT("17:"&LEN(B4)+1)),1))),8),"")

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  6. #6
    Registered User
    Join Date
    12-20-2011
    Location
    RIYADH
    MS-Off Ver
    Excel 2007
    Posts
    98

    Re: Extract POS- Terminal Numebrs

    Thnx all.... got an Ideas & Answers from you guys.

+ 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. need to add [brackets] to numbers in a cell that contain text and numebrs
    By steve21 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-21-2013, 02:30 PM
  2. VBA code to duplicate individual numebrs on a line
    By jeskit in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-20-2011, 06:52 AM
  3. multiple criteria, based on certain tech numebrs
    By itfitz98 in forum Excel General
    Replies: 1
    Last Post: 07-15-2008, 06:23 PM
  4. Isuues with placing long numebrs in Excel
    By playboy85 in forum Excel General
    Replies: 5
    Last Post: 08-03-2007, 10:42 AM
  5. Add in on Terminal Server
    By tcdake in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-08-2007, 11:20 AM
  6. Terminal Digits
    By Cheryl B in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-29-2005, 11:50 AM
  7. Validate social security numebrs
    By Ken Loomis in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-01-2005, 02:05 PM
  8. Embedded Terminal Services
    By amullen in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-14-2005, 01:12 PM

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