+ Reply to Thread
Results 1 to 5 of 5

entering a number of more than 1 digit

  1. #1
    Registered User
    Join Date
    09-13-2004
    Posts
    26

    entering a number of more than 1 digit

    I would like to enter a number with 9 digits in a format like this -> (123-45-6789) and have each digit be placed in an individual cell.
    A1=1
    B1=2
    C1=3, etc.

    Is there a way to do this?

  2. #2
    Forum Contributor
    Join Date
    06-23-2004
    Location
    Houston, TX
    Posts
    571
    Quote Originally Posted by lsu-i-like
    I would like to enter a number with 9 digits in a format like this -> (123-45-6789) and have each digit be placed in an individual cell.
    A1=1
    B1=2
    C1=3, etc.

    Is there a way to do this?
    Assuming your entry is in Cell X1, these are your formulas:

    A1: =left(X1,1)
    B1: =mid(X1,2,1)
    C1: =mid(X1,3,1)
    D1: =mid(X1,5,1)
    E1: =mid(X1,6,1)
    F1: =mid(X1,8,1)
    G1: =mid(X1,9,1)
    H1: =mid(X1,10,1)
    I1: =right(X1,1)

    Hope this is what you are looking for.

    Regards.
    Last edited by BenjieLop; 06-23-2005 at 10:54 AM.
    BenjieLop
    Houston, TX

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,856
    I';m sure there are several approaches. Here's mine:
    Enter data in A2 123-45-6789
    Enter position number for each number in B1:J1 {1,2,3,5,6,8,9,10,11}
    B2=MID($A2,B$1,1) copied across row 2

  4. #4
    Registered User
    Join Date
    09-13-2004
    Posts
    26
    i want to enter the number in the first cell of output, so using your terminology, x1=a1. this creates a circular reference using left so that wont work. i might have to use your way. in any case, your reply is a big help. any additional help is appreciated.

  5. #5
    Forum Contributor
    Join Date
    06-23-2004
    Location
    Houston, TX
    Posts
    571
    Quote Originally Posted by lsu-i-like
    i want to enter the number in the first cell of output, so using your terminology, x1=a1. this creates a circular reference using left so that wont work. i might have to use your way. in any case, your reply is a big help. any additional help is appreciated.
    NOTE that I never meant X1 to be equal to A1. These are two independent and different cells.

    In my example, X1 is where you have your "xxx-xx-xxxx" entered and the individual single numbers will appear in Cell A1 up to Cell I1.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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