+ Reply to Thread
Results 1 to 4 of 4

Text & Numbers in the same cell

  1. #1
    Registered User
    Join Date
    11-19-2014
    Location
    Northampton, England
    MS-Off Ver
    2013
    Posts
    35

    Text & Numbers in the same cell

    Hi

    I have a spread sheet that calculated pick rates and down time (non picking activity's)
    The assembly number use to be a 7 digit number (see sample spread sheet attached)
    Due to a system change this number now has a prefix (EU,CC,ND or STD)
    To calculate down time, I used a formula to identify text. then calculate the time to the next pick, this is then taken off the work time at the end of the day
    since the system change the assembly number ( with prefix) is text
    I have tried the formula
    =IF(LEFT(G3,2)="CC","",T(G3)) that appeared to work, however when i expanded it to =IF(LEFT(G3,2)=OR("CC","EU","ST","ND"),"",T(G3)) i get a Value error

    any suggestions to how i can identify/ remove the prefix?

    Mick
    Attached Files Attached Files

  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: Text & Numbers in the same cell

    I'm not sure if I really understand what you want... but b any chance does this do it???

    =IF(--TRIM(LOOKUP(99^99,--("0"&MID(G2,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},G2&"0123456789")),ROW(1:10000)))))=0,G2,--TRIM(LOOKUP(99^99,--("0"&MID(G2,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},G2&"0123456789")),ROW(1:10000))))))
    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
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,773

    Re: Text & Numbers in the same cell

    Try ..

    =IF(OR(LEFT(G3,2)="CC",LEFT(G3,2)="EU",LEFT(G3,2)="ST",LEFT(G3,2)="ND"),"",T(G3))

  4. #4
    Registered User
    Join Date
    11-19-2014
    Location
    Northampton, England
    MS-Off Ver
    2013
    Posts
    35

    Re: Text & Numbers in the same cell

    Hi
    Thanks for quick reply's
    Glenn I was after something that separated the Assembly number from all other data (or i think that's what I was after)

    John, yes thanks that will work (I was almost there, I need to try harder next time)

    Mick

+ 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] Cell has text and numbers. How can I get 1,000 separators for the numbers?
    By Jnap in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-21-2015, 11:08 AM
  2. [SOLVED] Copy only numbers within a cell with text and numbers
    By MATU70 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-25-2014, 09:27 AM
  3. Replies: 1
    Last Post: 02-01-2013, 06:30 PM
  4. Removing numbers from a cell containing text and numbers
    By wraith75 in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 09-13-2012, 06:23 AM
  5. copy numbers from numbers+text cell
    By Henk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-11-2006, 09:48 AM
  6. Extract numbers from cell with Text and Numbers
    By wiredwrx in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-18-2006, 06:00 PM
  7. How do I extract numbers from a cell with both text and numbers?
    By SHANNON in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-01-2005, 10:35 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