What is the first letter in excel

Содержание

  1. Capitalize the first letter in Excel
  2. Capitalize the first letter by formula
  3. Capitalize the first letter with Power Query
  4. Capitalize the first letter with VBA
  5. 1 Comment
  6. Get first letter of each word in a sentence except some keywords
  7. 4 Answers 4
  8. How to capitalize first letter in Excel cells
  9. Capitalize first letter using formulas
  10. First letter Capital, lower the rest
  11. First letter Capital, disregard the rest
  12. Capitalize first letter using Text Toolkit: Change Case
  13. You may also be interested in
  14. How to Capitalize First Letter of a Text String in Excel (using Formula & VBA)
  15. Capitalize First Letter Using Formula
  16. Capitalize the First Letter of Each Word
  17. Capitalize Only the First Letter of the First Word Only
  18. Capitalize the First Letter of the First Word and Leave Everything As Is
  19. Capitalize the First Letter of the First Word and Change the Rest to Lower Case
  20. Capitalize First Letter Using VBA

Capitalize the first letter in Excel

Capitalize the first letter in Excel is very easy and you have 3 tools to do that

  • By formula
  • With Power Query
  • With VBA

Capitalize the first letter by formula

To capitalize the first letter of each word in your cells by formula, just write the PROPER function

=PROPER(B2) or =PROPER([@columnName])

But the job isn’t finished 🤔

Capitalize the first letter with Power Query

If you build a query to manipulate your data with Power Query, you can quickly capitalize the first letter of a column.

  1. Select one or more columns
  2. Right-click in the header of the columns
  3. Go to Transform
  4. Capitalize each word

This technique is much better because you don’t duplicate the contain of your column. The transformation remplaces the previous contain of the column.

Capitalize the first letter with VBA

In VBA, the code to transform your string is the following possible with the instruction StrConv and the option vbProperCase

I would suggest not using the StrConv’s vbProper method, rather, use WorksheetFunction.Proper instead.. Here are the two methods acting on the same text string. the Worksheet function method appears to be more robust (compare the output inside the parentheses and you will see what I mean).

MsgBox StrConv(«Here is (one-type of) problem.», vbProperCase)

Источник

Get first letter of each word in a sentence except some keywords

I think this one be tricky, but I wanted to hear if anybody might have a solution.

I need to create a formula which picks up the first letter in each of the words in a list of names, for instance:

the university of electronic science and technology of china

UESTC (‘the’, ‘of’, ‘and’, ‘a’ to be avoided if possible)

What I tried so far:

4 Answers 4

Good question! I think your best option is to create your own function using VBA. Add the code below to a new module in the VBA editor and you can use the function on your worksheets like this:

Which would return UESTC , as per your example

Ok, I found a somewhat ridiculous answer which is basically concatenating a lot of ifs to loop through each word (VBA would be easier here). Below formula is for up to 9 words. If your strings have more you just have to add some FIND(A1,» «)+1 . Should the formula not work for you, delete the returns in it.

If you’re using Excel 2016 or 365, which has the CONCAT function available, the following formula will work with any length of string:

Note that this is an array formula, which must be entered by double clicking into a cell, pasting the formula, then pressing CTRL+SHIFT+ENTER

It will always include the first letter of the first word, even if it is one of the key words to exclude. All other keywords are excluded. Generally the first letter of the first word should always be included, but if you need it removed as well, I can modify the formula further.

Источник

How to capitalize first letter in Excel cells

by Natalia Sharashova, updated on March 17, 2023

How can we change the case of the first letter from lower to upper in Excel cells? Do we have to type each character manually into every cell? Not anymore! Today I will share three methods of capitalizing first letters in your table.

I believe when it comes to text in Excel, one of the most commonly required tasks is to capitalize first letters in the cells. Whenever you have lists of names, products, tasks, or anything else, you will for sure have some of them (if not all) written only in small or capital letters.

In one of our previous articles we discussed how PROPER function can save the day. But since it capitalizes every word in a cell and lowers other letters, sometimes it can’t be a cure-all.

Let’s see what other options we have on the example of a shortlist of villains I like the most.

Capitalize first letter using formulas

Excel has lots of useful functions suitable for capitalizing first letter in the cells. However, you can’t have both, your data and formula that references it, in one cell. Thus, you need to create a helper column somewhere in your worksheet in order to place the formulas there. When it’s done, and calculations are made, you’ll be able to replace formulas with their values. Shall we begin?

First letter Capital, lower the rest

To make only the very first letter capital in Excel cell and lower the rest at the same time, start with inserting an additional column for the results. In my example it is column B. Right-click the column name (B) and choose Insert from the context menu. The column is inserted between A and C columns, and you can change its header name if there is one:

Put the cursor into new B2 cell and input the following formula there:

Tip. It is most likely that the rest of the rows will be populated with the adjusted formula automatically. Otherwise, you can quickly copy the formula down the column by drag-n-dropping or double-clicking that small square in the lower-right corner of the cell with a formula.

Let me explain what the formula above means:

  • UPPER(LEFT(C2,1)) converts the first letter of C2 cell to capital.
  • REPLACE function is used to make sure that the whole text is returned with one specified letter changed — the first one in our case.
  • Adding LOWER(C2) as the first argument of the REPLACE function allows us to lower all other letters:

Thus, you get properly looking cells written as sentences.

First letter Capital, disregard the rest

In order to capitalize the first letter of the cell and leave the other characters as they are, we will use the same formula as above with a little modification.

But first, again, make sure to create another column to use the formula. Then, enter the following into B2:

See, we deleted that «LOWER» part from the beginning of the formula. This little change won’t lower all the letters in a cell but will still capitalize the first one:

Tip. Don’t forget to copy the formula down if Excel hasn’t done it automatically.

Capitalize first letter using Text Toolkit: Change Case

If you decide that you need a quicker and faster way of making first letters in Excel cells capital, you will choose wisely!

Our Change Case from Text Toolkit will look over those pretty little letters of yours. It is available in the collection of 70+ toos for Excel — Ultimate Suite:

  1. Download and install Ultimate Suite collection to your PC.
  2. Run Excel and click the Change Case tool icon in the Text group under the Ablebits Data tab:

The add-in pane will appear on the left side of your Excel window.
Manually select the range of cells where you want to change case, B2:B10 in our case.

Tip. You can select the range before running the tool. It will show the selected range in the corresponding field automatically.

Note. If you want to save a copy of your data just in case, tick off the Back up the worksheet option before making any changes.

Note. When every word in a cell (except the first one) starts with a capital letter, the add-in will not only capitalize the first character, but also lower the rest.

As you can see, capitalizing letters in Excel is not rocket science. Now you can do it in a couple of mouse-clicks and enjoy the results. Feel free to leave comments and ask questions down below 🙂

You may also be interested in

Table of contents

Thank for your suggestion

I am loving this website. Could you share the formula for capitalizing each first word in every sentence? I tried the following approach:

It capitalizes the first sentence only.

Hello!
I don’t think it’s possible to do this with a regular Excel formula. We have a tool that can solve your task in a couple of clicks — Change Case tool. It is available as a part of our Ultimate Suite for Excel that you can install in a trial mode and check how it works for free.

It will see the words as proper now and make every first word capital

I downloaded from here the Ablebits suites for excel and it works perfectly.
Thanks, I am now following you for more excellent tools.
Regards

Hey! Thanks for this, was very usefull.
I have just one cuestion: ВїWhat about thar achivement of «1,1»?
I understand why you use the number 1 for this «(LEFT(C2,1)», but, for this no . «(LOWER(C2),1,1»
Regards from Argentina!
Ignacio.

Hello!
Your question is about the syntax of the REPLACE function. Read more about this in this article.

I have below text in single cell.

commercial bank of qatar
doha bank

I need output like below in single cell.

Commercial bank of qatar
Doha bank

Hello!
Have you tried the ways described in this blog post? If they don’t work for you, then please describe your task in detail, I’ll try to suggest a solution.

Currently trying to extract the last 3 letters from a specified cell, with only the first letter from those three being capitalized.
The formula I am currently using is: =UPPER(RIGHT(B4,3))

This gets me the last three letters from a specified cell, «NES», how do I edit the formula so that only the letter «N» is capitalized while «ES» is not capitalized??

Thank you very much.
The ultimate suit is really awesome, makes the work really easy.

Hi Sir im trying to use the sentence case but that dont give what i require for example (Lecture Notes in Physics: Chiral Soliton Models for Baryons (Hardcover) )im using sentence formula and i chnages these sentence as Lecture notes in physics: chiral soliton models for baryons (hardcover)

Hi Saleem,
Please have a look at this part of the article above: First letter Capital, lower the rest
If you still have difficulties, please provide the exact formula you’re using that doesn’t work for you.

Sir I need ur help in the case of how to adjust or make the first letter capital always when I’m writing any word on my excel. Tank u

Hello!
I recommend reading the article about changing case in Excel

Hi Alexander,
Thank you so much for your formula below is exactly what I am looking for!!
=PROPER(REPLACE(LOWER(C2),1,1,UPPER(LEFT(C2,1))))

(Thank you!) & (Bless you!) = Exactly what I am thinking right now
// i was just having hard times importing some book titles
Thanks again!

can you tell me which formula u did use for the casing

Sir, I need to convert multiple sentences into sentence case. Ablebits is able to do that, but one problem: if I had intentionally capitalized the first letter of a word (for example, a proper noun such as my name Selvaraj), Ablebits converts its Upper case into lower case. Selvaraj becomes selvaraj. This is not right. I just don’t what the tool to disturb any letter that I have intentionally made caps. It should only change the first letter of the sentence into caps and leave everything else undisturbed. How to resolve this? Thank you.
One more: When you use the Ablebits, it backs up the original sheet. I don’t want that. How to solve it? Thank you.

Sir, I tried using sentence case in my file and made sure that your name had remained written correctly — i.e. Selvaraj. Only the first letter of a sentence is transformed into upper case. Other letters do not change. Please see what version of Ablebits Tools you are using and compare it with the current one (https://www.ablebits.com/downloads/index.php). Perhaps you just need an update. If you have any more questions, I will be pleased to answer them.

Hi I am using your formula =REPLACE(LOWER(C2),1,1,UPPER(LEFT(C2,1)))
how to I do it if the cell has more than one word
i.e my cell has MR A G SMITH however I wish to change to to Mr A G Smith
the formula above converts it to Mr a g smith
thank you in advance

Hello Nim!
Please try the following formula:

I hope it’ll be helpful.

Very helpful, thank you

Really appreciated Mr Alex, but whats the formula if i wish the have JOHN Doe Smith in a cell?

Hello!
Have you tried using the PROPER function? What result do you want to get?

Its only offering me option of numbers of characters. But what happens to a list of names with different numbers of characters.

Hi!
The PROPER function works on any number of characters in a cell. What is the problem?

Sorry but Tyler Durden is not a villain, great otherwise.

Thank you for the help.
God Bless You! 🙂

i need a small software for a manufacturing company can u help me.

Copyright © 2003 – 2023 Office Data Apps sp. z o.o. All rights reserved.

Microsoft and the Office logos are trademarks or registered trademarks of Microsoft Corporation. Google Chrome is a trademark of Google LLC.

Источник

How to Capitalize First Letter of a Text String in Excel (using Formula & VBA)

Apart from using Excel with numeric data, a lot of people also use it with text data. It could as simple as keeping a record of names to something more complex.

When working with text data, a common task is to make the data consistent by capitalizing the first letter in each cell (or to capitalize the first letter of each word in all the cells)

In this tutorial, I will show you a couple of methods to capitalize the first letter in Excel cells.

So let’s get started!

This Tutorial Covers:

Capitalize First Letter Using Formula

There can be two scenarios where you want to capitalize:

  1. The first letter of each word
  2. Only the first letter of the first word

Capitalize the First Letter of Each Word

This one is fairly easy to do – as Excel has a dedicated function for this.

The PROPER function, whose purpose of existence is to capitalize the first letter of each word.

Suppose you have a dataset as shown below and you want to quickly convert the first letter of each word into upper case.

Below is the formula you can use:

This would capitalize the first letter of each word in the referenced cell.

Pretty straight forward!

Once you have the desired result, you can copy the cells that have the formula and paste it as values so it’s no longer linked to each other.

Capitalize Only the First Letter of the First Word Only

This one is a little more tricky than the previous one – as there is no inbuilt formula in Excel to capitalize only the first letter of the first word.

However, you can still do this (easily) with a combination of formulas.

Again, there could be two scenarios where you want to do this:

  1. Capitalize the First Letter of the First Word and leave everything as is
  2. Capitalize the First Letter of the First Word and change the rest to lower case (as there may be some upper case letter already)

The formulas used for each of these cases would be different.

Let’s see how to do this!

Capitalize the First Letter of the First Word and Leave Everything As Is

Suppose you have the below dataset and you only want to capitalize the first letter (and leave the rest as is).

Below is the formula that will do this:

The above formula uses the LEFT function to extract the first character from the string in the cell. It then uses the UPPER function to change the case of the first letter to upper. It then concatenates the rest of the string (which is extracted using the RIGHT function).

So. if there are words that already have capitalized alphabets already, these would not be changed. Only the first letter would be capitalized.

Capitalize the First Letter of the First Word and Change the Rest to Lower Case

Another scenario could be where you want to change the case of only the first letter of the first word and keep everything in lower case. This could be when you text that you want to convert to sentence case.

In this scenario, you may get some cells where the remaining text is not in the lower case already, so you will have to force the text to be converted to lower case, and then use a formula to capitalize the first letter.

Suppose you have the dataset below:

Below is the formula that will capitalize the first letter of the first word and change the rest to lower case:

Let me explain how this formula works:

  • LOWER(A2) – This converts the entire text into lower case
  • UPPER(LEFT(A2,1) – This converts the first letter of the text string in the cell into the upper case.
  • REPLACE function is used to only replace the first character with the upper case version of it.

Capitalize First Letter Using VBA

While using formulas is a quick way to manipulate text data, it does involve a few extra steps of getting the result in an additional column and then copying and pasting it as values.

If you often need to use change the data as shown in one of the examples above, you can also consider using a VBA code. With a VBA macro code, you just have to set it once and then you can add it to the Quick Access Toolbar.

This way, the next time you need to capitalize the first letter, all you need to do is select the dataset and click the macro button in the QAT.

You can even create an add-in and use the VBA code in all your workbooks (and can even share these with your colleagues).

Now let me give you the VBA codes.

Below code will capitalize the first letter of the first word and leave everything as-is:

And below is the code that will capitalize the first letter of the text and make everything else in lower case:

You need to place this VBA code in a regular module in the VB Editor

These are some methods you can use to capitalize the first letter in Excel cells. Based on the scenario, you can choose the formula method or the VBA method.

Hope you found this Excel tutorial useful.

You may also like the following Excel tutorials:

Источник

This post will guide you how to extract first letter from each word in a given cell in Excel. How do I extract the first letter of each word in a range of names in your current worksheet in Microsoft Excel 2013/2016. Assume that you have a range of First, Second and third names and you would like to extract the initials to a separate cell.

For example, one name called “Nigolas Kate”, and you want to extract the first letters so that the result would be “NK”.

extract first letter from word1

Table of Contents

  • 1. Extract First Letter from Each Word in a Cell Using User Defined Function with VBA
  • 2. Extract First Letter from Each Word in a Cell Using Formula
  • 3. Video: Extract First Letter from Each Word in a Cell in Excel

Since there is not built-in function to extract the first letter of each word in Excel, and you can define a user defined function by Excel VBA code to achieve the result. Just do the following steps:

Step1: open your excel workbook and then click on “Visual Basic” command under DEVELOPER Tab, or just press “ALT+F11” shortcut.

Get the position of the nth using excel vba1

Step2: then the “Visual Basic Editor” window will appear.

Step3: click “Insert” ->”Module” to create a new module.

convert column number to letter3

Step4: paste the below VBA code into the code window. Then clicking “Save” button.

Function ExtractFirstLetter(text) As String
    mystring = Left(text, 1)
    For i = 2 To Len(text) - 1
        If Mid(text, i, 1) = " " Then
            mystring = mystring & Mid(text, i + 1, 1)
        End If
    Next i

    ExtractFirstLetter = WorksheetFunction.Substitute(UCase(mystring), " ", "")
End Function

extract first letter from word2

Step5: back to the current worksheet, then type the following formula in a blank cell, and then press Enter key.

=ExtractFirstLetter(A1)

extract first letter from word3

If you want to extract the first letter from each word in a cell in Excel, you can use a combination of the CONCATENATE, LEFT, MID and FIND functions and return them as a concatenated string.

You need to enter the following formula in a blank cell:

=CONCATENATE(LEFT(A1,1),MID(A1,FIND(" ",A1)+1,1),IFERROR(MID(A1,FIND(" ",A1,FIND(" ",A1)+1)+1,1),""))

Press Enter to apply the formula.

You can then copy and paste the formula to apply it to other cells, or drag the fill handle to apply it to a range of cells.

Here’s how this formula works:

The LEFT function is used to extract the first letter of the first word in the cell.

The MID and FIND functions are used to extract the first letter of the second and subsequent words in the cell.

The CONCATENATE function is used to join the first letters of each word in the cell.

The IFERROR function is used to handle cells with only one or two words. If the cell has only one or two words, the formula returns the first letter of those words.

If you want to learn how to extract the first letter from each word in a cell in Excel, you can watch this video that shows you how to use a formula or a VBA code to achieve this task.

Apart from using Excel with numeric data, a lot of people also use it with text data. It could as simple as keeping a record of names to something more complex.

When working with text data, a common task is to make the data consistent by capitalizing the first letter in each cell (or to capitalize the first letter of each word in all the cells)

In this tutorial, I will show you a couple of methods to capitalize the first letter in Excel cells.

So let’s get started!

Capitalize First Letter Using Formula

There can be two scenarios where you want to capitalize:

  1. The first letter of each word
  2. Only the first letter of the first word

Capitalize the First Letter of Each Word

This one is fairly easy to do – as Excel has a dedicated function for this.

The PROPER function, whose purpose of existence is to capitalize the first letter of each word.

Suppose you have a dataset as shown below and you want to quickly convert the first letter of each word into upper case.

Data where first letter needs to be capitalized

Below is the formula you can use:

=PROPER(A2)

PROPER function to capitalize first letter of each word

This would capitalize the first letter of each word in the referenced cell.

Pretty straight forward!

Once you have the desired result, you can copy the cells that have the formula and paste it as values so it’s no longer linked to each other.

Capitalize Only the First Letter of the First Word Only

This one is a little more tricky than the previous one – as there is no inbuilt formula in Excel to capitalize only the first letter of the first word.

However, you can still do this (easily) with a combination of formulas.

Again, there could be two scenarios where you want to do this:

  1. Capitalize the First Letter of the First Word and leave everything as is
  2. Capitalize the First Letter of the First Word and change the rest to lower case (as there may be some upper case letter already)

The formulas used for each of these cases would be different.

Let’s see how to do this!

Capitalize the First Letter of the First Word and Leave Everything As Is

Suppose you have the below dataset and you only want to capitalize the first letter (and leave the rest as is).

Data where first letter needs to be capitalized

Below is the formula that will do this:

=UPPER(LEFT(A2,1))&RIGHT(A2,LEN(A2)-1)

Formula to convert first letter to capital and leave rest as is

The above formula uses the LEFT function to extract the first character from the string in the cell. It then uses the UPPER function to change the case of the first letter to upper. It then concatenates the rest of the string (which is extracted using the RIGHT function).

So. if there are words that already have capitalized alphabets already, these would not be changed. Only the first letter would be capitalized.

Capitalize the First Letter of the First Word and Change the Rest to Lower Case

Another scenario could be where you want to change the case of only the first letter of the first word and keep everything in lower case. This could be when you text that you want to convert to sentence case.

In this scenario, you may get some cells where the remaining text is not in the lower case already, so you will have to force the text to be converted to lower case, and then use a formula to capitalize the first letter.

Suppose you have the dataset below:

Dataset to capitalize first letter and keep everything else lowercase

Below is the formula that will capitalize the first letter of the first word and change the rest to lower case:

=REPLACE(LOWER(A2),1,1,UPPER(LEFT(A2,1)))

REPLACE formlula to capitalize first letter

Let me explain how this formula works:

  • LOWER(A2) – This converts the entire text into lower case
  • UPPER(LEFT(A2,1) – This converts the first letter of the text string in the cell into the upper case.
  • REPLACE function is used to only replace the first character with the upper case version of it.

One of the benefits of using a formula is that it keeps the resulting data dynamic. For example, if you have the formula in place and you make any changes in the data in column A (the original text data), the resulting data would automatically update. In case you don’t want the original data and only want to keep the final result, make sure to convert the formula to values

Capitalize First Letter Using VBA

While using formulas is a quick way to manipulate text data, it does involve a few extra steps of getting the result in an additional column and then copying and pasting it as values.

If you often need to use change the data as shown in one of the examples above, you can also consider using a VBA code. With a VBA macro code, you just have to set it once and then you can add it to the Quick Access Toolbar.

This way, the next time you need to capitalize the first letter, all you need to do is select the dataset and click the macro button in the QAT.

You can even create an add-in and use the VBA code in all your workbooks (and can even share these with your colleagues).

Now let me give you the VBA codes.

Below code will capitalize the first letter of the first word and leave everything as-is:

Sub CapitalizeFirstLetter()
Dim Sel As Range
Set Sel = Selection
For Each cell In Sel
    cell.Value = UCase(Left(cell.Value, 1)) & Right(cell.Value, Len(cell.Value) - 1)
Next cell
End Sub

And below is the code that will capitalize the first letter of the text and make everything else in lower case:

Sub CapitalizeFirstLetter()
Dim Sel As Range
Set Sel = Selection
For Each cell In Sel
    cell.Value = Application.WorksheetFunction.Replace(LCase(cell.Value), 1, 1, UCase(Left(cell.Value, 1)))
Next cell
End Sub

You need to place this VBA code in a regular module in the VB Editor

These are some methods you can use to capitalize the first letter in Excel cells. Based on the scenario, you can choose the formula method or the VBA method.

Hope you found this Excel tutorial useful.

You may also like the following Excel tutorials:

  • Convert Date to Text in Excel
  • Convert Text to Numbers in Excel
  • How to Extract a Substring in Excel (Using TEXT Formulas)
  • How to Extract the First Word from a Text String in Excel
  • Remove Characters From Left in Excel

In cell B2, type =PROPER(A2), then press Enter. This formula converts the name in cell A2 from uppercase to proper case. To convert the text to lowercase, type =LOWER(A2) instead.

Contents

  • 1 How do you capitalize first letter?
  • 2 What is the shortcut to capitalize words in Excel?
  • 3 Which Excel function capitalize only the first letter in someone’s name?
  • 4 How do you auto capitalize the first letter on a keyboard?
  • 5 How do you capitalize in Excel?
  • 6 How do you capitalize the first letter in Google Sheets?
  • 7 How do you capitalize the first letter in Excel without formula?
  • 8 Does shift F3 work in Excel?
  • 9 How do I extract the first letter of each word in a cell in Excel?
  • 10 How do you combine a first and last name in Excel?
  • 11 How do you not capitalize the first letter?
  • 12 How do you capitalize all letters in a spreadsheet?
  • 13 How do I extract the first letter of each word in Google Sheets?
  • 14 What is Ctrl D in Excel?
  • 15 What does control F5 do in Excel?
  • 16 How do you capitalize all letters?
  • 17 How do I remove the first 4 characters in Excel?
  • 18 How do I select the first two letters in Excel?

Change the capitalization or case of text

  1. Select the text for which you want to change the case.
  2. Go to Home > Change case .
  3. Do one of the following: To capitalize the first letter of a sentence and leave all other letters as lowercase, click Sentence case. To exclude capital letters from your text, click lowercase.

What is the shortcut to capitalize words in Excel?

Whenever we want to make the text all caps (uppercase), we must select the corresponding cells and press the shortcut Ctrl + Shift + A using the keyboard. The selected cells or text will be converted to uppercase instantly at one go.

Which Excel function capitalize only the first letter in someone’s name?

the function ‘PROPER’ The ‘PROPER’ function works the same way its cousins ‘LOWER’ and ‘UPPER’ do. The difference is, that it only capitalizes the first letter of each substring of text.

How do you auto capitalize the first letter on a keyboard?

To turn on auto-caps of the first word please follow these steps:

  1. Open Settings, and click/tap on Devices.
  2. Click/tap on Typing on the left side, and turn On (default) or Off Capitalize the first letter of each sentence under Touch keyboard on the right side for what you want. (

How do you capitalize in Excel?

Capitalize all letters in cells with formula

  1. Select a blank cell adjacent to the cell you want to capitalize all letters.
  2. Type formula =UPPER(A1) into the Formula Bar, then press the Enter key.
  3. Drag the Fill Handle down to the range which you need to capitalize all letters.

How do you capitalize the first letter in Google Sheets?

To capitalize the first letter of each word in Google Sheets, do the following:

  1. Type “=PROPER(” into a spreadsheet cell, as the beginning of your formula.
  2. Type “A2” (or any other cell reference) to set the reference of the cell that contains the words to be capitalized.
  3. Type “)” to complete/close your formula.

How do you capitalize the first letter in Excel without formula?

To convert the text to lowercase, type =LOWER(A2) instead. Use =UPPER(A2) in cases where you need to convert text to uppercase, replacing A2 with the appropriate cell reference.

Does shift F3 work in Excel?

“Shift + F3” keys will open Insert function window which you can insert any function of your choice. This will open the Create Names from Selection window & are used to create names from row or column labels.

But, here, I can talk about a useful way to solve this task.

  1. Extract first letter of each word from Cell with User Defined Function.
  2. Hold down the ALT + F11 keys to open the Microsoft Visual Basic for Applications window.
  3. Click Insert > Module, and paste the following code in the Module Window.< /p>

How do you combine a first and last name in Excel?

To join first and last name by merging cells, here’s what you do:

  1. Select the two columns of names you want to combine.
  2. On the Ablebits tab, in the Merge group, click the Merge Cells drop-down arrow, and choose Merge Columns into One:
  3. The Merge Cells dialog box will show up.
  4. Click the Merge button.

How do you not capitalize the first letter?

How to turn off auto-capitalization on Android

  1. On the on-screen keyboard, tap the gear icon.
  2. In the Settings menu, select “Text correction.”
  3. Swipe up on the Text Correction menu until you locate “Auto-capitalization.”
  4. Tap the slider next to “Auto-capitalization” so that it appears gray instead of blue.

How do you capitalize all letters in a spreadsheet?

In a spreadsheet cell type =UPPER( and click on the cell that contains text that you want in uppercase. Press enter. =UPPER(A1) will express what is in A1 to uppercase.

Steps (formula Explanation):-

  1. We can use the SPLIT function to split the string into three parts based on the space delimiter. =split(A2,” “)
  2. Then using the LEFT function, we can extract the first letter from each word. =ArrayFormula(left(split(A2,” “),1))
  3. Just combine the result.

What is Ctrl D in Excel?

Ctrl+D in Excel and Google Sheets
In Microsoft Excel and Google Sheets, pressing Ctrl + D fills and overwrites a cell(s) with the contents of the cell above it in a column. To fill the entire column with the contents of the upper cell, press Ctrl + Shift + Down to select all cells below, and then press Ctrl + D .

What does control F5 do in Excel?

Shortcut keys in Excel – Function Keys (6 of 8)

Key Description
F3 F3: Displays the Paste Name dialog box. Available only if names have been defined in the workbook.
Shift+F3: Displays the Insert Function dialog box.
F5 F5: Displays the Go To dialog box.
Ctrl+F5: Restores the window size of the selected workbook window.

How do you capitalize all letters?

Selecting a case

  1. Highlight all the text you want to change.
  2. Hold down the Shift and press F3 .
  3. When you hold Shift and press F3, the text toggles from sentence case (first letter uppercase and the rest lowercase), to all uppercase (all capital letters), and then all lowercase.

How do I remove the first 4 characters in Excel?

How to Remove first characters from text in Excel

  1. =REPLACE(Text, 1, N, “”)
  2. =RIGHT (Text, LEN(text)-N)
  3. =REPLACE(A2, 1, B2, “”)
  4. =RIGHT(A2,LEN(A2)-B2)

How do I select the first two letters in Excel?

B3 is the cell you extract characters from, 3 is the number of characters you want to extract. Press Enter key to get the extracted result. Then drag fill handle over the cells to apply this formula. B9 is the cell you extract characters from, 6 is the number of characters you want to extract.

Ok, I found a somewhat ridiculous answer which is basically concatenating a lot of ifs to loop through each word (VBA would be easier here). Below formula is for up to 9 words. If your strings have more you just have to add some FIND(A1," ")+1. Should the formula not work for you, delete the returns in it.

=IFERROR(UPPER(
IF(LEN(A1)-LEN(SUBSTITUTE(A1," ",""))+1>=1,IFERROR(IF(SUM(--(LEFT(A1,FIND(" ",A1)-1)={"the","of","a","and"})),"",LEFT(A1,1)),LEFT(A1,1)),"")&
IF(LEN(A1)-LEN(SUBSTITUTE(A1," ",""))+1>=2,IF(SUM(--(MID(A1,FIND(" ",A1)+1,IFERROR(FIND(" ",A1,FIND(" ",A1)+1),LEN(A1))-(FIND(" ",A1)+1))={"the","of","a","and"})),"",MID(A1,FIND(" ",A1)+1,1)),"")&
IF(LEN(A1)-LEN(SUBSTITUTE(A1," ",""))+1>=3,IF(SUM(--(MID(A1,FIND(" ",A1,FIND(" ",A1)+1)+1,IFERROR(FIND(" ",A1,FIND(" ",A1,FIND(" ",A1)+1)+1),LEN(A1))-(FIND(" ",A1,FIND(" ",A1)+1)+1))={"the","of","a","and"})),"",MID(A1,FIND(" ",A1,FIND(" ",A1)+1)+1,1)),"")&
IF(LEN(A1)-LEN(SUBSTITUTE(A1," ",""))+1>=4,IF(SUM(--(MID(A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1)+1)+1)+1,IFERROR(FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1)+1)+1)+1),LEN(A1))-(FIND(" ",A1,FIND(" ",A1,FIND(" ",A1)+1)+1)+1))={"the","of","a","and"})),"",MID(A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1)+1)+1)+1,1)),"")&
IF(LEN(A1)-LEN(SUBSTITUTE(A1," ",""))+1>=5,IF(SUM(--(MID(A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1)+1)+1)+1)+1,IFERROR(FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1)+1)+1)+1)+1),LEN(A1))-(FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1)+1)+1)+1)+1))={"the","of","a","and"})),"",MID(A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1)+1)+1)+1)+1,1)),"")&
IF(LEN(A1)-LEN(SUBSTITUTE(A1," ",""))+1>=6,IF(SUM(--(MID(A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1)+1)+1)+1)+1)+1,IFERROR(FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1)+1)+1)+1)+1)+1),LEN(A1))-(FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1)+1)+1)+1)+1)+1))={"the","of","a","and"})),"",MID(A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1)+1)+1)+1)+1)+1,1)),"")&
IF(LEN(A1)-LEN(SUBSTITUTE(A1," ",""))+1>=7,IF(SUM(--(MID(A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1)+1)+1)+1)+1)+1)+1,IFERROR(FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1)+1)+1)+1)+1)+1)+1),LEN(A1))-(FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1)+1)+1)+1)+1)+1)+1))={"the","of","a","and"})),"",MID(A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1)+1)+1)+1)+1)+1)+1,1)),"")&
IF(LEN(A1)-LEN(SUBSTITUTE(A1," ",""))+1>=8,IF(SUM(--(MID(A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1)+1)+1)+1)+1)+1)+1)+1,IFERROR(FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1)+1)+1)+1)+1)+1)+1)+1),LEN(A1))-(FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1)+1)+1)+1)+1)+1)+1)+1))={"the","of","a","and"})),"",MID(A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1)+1)+1)+1)+1)+1)+1)+1,1)),"")&
IF(LEN(A1)-LEN(SUBSTITUTE(A1," ",""))+1>=9,IF(SUM(--(MID(A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1)+1)+1)+1)+1)+1)+1)+1)+1,IFERROR(FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1)+1)+1)+1)+1)+1)+1)+1)+1),LEN(A1))-(FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1)+1)+1)+1)+1)+1)+1)+1)+1))={"the","of","a","and"})),"",MID(A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1,FIND(" ",A1)+1)+1)+1)+1)+1)+1)+1)+1,1)),"")
),"")

05-30-2005, 06:05 AM


#1

How do I get the first letter of a word in excel

I have this problem, see I want to create a script, I have the following
information available to me.

First name: John
MI: C
Last name: Doe

Now this is what I want; I want to convert this John C. Doe to «jcdoe». Also
I have similar problems to with dual last names, like dela toya, I have to
convert from juan r. dela toya to jrdelatoya. How do I do that? Thanks!!


05-30-2005, 07:05 AM


#4

Re: How do I get the first letter of a word in excel

=left(«john»,1)&»cdoe»

if john is in A1 you can use A1 instead of «john»

Shadowofthedarkgod <Shadowofthedarkgod@discussions.microsoft.com> wrote in
message news:2E8449C4-6F45-4D05-92FF-16D837C3F9D9@microsoft.com…


>
> I have this problem, see I want to create a script, I have the following
> information available to me.
>
> First name: John
> MI: C
> Last name: Doe
>
> Now this is what I want; I want to convert this John C. Doe to «jcdoe».

Also
> I have similar problems to with dual last names, like dela toya, I have to
> convert from juan r. dela toya to jrdelatoya. How do I do that? Thanks!!


05-30-2005, 07:05 AM


#5

Re: How do I get the first letter of a word in excel

Hi

There are no exact naming standards, so there is no bomb proof way to parse
names correctly. But if you have Outlook on your system, try this one:

http://www.*****-blog.com/archives/2…-with-outlook/

HTH. Best wishes Harald

«Shadowofthedarkgod» <Shadowofthedarkgod@discussions.microsoft.com> skrev i
melding news:2E8449C4-6F45-4D05-92FF-16D837C3F9D9@microsoft.com…


>
> I have this problem, see I want to create a script, I have the following
> information available to me.
>
> First name: John
> MI: C
> Last name: Doe
>
> Now this is what I want; I want to convert this John C. Doe to «jcdoe».

Also
> I have similar problems to with dual last names, like dela toya, I have to
> convert from juan r. dela toya to jrdelatoya. How do I do that? Thanks!!


05-30-2005, 07:05 AM


#6

Re: How do I get the first letter of a word in excel

Sorry for clicking Send too fast. You may also need:
=LEFT(A1,1)
returns the first letter from A1.
=LOWER(A1)
converts to lowercase.
=SUBSTITUTE(A1,» «,»»)
removes spaces.

HTH. Best wishes Harald

«Shadowofthedarkgod» <Shadowofthedarkgod@discussions.microsoft.com> skrev i
melding news:2E8449C4-6F45-4D05-92FF-16D837C3F9D9@microsoft.com…


>
> I have this problem, see I want to create a script, I have the following
> information available to me.
>
> First name: John
> MI: C
> Last name: Doe
>
> Now this is what I want; I want to convert this John C. Doe to «jcdoe».

Also
> I have similar problems to with dual last names, like dela toya, I have to
> convert from juan r. dela toya to jrdelatoya. How do I do that? Thanks!!


05-30-2005, 08:05 AM


#7

Re: How do I get the first letter of a word in excel

This doesn’t account for every possibility, but does take care of the
examples given … plus a couple not mentioned:

=IF(ISERR(FIND(«. «,A1)),LEFT(A1)&MID(SUBSTITUTE(A1,» «,»»),FIND(«
«,A1),25),LEFT(A1)&MID(SUBSTITUTE(SUBSTITUTE(A1,». «,»»),» «,»»),FIND(«
«,A1),25))

Watch out for word-wrap!

HTH,

RD

—————————————————————————
Please keep all correspondence within the NewsGroup, so all may benefit !
—————————————————————————

«Shadowofthedarkgod» <Shadowofthedarkgod@discussions.microsoft.com> wrote in
message news:2E8449C4-6F45-4D05-92FF-16D837C3F9D9@microsoft.com…


>
> I have this problem, see I want to create a script, I have the following
> information available to me.
>
> First name: John
> MI: C
> Last name: Doe
>
> Now this is what I want; I want to convert this John C. Doe to «jcdoe».

Also
> I have similar problems to with dual last names, like dela toya, I have to
> convert from juan r. dela toya to jrdelatoya. How do I do that? Thanks!!


05-30-2005, 08:05 AM


#8

Re: How do I get the first letter of a word in excel

Here is one way.

Enter this code in a standard code module

‘———————————————————————
Private Function RESubString(Inp As String, _
Pattern As String, _
Optional N As Long = 0) As String
‘———————————————————————
Dim oRegExp As Object, m As Object

On Error GoTo RE_error
Set oRegExp = CreateObject(«VBScript.RegExp»)
oRegExp.Pattern = Pattern
oRegExp.Global = True
Set m = oRegExp.Execute(Inp)
RESubString = IIf(m.Count > 0, m(N).Value, «»)
GoTo RE_Exit
RE_error:
RESubString = «RE Error»
RE_Exit:
Set oRegExp = Nothing
On Error GoTo 0
End Function

‘———————————————————————
Public Function ConvertName(nme As String)
‘———————————————————————
‘ Function: Extracts the last name from a names string, and the other
‘ first letters
‘———————————————————————
Dim sRegExp As String
Dim arynames
Dim sLastName As String
Dim sFirtsNames As String
Dim sTemp As String
Dim i As Long

sRegExp =
«b([a-z]+s+)*[A-Z](w+S?)*([-‘][A-Z](w+S?)*)?b(?=(s+([JS]r.?|[IVX]+)
)?s*$|,)»
sLastName = Replace(RESubString(nme, sREgExp), » «, «»)
sFirstnames = Left(nme, Len(nme) — Len(sLastName))
arynames = Split(sFirstnames, » «)
For i = LBound(arynames) To UBound(arynames)
sTemp = sTemp & Left(arynames(i), 1)
Next i
ConvertName = LCase(sTemp & sLastName)
End Function

and then use in the worksheet like so

=ConvertName(A1)


HTH

Bob Phillips

«Shadowofthedarkgod» <Shadowofthedarkgod@discussions.microsoft.com> wrote in
message news:2E8449C4-6F45-4D05-92FF-16D837C3F9D9@microsoft.com…


>
> I have this problem, see I want to create a script, I have the following
> information available to me.
>
> First name: John
> MI: C
> Last name: Doe
>
> Now this is what I want; I want to convert this John C. Doe to «jcdoe».

Also
> I have similar problems to with dual last names, like dela toya, I have to
> convert from juan r. dela toya to jrdelatoya. How do I do that? Thanks!!


05-30-2005, 10:05 PM


#9

RE: How do I get the first letter of a word in excel

Thanks for all the reply. However, I forgot to add how about dual names or
even three names? Let’s say, michelle carmen rose c. peters, it has to be
mcrcpeters. Thanks for the dual last names reply!


Capitalize the first letter in Excel is very easy and you have 3 tools to do that

  • By formula
  • With Power Query
  • With VBA

Data to capitalize

Capitalize the first letter by formula

To capitalize the first letter of each word in your cells by formula, just write the PROPER function

=PROPER(B2) or =PROPER([@columnName])

Capitalize first letter with formula

But the job isn’t finished 🤔

You must also transform the result of the formula into values with the tool copy/paste special (option values)

Paste Special Values

Capitalize the first letter with Power Query

If you build a query to manipulate your data with Power Query, you can quickly capitalize the first letter of a column.

  1. Select one or more columns
  2. Right-click in the header of the columns
  3. Go to Transform
  4. Capitalize each word

Capitalize the first letter with Power Query

This technique is much better because you don’t duplicate the contain of your column. The transformation remplaces the previous contain of the column.

Capitalize the first letter with VBA

In VBA, the code to transform your string is the following possible with the instruction StrConv and the option vbProperCase

Sub Capitalize_First_Letter()
Dim MyText As String
Dim i As Long
    For i = 2 To 11
        Cells(i, 2) = StrConv(Cells(i, 2), vbProperCase)
    Next
End Sub

Sometimes we need to follow the standards of English writings even in Excel (which I am not good at). One of the basic standards of English writing is having the first letter of the sentence in Capital. So how do we capitalize the first letter in each cell?

In this article, we will learn how to make the first letter in uppercase in every cell of Excel.

The generic formula for making the first letter of cell capital is:

=UPPER(LEFT(text))&MID(text,2,LEN(text))

Text: It is the text of which you want to capitalize the first letter.

Let’s get this Formula some job.

Example: Capitalize the first letter of Sentance in Excel

Here, we have a sheet that contains some text values (keyword of this article). Each Cell contains one sentence. We need to capitalize the first letter of each sentence.

Write this formula in cell C3:

=UPPER(LEFT(B3))&MID(B3,2,LEN(B3))

Hit the enter button. You will have the first letter capitalized in C3. Drag this formula down to make the first letter uppercase in each sentence.

How does it work?

It is simple. We have two segments of formula. The first segment (UPPER(LEFT(B3)) capitalizes the first letter of a sentence. How? The LEFT function gets the first letter of the cell. The UPPER function makes it uppercase.

The other segment [MID(B3,2,LEN(B3))] concatenates the rest of the sentence to the uppercase letter.  The LEN function gets the total number of characters and MID function gets the text starting from 2nd character to rest of the text.

Finally, the concatenation operator & concatenates them.

Alternative Method

In this method, we use the RIGHT function instead of the MID function to get the rest of the text as it is.

=UPPER(LEFT(B3))&RIGHT(B3,LEN(B3)-1)

If you want to capitalize the first letter of each word in the sentence then simply use the PROPER function.

So yeah guys, this how you can capitalize first letter of each cell in excel. I hope it was explanatory and useful to you. If you have any doubts regarding this article or have any other excel/VBA related topic doubt, ask in the comments section below.

Related Articals:

How to Use UPPER function in Excel | The UPPER function in excel is used to capitalize all letters of a string. In this article, we will explore how you can use the UPPER function to do some really important tasks.

Validate only uppercase in data validation | To allow only upper case entries in Excel we can use conditional data validation. By using excel EXACT functions as key function along with function…

How to do Case Sensitive Lookup in Excel | The VLOOKUP function is not a case sensitive function. To lookup case sensitive values we can use EXACT function.

Extract Text From A String In Excel Using Excel’s LEFT And RIGHT Function |  To extract text from strings we normally use RIGHT and LEFT function. These function give a lot of control while manipulating texts.

Popular Articles:

50 Excel Shortcuts to Increase Your Productivity | Get faster at your task. These 50 shortcuts will make you work even faster on Excel.

How to use Excel VLOOKUP Function| This is one of the most used and popular functions of excel that is used to lookup value from different ranges and sheets. 

How to use the Excel COUNTIF Function| Count values with conditions using this amazing function. You don’t need to filter your data to count specific value. Countif function is essential to prepare your dashboard.

How to Use SUMIF Function in Excel | This is another dashboard essential function. This helps you sum up values on specific conditions.

Понравилась статья? Поделить с друзьями:
  • What is the file extension for word
  • What is the file extension for ms excel
  • What is the figurative meaning of a word
  • What is the derivative of the word practice
  • What is the derivational structure of a word