Tampilkan postingan dengan label Random. Tampilkan semua postingan
Tampilkan postingan dengan label Random. Tampilkan semua postingan

How to Extract First, Middle and Last Name from One Cell Into Separate Cells In Excel


In this article we will show you how to extract First, Middle & Last Name from a given text string using multiple methods in Microsoft Excel.
Many a times you face a situation where in you are given a name list containing full names and you need to separate them on the basis of first, middle and last name and then return the result into different cells. This is a very common problem for any excel user, and you too must have come across it.
This is a very common distress for a lot of Excel users but there is no specific in-built function in Excel that can extract first name, middle initial and last name from a cell that contains a complete name.
But, there are multiple methods in Excel that can help you in doing the same. And, that’s what this article lesson is about.
Today, we will show you two different methods that can be used for splitting names into different cells.
The most common way in which Excel stores name is by taking the first name first, space then middle initial (if any) followed by space and then the last name. Sometimes, instead of spaces, comma is used for separations.
Moving on to the first example, as you can see there are a few names in “column A” that we want to extract and return in column B, C and, D as first name, middle initial and last name respectively.

Example 1
Note: Random sample names are used in this tutorial, just to explain how to extract values and return them in different columns.
Note that random sample names are used in this tutorial, just to explain how to extract values and return them in different columns.

Here, we will use the “Text to Column” feature which is used to separate simple cell content as first name and last name into separate columns. This feature is located under “Data” tab in “Data Tools” category. And, you can also use the keyboard shortcut “ALT + D + E” (Learn more Keyboard Shortcuts) to access the “Text to Column” wizard.

Select the range from A9 to A17 and then press “ALT + D + E”.

Note that random sample names are used in this tutorial, just to explain how to extract values and return them in different columns.

And, now we need to follow 3 easy steps, and as you can see on top of the wizard box, we are at the first step. 
Select “Delimited” 
Click on “Next” 

In the first step, we need to tell Excel that how our data is stored and formatted in the Excel file.

Now, we are in 2nd step of this wizard, and as you can see below, here we need to set the delimiters which our data contains.
Note that random sample names are used in this tutorial, just to explain how to extract values and return them in different columns.

Here you can see few “Delimiters” checkboxes; so, either you can select these check boxes or can mention the delimiter in “Other” checkbox. If your data contain some other delimiters which are not listed here. You can select one or multiple delimiters if there are more than one delimiter in your data.

Note that random sample names are used in this tutorial, just to explain how to extract values and return them in different columns.

Check “Space” delimiter
Then click on “Next”
    Note that random sample names are used in this tutorial, just to explain how to extract values and return them in different columns.
    Moving on to the last step of the “Text to column” wizard. 
    Select “General” in column data format
    Select B9 as “Destination” and lock it
    Click on “Finish”
      Note that random sample names are used in this tutorial, just to explain how to extract values and return them in different columns.

      Note that if you do not specify a new destination cell reference, the extracted columns will replace the original data.

      Now you can see that the names in “column A” have been extracted in multiple columns. But, if you look closely you will notice that in the 11th row, “Steve Smith” does not have a middle initial and his last name is moved to the middle name column.

      Note that random sample names are used in this tutorial, just to explain how to extract values and return them in different columns.

      That’s because, “Text to column” is only used to separate simple content into different cells basis on their delimiters. And, as there is only a single space in his name, it got split only in next 2 cells. This is the only drawback this feature has.

      Example 2
      Note: In the second example, we have taken “Mayor Tom C Bradley as the full name in cell H9, just to show users that when there are more than 1 initials in the middle name, the function will extract both of them.

      Now, we move on to the 2nd example, where we will use multiple functions together to get what we are looking for. This is the advanced technique of extracting “First”, “Middle” and, “Last Name” into different columns. And, to do the same, we have taken similar data in column H and, we are going to have names separated in three parts as First, Middle & Last name in column I, J and, K respectively. B
      Note that random sample names are used in this tutorial, just to explain how to extract values and return them in different columns.

      This is the best solution to consider when you want to split names into “First”, “Middle” and, “Last” but do not want to repeat the previous method every time you do that. You can put the formulas in the cells and the moment reference cell will be updated, names will be extracted automatically in specific columns where you have entered the formulas.

      To extract First Name 
      Select cell I9 
      Enter following formula without quotation “=LEFT(H9,SEARCH(” “,H9)-1)” 
      Hit Enter
        Note that random sample names are used in this tutorial, just to explain how to extract values and return them in different columns.

        And as you can see, the function has extracted the first name from H9 and returned it in cell I9 with “Mayor”. As you know, LEFT function is used to extract leftmost character and SEARCH function returns the position of the specific character it finds first in the string. So, here SEARCH function found the space first at 6th position in the string and to exclude space, we supplied negative value which helped LEFT to pick up only 5 characters.

        To extract Last Name 
        Select K9 cell 
        Enter following formula with double quotes “=TRIM(RIGHT(SUBSTITUTE(H9,” “,REPT(” “,255)),255))” 
        Hit Enter
          Note that random sample names are used in this tutorial, just to explain how to extract values and return them in different columns.

          To extract the last name, we have nested REPT, and SUBSTITUTE function inside RIGHT function. Then at last, we nested all conditions into TRIM to remove all unwanted spaces. Let’s see how all these statements worked together to return the last name.


          REPT is nested inside SUBSTITUTE which repeated single space 255 times, and then SUBSTITUTE replaced single space with 255 spaces in the supplied string. And now each initial is separated by 255 spaces and then RIGHT function is used to extract topmost 255 characters and then TRIM is used to remove all extra spaces and then return with only last initial of the name.

          To extract Middle Name 
          Now select J9 cell 
          Enter following formula without double quotes “=IF(LEN(H9)-LEN(SUBSTITUTE(H9,” “,””))>1,TRIM(SUBSTITUTE(SUBSTITUTE(H9,I9,””),K9,””)),””)” 
          Hit Enter
            Note that random sample names are used in this tutorial, just to explain how to extract values and return them in different columns.

            Update: In case you have to separate middle name which is same as the first or last name, use the following formula in column J instead of the formula mentioned above.=TRIM(MID(H9,LEN(I9)+1,LEN(H9)-LEN(I9)-LEN(K9)))
            Extracting middle initial looks quite difficult as we need to make sure that the function evaluates all conditions and extract only middle name from it. For that, we have nested LEN, SUBSTITUTE, TRIM functions inside IF
            In the first argument of IF function, logical test is checking that the length of the string without space when subtracting from the total length of the string is greater than 1 or not. When the result is TRUE, function execute the TRUE condition where SUBSTITUTE is nested inside SUBSTITUTE. Nested SUBSTITUTE is replacing the value of column I with empty text in column H and then the main SUBSTITUTE is replacing column K’s value with empty text and then to remove not required spaces, TRIM is used. And, in case IF condition does not meet the logical test, then the function would return empty text.

            This is how you can use customize functions & simple methods to extract “First Name”, “Middle Initial” & “Last Name” from cell that contains a full name.

            Prinsip Dasar Metode Akses Media


            Untuk mengakses media transmisi diperlukan cara pengaturannya karena penggunaan bersama saluran komunikasi yang jumlahnya terbatas. 
            Topologi bus/star merupakan topologi yang paling sukar dalam menentukan metode aksesnya

            1. CSMA (Carrier Sense Multiple Access)
            Protokol yang melihat adanya transmisi (carrier) disebut sebagai carrier sense protokol. 
            Bilamana waktu perambatan (propagasi) antar workstation relatif lebih lama dari waktu pengiriman (transmisi) sebuah paket, maka sebuah workstation harus menunggu cukup lama sebelum workstation yang ditujunya mengirimkan kembali konfirmasinya. 
            Selama selang waktu antara ini ada kemungkinan workstation lain juga memgirimkan paketnya sehingga keduanya akan terganggu. Kalau workstation yang berkepentingan dapat mengetahui adanya workstation lain telah melakukan transmisi maka collision (tabrakan) dapat dicegah. 
            Collision hanya terjadi bilamana dua workstation memancarkan secara bersamaan. Teknik Carrier Sense Multiple Access menggunakan cara memeriksa media transmisi terlebih dahulu sebelum melakukan transmisi. 
            Bila bebas ia dapat menyalurkan data, kalau tidak ia dapat menunggu sebentar lalu mencoba transmisi lagi. Workstation ini kemudian menunggu konfirmasi untuk jangka waktu tertentu dengan memperhitungkan waktu propagasi bolak-balik. Konfirmasi ini juga melakukan contention untuk mendapatkan kanal. 
            Sistem ini efektif bilamana waktu transmisi jauh lebih besar dari waktu propagasi. Collision terjadi bilamana dua workstation melakukan transmisi dalam waktu berdekatan (kurang dari waktu propagasi). Kalau media transmisi tidak bebas maka dapat digunakan beberapa cara untuk mengatur giliran transmisi:

             Non Persistent (Random)
            Kalau media sibuk, stasiun menunggu selama waktu tertentu misalnya berdasarkan perkiraan distribusi kemungkinan. Keuntungan kemungkinan collision berkurang. Waktu transmisi kembali yang ditentukan secara acak ini mempunyai kerugian utama bahwa ada waktu yang terbuang, walaupun saat tersebut ada stasiun lain yang ingin melakukan pengiriman.
             Persistent
            Saluran yang sibuk ditunggu sampai bebas dan segera dilakukan transmisi. Kalau terjadi collision (ditandai dengan tidak adanya konfirmasi) maka prosedur harus diulang kembali setelah menunggu beberapa saat secara sembarang (random). 
            Kalau ada dua workstation atau lebih akan mengirimkan data maka pasti terjadi collision , dan transmisi ulang akan berlangsung setelah collision ini disebut 1-persistent, karena saat saluran bebas ia pasti mengirimkan frame. 
            Waktu tunda propagasi sangat penting karena workstation kedua akan mengirimkan data segera setelah diketahui saluran bebas. Besar kemungkinannya bahwa frame yang dikirim oleh workstation lain belum tiba, sehingga dapat terjadi collision.
             p-persistent
            Kalau saluran bebas maka transmisi dilakukan dengan kemungkinan p dan setelah menunda selama satu unit waktu dengan kemungkinan (1p). Unit waktu biasanya sama dengan waktu propagasi maksimum. Bilamana saluran sibuk maka harus ditunggu sampai bebas lalu disalurkan dengan cara yang sama seperti pada saluran yang bebas.
            Besarnya p harus sedemikian rupa hingga untuk n workstation yang ingin mengirimkan paketnya make np harus lebih kecil dari 1.Efektivitas CSMA tergantung dari metode persistence yang dipilih.
            CSMA/CD (Carrier Sense Multiple Access-Collision Detection)
            Merupakan perbaikan dari CSMA. Pada CSMA bila terjadi tabrakan dua paket, media tidak dapat dipakai selama transmisi kedua paket tersebut. Perbaikannya ialah workstation terus mendengarkan saluran selama transmisi. Kalau terjadi collision maka transmisi paket dihentikan lalu diberikan sinyal yang memberitahu semua workstation bahwa terjadi kesalahan. Lalu diulang lagi setelah menunggu beberapa saat.


            2) Token-Passing
            Jaringan TokenPassing menggunakan protokol dengan token yang panjangnya 24 bit dan berpola unik secara kontinu mengelilingi suatu kalang logika. Token adalah pesan - yang memungkinkan akses yang bersirkulasi di sekitar cincin (ring). Hanya satu workstation yang dapat memperoleh kendali atas token pada satu waktu. Dalam hal ini tidak ada pengendali pusat dan semua workstation mempunyai status yang sama.
            Workstation yang mempunyai data. untuk dikirimkan pertama kali harus memperoleh kendali atas token. Akses ke token ditentukan oleh status dari sebuah bit yang berada pada
            ujung depan (leading edge) suatu token yang menunjukkan token dalam keadaan sibuk atau bebas. 
            Jika token tersebut dalam keadaan bebas, workstation yang mempunyai data akan menangkap token tersebut, mengirimkannya ke jaringan, lengkap dengan alamat dari workstation pengirim dan tujuan, dan menandai token tersebut dengan sibuk.
            Token akan meneruskan perjalanannya mengelilingi LAN. Data akan dikirimkan dalam bentuk paket. Ukuran dari kalang tetap sehingga ada waktu tunda pengiriman yang tetap di sekeliling kalang. Kalang tersebut dapat mendukung sejumlah, bit yang tetap pada satu waktu dan bit-bit ini disatukan ke dalam sejumlah paket. 
            Workstation dapat mengirimkan sebanyak mungkin token asalkan tidak melebihi waktu yang ditentukan.
            Selarna data tersebut berputar mengelilingi jaringan, alamat tujuan akan dibaca oleh setiap workstation secara bergiliran sampai workstation tujuan mengenali alamat tersebut. Workstation tersebut akan mengkopi data dan, mengembalikan paket tersebut (masih dalam keadaan penuh) ke jaringan.
            Jika paket tersebut telah berputar secara benar di dalam sebuah kalang logika dan telah kembali ke workstation asal, data akan dihapus dari paket dan token akan bebas sebelum dilewatkan ke workstation berikutnya.


            Artikel Terkait
            Komunikasi Data
            15. Topologi Jaringan Liniear Bus
            14. Media Transmisi Jaringan
            13. Perangkat Keras Jaringan 2 (Repeaters, Birdges dan Routers)
            12. Perangkat Keras Jaringan 1 (File Servers, WorkStation, NIC dan Hubs)
            11. Sistem Jaringan Lokal
            10. Kode Blok Data dan Kode Humming
            9. Unipolar, Polar dan Bipolar Line Coding dalam Slide
            8. Kode 2B1Q, Kode Blok dan Kode ASCII
            7. Unipolar Line Coding, Polar Line Coding dan Bipolar Line Coding
            4. OSI (Open System Interconnection)
            3. Aplikasi Komunikasi
            2. Pengantar Sistem komunikasi Data
            1. Glosarium Komunikasi Data.

             
            Copyright © 2013. SERVICEBYONLINE - All Rights Reserved

            Distributed By Free Blogger Templates | Lyrics | Songs.pk | Download Ringtones | HD Wallpapers For Mobile

            Proudly powered by Blogger