+ Reply to Thread
Results 1 to 7 of 7

Help with formula for Proper function unless word contains numerals

  1. #1
    Registered User
    Join Date
    06-03-2016
    Location
    USA
    MS-Off Ver
    2010
    Posts
    3

    Unhappy Help with formula for Proper function unless word contains numerals

    Hello everybody, I searched the forums and Google to no avail and am in need of serious help. I m by no means an Excel master.

    I have a spreadsheet with over 7,000 records. I need the data in certain columns to be in Proper case, except if the "word" contains any numerals.

    There are too many different exceptions (part numbers beginning with and containing both numerals and letters) to exclude them one by one.

    Is there any way to return the column data as proper case and ignore any words that contain any numbers entirely?

    Thank you in advance for any help / direction with this matter

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Help with formula for Proper function unless word contains numerals

    You cannot have an Excel formula refer to the cell that contains the formula, so this has to go in another column

    =IF(COUNT(FIND({0,1,2,3,4,5,6,7,8,9},A1))=0, Proper(A1), A1)

    Other than that, a simple VBA procedure can scan a column and update 'in place'

  3. #3
    Registered User
    Join Date
    06-03-2016
    Location
    USA
    MS-Off Ver
    2010
    Posts
    3

    Re: Help with formula for Proper function unless word contains numerals

    Cytop, thank you so much for the help. When I imputted this formula, it returned the data in the column exactly as it was, not in Proper case. I think I may have not described my issue properly. I have data in one column such as "JONES AB114500PL BASIC COMMERCIAL WIDGET" that I need returned as "Jones AB114500PL Basic Commercial Widget"

    I need the words containing numerals within the cell to be ignored, but all others returned as Proper Case. I cannot separate the text to columns as the word count and positions are all over the place.

  4. #4
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Help with formula for Proper function unless word contains numerals

    Then I misunderstood.

    I took "I need the data in certain columns to be in Proper case, except if the 'word' contains any numerals" to mean that if there were any numerals then the cell is not updated - at all.

    I think I'd hate to see an Excel formula to do as you ask (If one could even be constructed) - but again a relatively simple VBA procedure which can either run against a range of cells, or be called as a UDF from a cell. You don't mention if VBA is acceptable instead of a native Excel formula.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,585

    Re: Help with formula for Proper function unless word contains numerals

    You don't mention if VBA is acceptable instead of a native Excel formula.
    No, but it is posted in the Programming / VBA / Macros section, so I'd take a wild guess that it is!!!

    Like you, I think a formula is out of the question given the complexity.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Help with formula for Proper function unless word contains numerals

    posted in the Programming / VBA / Macros
    True - I got here (initially) from the 'What's New?' page. Never looked where i ended up.

    Please Login or Register  to view this content.
    Takes an optional 2nd parameter to upper case 'words' that contain a numeral - Part numbers, for example.
    Last edited by cytop; 06-03-2016 at 09:50 AM.

  7. #7
    Registered User
    Join Date
    06-03-2016
    Location
    USA
    MS-Off Ver
    2010
    Posts
    3

    Re: Help with formula for Proper function unless word contains numerals

    Actually, any way to make this happen would help a great deal. I have very basic Excel skills, but am willing and able to learn. I appreciate any help or direction given.

+ 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. [SOLVED] Formula to find the MODE and AVERAGE of Roman Numerals
    By nwb in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-27-2014, 03:47 PM
  2. [SOLVED] Convert first letter of every word to Uppercase . Not Proper casing
    By rampulaparthi in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-27-2013, 04:46 AM
  3. [SOLVED] Capitalize first letter in each word, but NOT Proper
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-24-2013, 10:38 AM
  4. Help w/ the PROPER function
    By arneson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-04-2006, 05:25 PM
  5. [SOLVED] PROPER function
    By Danielle via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2005, 05:05 PM
  6. [SOLVED] How do I use the PROPER function?
    By JE McGimpsey in forum Excel Formulas & Functions
    Replies: 36
    Last Post: 09-06-2005, 07:05 PM
  7. [SOLVED] Function for Roman Numerals
    By Gary's Student in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-27-2005, 04:06 PM

Tags for this Thread

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