ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Extract 1st word and in capitals (https://www.excelbanter.com/excel-programming/290450-extract-1st-word-capitals.html)

Robert Gillard

Extract 1st word and in capitals
 
I have a list in column B that looks like this

Jones Fred
Brown Al
Daniels Bert

what I want to end up with is

JONES
BROWN
DANIELS

so in short I need to extract the first word of the cell and it needs to be
in capital letters.

What is the best way to do this please.


Bob



Frank Kabel

Extract 1st word and in capitals
 
Hi Robert
try
=UPPER(LEFT(A1,FIND(" ",A1)-1))

Frank

Robert Gillard wrote:
I have a list in column B that looks like this

Jones Fred
Brown Al
Daniels Bert

what I want to end up with is

JONES
BROWN
DANIELS

so in short I need to extract the first word of the cell and it needs
to be in capital letters.

What is the best way to do this please.


Bob




Carlos[_2_]

Extract 1st word and in capitals
 
try in C1 if Jones ... in B1

=UPPER(LEFT(B1;FIND(" ";B1) or

to be sure with space char

UPPER(LEFT(TRIM(B1);FIND(" ";TRIM(B1))

"Robert Gillard" wrote in message
...
I have a list in column B that looks like this

Jones Fred
Brown Al
Daniels Bert

what I want to end up with is

JONES
BROWN
DANIELS

so in short I need to extract the first word of the cell and it needs to

be
in capital letters.

What is the best way to do this please.


Bob





Robert Gillard

Extract 1st word and in capitals
 
Perfect thanks Frank

Bob


"Frank Kabel" wrote in message
...
Hi Robert
try
=UPPER(LEFT(A1,FIND(" ",A1)-1))

Frank

Robert Gillard wrote:
I have a list in column B that looks like this

Jones Fred
Brown Al
Daniels Bert

what I want to end up with is

JONES
BROWN
DANIELS

so in short I need to extract the first word of the cell and it needs
to be in capital letters.

What is the best way to do this please.


Bob







All times are GMT +1. The time now is 04:01 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com