Remove Extra Spaces with the TRIM Function
Remove Extra Spaces with the TRIM Function
When text data is imported or copied into an Excel spreadsheet extra spaces can sometimes be included along with the text data.
The TRIM function can be used to remove the extra spaces from between words or other strings in Excel.
The TRIM Function’s Syntax and Arguments
A function’s syntax refers to the layout of the function and includes the function’s name, brackets, and arguments.
The syntax for the TRIM function is:
= TRIM ( Text )
Text – the data you want to remove spaces from. Although the argument can contain the actual data enclosed in quotation marks, it can also be a cell reference to the location of the text data in the worksheet.
In this tutorial we will remove extra spaces from data by using the data’s cell reference as the function’s argument.
Example: Remove Extra Spaces with the TRIM Function
For help with this example, see the image above.
Enter the following text into cell D1 (be sure to include extra spaces between the words):
Remove Extra Spaces in Excel
Click on cell D3 in the spreadsheet – this is where the function will be located.
Click on the Formulas tab of the ribbon menu.
Choose Text from the ribbon to open the function drop down list.
Click on TRIM in the list to bring up the function’s dialog box.
In the dialog box, click on the Text line.
Click on cell D1 in the spreadsheet.
Click OK.
The line of text Remove Extra Spaces in Excel should appear in cell D3 but with only one space between each word.
When you click on cell D3 the complete function = TRIM ( D1 ) appears in the formula bar above the worksheet.
create drop down list in excel
create drop down list in excel
A drop down list allows you to enter data into an Excel spreadsheet from a preset list of entries. This can be done to make data entry easier or to limit the number of acceptable choices.
Example: Creating a drop down list in Excel
- Enter the following data into cells:A1 - Gingerbread
A2 - Lemon
A3 - Oatmeal Raisin
A4 - Chocolate Chip
D2 - Cookie Type: - Click on cell E2 – the location where the results will be displayed.
- Click on the Data tab.
- Click on the Data Validation option from the ribbon to open the menu.
- Click on the Data Validation in the menu to bring up the dialog box.
- Click on Settings tab in the dialog box.
- From the Allow menu choose List.
- Click on the Source line in the dialog box.
- Drag select cells A1 – A4 in the spreadsheet.
- Click OK in the dialog box.
- A down arrow should appear next to cell E2.
- When you click on the arrow the drop down list should open to display the four cookie names.
or you can see this video :
Roda kehidupan
Before God we are all equally wise – and equally foolish
“albert einstein”
Dunia ini seperti roda yang berputar, kadang cepat kadang lambat, tergantung pengendara yang membawanya..
Andalah si pengendara, kemana roda kehidupan anda mau dibawa, tetapi ingat, posisi anda bisa berubah secepat roda.
Jangan pernah menenggakkan kepala terlalu tinggi, karna itu adalah sifat sombong,jangan pernah menundukkan kepala terlalu rendah, karna anda tidak bisa melihat jalan didepan yang banyak rintangan disana.
Jangan terlalu cepat melaju,anda bisa kehilangan pengalaman kehidupan dijalan,jangan pula terlalu pelan, anda akan tertinggal jauh dibelakang.
Jangan mengeluh karna rusaknya jalan, karna sulitnya jalan yang membuat anda kuat didepan.
Lihat ke kiri dan ke kanan, siapa tau ada yang membutuhkan anda, dan siapa tau yang di kiri dan yang di kanan bisa membantu perjalanan.
Kemenangan bukannya tercepat sampai tujuan, tapi sikap anda selama diperjalanan menuju tujuan.
Karna tujuan manusia cuma 1,kembali kepangkuan Tuhan.
excel send whole workbook by mail outlook
here the code if you want to use excel directly to sent email
Example 1
The following subroutine sends the active workbook in an e-mail message.
Read more »
Just Allah as my guardian
When I pretend to be strong, no one sees my hidden tears except Allah. When I’m sad and need a shoulder to cry on, no one supports me but Allah. Pleasing a human is very difficult, pleasing Allah is the easiest. People sometimes punish me for mistakes I have not done, Allah ignores and excuses the one that i did.
This is Allah, The Greatest, The Most Almighty, The Most Beneficent, The Most Merciful, and all praises belongs to Him.
Subhanallah…
Motivasi dirimu!
Be a great person, asked not to be relieved the burden of life, but it strengthened this body that carries
1. Doa bukanlah “ban serep” yang dapat kamu keluarkan ketika dalam masalah, tapi “kemudi” yang menunjukkan arah yang tepat.
2. Kenapa kaca depan mobil sangat besar dan kaca spion begitu kecil?
Karena masa lalu kita tidak sepenting masa depan kita.
Jadi, pandanglah ke depan dan majulah.
macro excel to find last row
to find the last row with macro excel just with this simple script :
klik macro — create macros
and type this :
sub lastrow()
Dim LastRow As Long
LastRow = Range("A65536").End(xlup).Row
end sub()
Kiat Sukses Sudono Salim
Siapa sih yang ga kenal si om ini???
bisnisman hebat yang masuk jajaran orang terkaya di dunia, paling dekat sama pak Harto lagi.
Nah ini beberapa tips bisnis dari beliau untuk kita semua pemula enterpreneur
Si om ini mendirikan Grup Salim. yang menaungi beberapa perusahaan dibawahnya :
-Indofood,
dari indomie,supermie dll adalah makanan yang 99% orang indonesia pasti nyimpan didapurnya
-Indomobil, Read more »
bikin google.com bukan google.co.id
bikin google.com bukan google.co.id
Kadang kalau kita buka browser dan ketik “google.com” maka akan langsung di redirect ke google.co.id
Yang dikarnakan simbah google sudah mulai melokalisasikan search engine nya..
tapi ada cara untuk tetap masuk ke google.com bukan ke google.co.id caranya simple.
tinggal ketik di browser anda “www.google.com/ncr”
NCR means : No Country Redirect
jadi tetap ke international search website yaitu google.com
selamat mencoba



3 Comments