+ Reply to Thread
Results 1 to 13 of 13

Removing last lowercase letters / charts question

  1. #1
    Registered User
    Join Date
    08-01-2013
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    35

    Removing last lowercase letters / charts question

    2 questions as per excel file attached below. I have Excel 2007.

    1. Any formula to remove all lowercase letters after the last uppercase letter?
    2. How do I display x-axis in chart as 'month' for both? (see excel file, you'll know what I mean..)
    Apart from having the month column inbetween all columns.

    Thanks!
    Attached Files Attached Files
    Last edited by JonSnow; 11-05-2013 at 06:35 AM. Reason: edited attachment

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Removing last lowercase letters / charts question

    for question 1:
    =SUBSTITUTE(A1,TRIM(RIGHT(SUBSTITUTE(A1,CHAR(ROW($A$65:$A$90)),REPT(" ",99)),99)),"")
    based on your text being in A1.

  3. #3
    Registered User
    Join Date
    08-01-2013
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    35

    Re: Removing last lowercase letters / charts question

    Quote Originally Posted by yudlugar View Post
    for question 1:
    =SUBSTITUTE(A1,TRIM(RIGHT(SUBSTITUTE(A1,CHAR(ROW($A$65:$A$90)),REPT(" ",99)),99)),"")
    based on your text being in A1.
    Hi yudlugar, I can't figure out how to make it work, it shows blank for me. Can you upload a spreadsheet please?

    P.S. I know it's been a while

  4. #4
    Registered User
    Join Date
    08-01-2013
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    35

    Re: Removing last lowercase letters / charts question

    Just noticed you're working on 2003.
    Spreadsheet in 2003 attached below.
    Attached Files Attached Files
    Last edited by JonSnow; 11-05-2013 at 06:36 AM. Reason: updated attachment

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Removing last lowercase letters / charts question

    Hi,

    Will your names ever contain middle names?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Removing last lowercase letters / charts question

    For the axis labels question you need to include a reference to the range containing the labels.

    The first chart has a series formula of

    =SERIES(Question1!$D$1,Question1!$C$2:$C$13,Question1!$D$2:$D$13,1)

    whereas the closed cases chart has a series formula of

    =SERIES(Question1!$E$1,,Question1!$E$2:$E$13,1)

    You can use the Select Data dialog to set range reference for Category Labels.
    Cheers
    Andy
    www.andypope.info

  7. #7
    Forum Contributor
    Join Date
    08-14-2013
    Location
    Here and there
    MS-Off Ver
    Excel 2010
    Posts
    376

    Re: Removing last lowercase letters / charts question

    In response to the first question try in cell C2: =LEFT(B2,SEARCH(" ",B2)+1)

  8. #8
    Registered User
    Join Date
    08-01-2013
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    35

    Re: Removing last lowercase letters / charts question

    Quote Originally Posted by XOR LX View Post
    Hi,

    Will your names ever contain middle names?

    Regards
    Hi,
    Yep, unfortunately they do. They also tend to have names like "Capatos de la M, Jose".
    And there is a comma inbetween surname and first name. I updated the attached files above to reflect this.

    @Andy, I'll try that asap.

    @Ursule, it works perfectly for the simple ones! I just realized there's more complicated ones, now, do you think you can update it somehow?

    Thanks for your support, guys, really appreciate it.

  9. #9
    Registered User
    Join Date
    08-01-2013
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    35

    Re: Removing last lowercase letters / charts question

    Quote Originally Posted by Andy Pope View Post
    For the axis labels question you need to include a reference to the range containing the labels.

    The first chart has a series formula of

    =SERIES(Question1!$D$1,Question1!$C$2:$C$13,Question1!$D$2:$D$13,1)

    whereas the closed cases chart has a series formula of

    =SERIES(Question1!$E$1,,Question1!$E$2:$E$13,1)

    You can use the Select Data dialog to set range reference for Category Labels.

    Can't believe I haven't seen that. It works, cheers man!

  10. #10
    Forum Contributor
    Join Date
    08-14-2013
    Location
    Here and there
    MS-Off Ver
    Excel 2010
    Posts
    376

    Re: Removing last lowercase letters / charts question

    Hi JonSnow, 2 things, first you have added some tricky names and secondly you have changed the order of the names plus you have added a comma (",") e,g, Caparros De La M, Fabio. That's changing the rules LOL ... so now let's try =LEFT(A2,SEARCH(",",A2)+2) assuming the name is in cell A1

  11. #11
    Registered User
    Join Date
    08-01-2013
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    35

    Re: Removing last lowercase letters / charts question

    Quote Originally Posted by Ursul View Post
    Hi JonSnow, 2 things, first you have added some tricky names and secondly you have changed the order of the names plus you have added a comma (",") e,g, Caparros De La M, Fabio. That's changing the rules LOL ... so now let's try =LEFT(A2,SEARCH(",",A2)+2) assuming the name is in cell A1
    Haha, yeah, I'm aware it changed things, I was hoping not too much.

    Works like a charm! Mersi frumos

    Could you briefly explain to me how your formula works?

  12. #12
    Forum Contributor
    Join Date
    08-14-2013
    Location
    Here and there
    MS-Off Ver
    Excel 2010
    Posts
    376

    Re: Removing last lowercase letters / charts question

    Buna Jon, Nu aveti pentru ce. Deci limba romana da? Actually I'm an aussie/kiwi living in Romania - go figure!

    OK more on the LEFT function: LEFT returns the first character or characters in a text string, based on the number of characters you specify. So LEFT(text, [num_chars]) =LEFT(A1,5) means look at the text in cell A1 and count 5 characters from the left. So in your case the formula was looking for the comma because the SEARCH function stipulated that, then I asked it to go 2 characters to the right of the comma which was a space plus the next character which happened to be the first letter of name.

    For more on this have a look here http://www.techrepublic.com/article/...ing-functions/

    O zi buna

  13. #13
    Registered User
    Join Date
    08-01-2013
    Location
    London, England
    MS-Off Ver
    Excel 2016
    Posts
    35

    Re: Removing last lowercase letters / charts question

    Quote Originally Posted by Ursul View Post
    Buna Jon, Nu aveti pentru ce. Deci limba romana da? Actually I'm an aussie/kiwi living in Romania - go figure!

    OK more on the LEFT function: LEFT returns the first character or characters in a text string, based on the number of characters you specify. So LEFT(text, [num_chars]) =LEFT(A1,5) means look at the text in cell A1 and count 5 characters from the left. So in your case the formula was looking for the comma because the SEARCH function stipulated that, then I asked it to go 2 characters to the right of the comma which was a space plus the next character which happened to be the first letter of name.

    For more on this have a look here http://www.techrepublic.com/article/...ing-functions/

    O zi buna
    Got it now, mersi mult pentru tot!

    O zi faina si tie

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Removing letters in a cell
    By btnhtillidie in forum Excel General
    Replies: 5
    Last Post: 04-14-2010, 10:33 PM
  2. Changing Uppercase letters to lowercase
    By tubells in forum Excel General
    Replies: 4
    Last Post: 03-17-2010, 02:12 PM
  3. Check for lowercase letters
    By Luminary Xion in forum Excel General
    Replies: 4
    Last Post: 11-17-2008, 08:59 PM
  4. capital letters to lowercase
    By Xhawk57 in forum Excel General
    Replies: 5
    Last Post: 03-09-2006, 11:40 AM
  5. [SOLVED] Removing all rows that contain letters
    By fred in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-15-2005, 12:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1