+ Reply to Thread
Results 1 to 9 of 9

Formula

  1. #1
    Renee Nguy
    Guest

    Formula

    This is what I currently have:
    A1 18506352, I would like B1 to pick up the first two digits so B1 would 18
    A2 015070307 then B2 would show 01
    A3 04506018 then B3 would show 04
    Please help me create this formula
    Thank you so much.
    Renee

  2. #2
    Kevin B
    Guest

    RE: Formula

    The left() formula will do it.

    In column B row 1 place the following formula:

    =Left(A1,2)

    Then copy it down column B as far as necessary.
    --
    Kevin Backmann


    "Renee Nguy" wrote:

    > This is what I currently have:
    > A1 18506352, I would like B1 to pick up the first two digits so B1 would 18
    > A2 015070307 then B2 would show 01
    > A3 04506018 then B3 would show 04
    > Please help me create this formula
    > Thank you so much.
    > Renee


  3. #3
    Ron Coderre
    Guest

    RE: Formula

    For a value in A1
    B1: =LEFT(A1,2)
    copy that formula down as far as you need.

    Does that help?

    ***********
    Regards,
    Ron

    XL2002, WinXP-Pro


    "Renee Nguy" wrote:

    > This is what I currently have:
    > A1 18506352, I would like B1 to pick up the first two digits so B1 would 18
    > A2 015070307 then B2 would show 01
    > A3 04506018 then B3 would show 04
    > Please help me create this formula
    > Thank you so much.
    > Renee


  4. #4
    Renee Nguy
    Guest

    RE: Formula

    Hi Kevin,
    The formula didn't work. It didn't turn into a function. It shows the
    exact thing of =Left(A1,2) instead of the value.
    Thank you,
    Renee

    "Kevin B" wrote:

    > The left() formula will do it.
    >
    > In column B row 1 place the following formula:
    >
    > =Left(A1,2)
    >
    > Then copy it down column B as far as necessary.
    > --
    > Kevin Backmann
    >
    >
    > "Renee Nguy" wrote:
    >
    > > This is what I currently have:
    > > A1 18506352, I would like B1 to pick up the first two digits so B1 would 18
    > > A2 015070307 then B2 would show 01
    > > A3 04506018 then B3 would show 04
    > > Please help me create this formula
    > > Thank you so much.
    > > Renee


  5. #5
    Renee Nguy
    Guest

    RE: Formula

    Hi Ron,
    The formula didn't work. It didn't turn into a function. It shows the
    exact thing of =Left(A1,2) instead of the value.
    Thank you,
    Renee

    "Ron Coderre" wrote:

    > For a value in A1
    > B1: =LEFT(A1,2)
    > copy that formula down as far as you need.
    >
    > Does that help?
    >
    > ***********
    > Regards,
    > Ron
    >
    > XL2002, WinXP-Pro
    >
    >
    > "Renee Nguy" wrote:
    >
    > > This is what I currently have:
    > > A1 18506352, I would like B1 to pick up the first two digits so B1 would 18
    > > A2 015070307 then B2 would show 01
    > > A3 04506018 then B3 would show 04
    > > Please help me create this formula
    > > Thank you so much.
    > > Renee


  6. #6
    Pete_UK
    Guest

    Re: Formula

    The cell B1 must have been formatted as text before you typed your
    formula in. Use Format | Cells | Number (tab) and select General and
    OK. Then double-click in B1 as if to edit the cell then press <enter>.
    You should now see the result, and you can copy B1 down the other cells
    in column B.

    Hope this helps.

    Pete


  7. #7
    Ron Coderre
    Guest

    RE: Formula

    It sounds like the number format for the cell is "text".

    Try this:
    Select the impacted cells
    Format>Cells>Number Tab
    Category: Number
    Click the [OK] button

    Leave those cells selected
    Edit>Replace
    Find what: =
    Replace with: =
    Click the [Replace All] button

    Does that help?

    ***********
    Regards,
    Ron

    XL2002, WinXP-Pro


    "Renee Nguy" wrote:

    > Hi Ron,
    > The formula didn't work. It didn't turn into a function. It shows the
    > exact thing of =Left(A1,2) instead of the value.
    > Thank you,
    > Renee
    >
    > "Ron Coderre" wrote:
    >
    > > For a value in A1
    > > B1: =LEFT(A1,2)
    > > copy that formula down as far as you need.
    > >
    > > Does that help?
    > >
    > > ***********
    > > Regards,
    > > Ron
    > >
    > > XL2002, WinXP-Pro
    > >
    > >
    > > "Renee Nguy" wrote:
    > >
    > > > This is what I currently have:
    > > > A1 18506352, I would like B1 to pick up the first two digits so B1 would 18
    > > > A2 015070307 then B2 would show 01
    > > > A3 04506018 then B3 would show 04
    > > > Please help me create this formula
    > > > Thank you so much.
    > > > Renee


  8. #8
    Forum Contributor
    Join Date
    10-14-2004
    Location
    San Diego, CA
    Posts
    213
    Also the function of LEFT() makes the number text, multiply it by 1 to turn it back to a true number.

    =LEFT(A1,2)*1

    Matt

  9. #9
    Ron Coderre
    Guest

    Re: Formula

    Not sure that applies here, based on the specs in the original post:

    >>A2 015070307 then B2 would show 01
    >>A3 04506018 then B3 would show 04



    ***********
    Regards,
    Ron

    XL2002, WinXP-Pro


    "Flintstone" wrote:

    >
    > Also the function of LEFT() makes the number text, multiply it by 1 to
    > turn it back to a true number.
    >
    > =LEFT(A1,2)*1
    >
    > Matt
    >
    >
    > --
    > Flintstone
    > ------------------------------------------------------------------------
    > Flintstone's Profile: http://www.excelforum.com/member.php...o&userid=15310
    > View this thread: http://www.excelforum.com/showthread...hreadid=513757
    >
    >


+ 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