[Solved] Full uppercase words from partial upper case

Discuss the spreadsheet application
Post Reply
Hadrilos
Posts: 5
Joined: Wed Sep 19, 2018 5:34 pm

[Solved] Full uppercase words from partial upper case

Post by Hadrilos »

Subject : Changing full uppercase words from partial upper case words

Hi !

I have in the same collumn these Names and First names and I would like to delete the names and then in lower case. But the Uppercase letter at the
begining of every First names mess with me and I have no idea how to resolve the problem.

ex :
SOLLOGOUB Nadia
SUEUR Jean-Pierre
SUTOUR Simon
TAILLÉ-POLIAN Sophie
TEMAL Rachid
TETUANUI Lana

Have a nice day

hadrien
Last edited by Hadrilos on Thu Sep 20, 2018 1:51 pm, edited 1 time in total.
Open Office 4.1.5 on Windows 7
FJCC
Moderator
Posts: 9277
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: Changing full uppercase words from partial upper case wo

Post by FJCC »

For the example data you provided, I would insert a blank column to the right of the data then select all of the cells you want to affect and choose the menu Data -> Text to Columns. Choose the Space as the delimiter and click OK. You will then have two columns with the first names separate from the surnames. Highlight the first names and use the menu Format -> Change Case -> Lower Case.
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
User avatar
RusselB
Moderator
Posts: 6646
Joined: Fri Jan 03, 2014 7:31 am
Location: Sarnia, ON

Re: Changing full uppercase words from partial upper case wo

Post by RusselB »

Is your example what you are starting with, or what you want to end with?
If this is the data you are starting with, then please also provide an example of what you want to end with,
If it is what you want to end with, then please provide an example of what you are starting with.
If my interpretation of FJCC's reply is correct, then you could use a single extra column with the formula

Code: Select all

=LEFT(A1;FIND(" ";A1))&PROPER(MID(A1;FIND(" ";A1);LEN(A1)))
This presumes that the example shows what you want to end with.
OpenOffice 4.1.7, LibreOffice 7.0.1.2 on Windows 7 Pro, Ultimate & Windows 10 Home (2004)
If you believe your problem has been resolved, please go to your first post in this topic, click the Edit button and add [Solved] to the beginning of the Subject line.
User avatar
Lupp
Volunteer
Posts: 3553
Joined: Sat May 31, 2014 7:05 pm
Location: München, Germany

Re: Changing full uppercase words from partial upper case wo

Post by Lupp »

What about
DE GAULLE Charles
VAN DE GRAAFF Robert Jemison
?

Tasks concerning any kind of parsing depend on a syntactical specification. Otherwise we get stuck in guessing and the results will be doubtable which means BAD. You will not check every single result subsequently, will you?.
If you want to split your strings one position left of the first character for which upper case and lower case are different (lower case letter), please tell so.
I cannot easily imagine a different reasonable approach. If there is a different intention, describe it precisely.
On Windows 10: LibreOffice 24.2 (new numbering) and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
Hadrilos
Posts: 5
Joined: Wed Sep 19, 2018 5:34 pm

Re: Changing full uppercase words from partial upper case wo

Post by Hadrilos »

Hi !

Thanks for replying so fast. What I have now is :
What I have
What I have
What I want is :
What I want
What I want
Capture2.GIF (8.7 KiB) Viewed 1138 times
@Lupp, you are right, but yes i did remove all the inconvenient cells.

@JFCC, It was exactly the commandI was looking for. But it didn't work, I think that the space I see on the screen isn't a real space... I can select it but it doesn't respond as a space on the Text to Column Tool and it respond as a space when i ask for space in the Find Tool with the regular expressions checkbox activated.

When I delete this 'false space' and replace it with a spacebar space, it is recognized by the Column to Text Tool.

Is there any way in can turn all these false spaces into real one automatically ?

Thanks again for your answers.
Open Office 4.1.5 on Windows 7
User avatar
robleyd
Moderator
Posts: 5085
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: Changing full uppercase words from partial upper case wo

Post by robleyd »

Use Find and Replace, copy the 'false space' into the Find text field.

Alternatively, as I assume you are importing this data from somewhere else, give us more information on how you are getting the data into Calc; it may be possible to fix the data as it comes into Calc.
Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
Hadrilos
Posts: 5
Joined: Wed Sep 19, 2018 5:34 pm

Re: Changing full uppercase words from partial upper case wo

Post by Hadrilos »

Thanks it worked !

I copied-pasted the list from : https://www.senat.fr/senateurs/senatl.html

Should I do it differently next time ?

Thanks again
Open Office 4.1.5 on Windows 7
User avatar
Lupp
Volunteer
Posts: 3553
Joined: Sat May 31, 2014 7:05 pm
Location: München, Germany

Re: Changing full uppercase words from partial upper case wo

Post by Lupp »

Hadrilo wrote:@Lupp, you are right, but yes i did remove all the inconvenient cells.
I don't remember a question concerning removal. But, well, I pointed out an expectable problem. Technical soulutions by software should be careful about expectable errors. On the other hand, a clearly correct solution strictly based on a syntax will not exist: There may occur given names written with only one letter (upper case then), others with two upper case characters at the beginning ... The inventiveness of people concerning strange things in writing will defeat any analytic approach. The only way to get rid of problems of the kind is to keep data under a heading, "a" meaning "an appropriat one". Never allow for compound data! To replace a sound "atomisation" (in the database sense) of data by means of formatting or uncommon writing is a specifically well proven way to hell. Using the upper case to mark a family name is a plus-nice idea insofar, as it not only aggravates separation of meaningful parts from the compound, but also has the potential to spoil the correct writing of the name.

Since I had pointed to a probable solution (not covering every case, however) I want to also demonstrate it. See attachment.

By the way: -1- Never post images in such a case, but usable data. -2- Make sure that "before" and "after" are correctly associated.
Attachments
aoo95155_SplitByCase_1.ods
(17.07 KiB) Downloaded 55 times
On Windows 10: LibreOffice 24.2 (new numbering) and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
User avatar
robleyd
Moderator
Posts: 5085
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: [SOLVED] Changing full uppercase words from partial uppe

Post by robleyd »

I copied-pasted the list from https://www.senat.fr/senateurs/senatl.html

Should I do it differently next time ?
Indeed you should; the given and family names on that website are separated by non-breaking spaces, not normal spaces. I suspect this was done so the names wouldn't break onto two lines regardless of window resizing.

Next time, for that site use Paste Special, choose Unformatted text, and then choose Space as the Separator option. Sorry - I don't know what the French equivalents are. The result will be - mostly - family name in the first column and given name in the second column. You will have to tidy up a few such as de BELENET Arnaud.
Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
Post Reply