+ Reply to Thread
Results 1 to 3 of 3

Thread: Mid Function

  1. #1
    Registered User
    Join Date
    08-16-2006
    Posts
    2

    Question Mid Function

    This is the first column
    Column A
    Abdul Narayan D'souza
    Sujit Satyadhar Shukla
    wasim Khan

    so the second column shud have formula which wud give result
    Column B
    A N D'souza
    S S Shukla
    W Khan

    how is this possible

  2. #2
    WLMPilot
    Guest

    RE: Mid Function

    This is the formula I figured out to work for what you are asking

    =LEFT(A1,1)&" "&MID(A1,FIND(" ",A1)+1,1)&" "&RIGHT(A1,FIND(" ",A1,FIND("
    ",A1)))

    "sujit_shukla" wrote:

    >
    > This is the first column
    > Column A
    > Abdul Narayan D'souza
    > Sujit Satyadhar Shukla
    > wasim Khan
    >
    > so the second column shud have formula which wud give result
    > Column B
    > A N D'souza
    > S S Shukla
    > W Khan
    >
    > how is this possible
    >
    >
    > --
    > sujit_shukla
    > ------------------------------------------------------------------------
    > sujit_shukla's Profile: http://www.excelforum.com/member.php...o&userid=37587
    > View this thread: http://www.excelforum.com/showthread...hreadid=572130
    >
    >


  3. #3
    Bob Phillips
    Guest

    Re: Mid Function

    =IF(LEN(A1)-LEN(SUBSTITUTE(A1," ",""))=1,LEFT(A1,1)&MID(A1,FIND("
    ",A1),99),LEFT(A1,1)&MID(A1,FIND(" ",A1),2)&MID(A1,FIND(" ",A1,FIND("
    ",A1)+1),99))

    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "sujit_shukla" <sujit_shukla.2cmofe_1155723606.9562@excelforum-nospam.com>
    wrote in message
    news:sujit_shukla.2cmofe_1155723606.9562@excelforum-nospam.com...
    >
    > This is the first column
    > Column A
    > Abdul Narayan D'souza
    > Sujit Satyadhar Shukla
    > wasim Khan
    >
    > so the second column shud have formula which wud give result
    > Column B
    > A N D'souza
    > S S Shukla
    > W Khan
    >
    > how is this possible
    >
    >
    > --
    > sujit_shukla
    > ------------------------------------------------------------------------
    > sujit_shukla's Profile:

    http://www.excelforum.com/member.php...o&userid=37587
    > View this thread: http://www.excelforum.com/showthread...hreadid=572130
    >




+ 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.2.0