+ Reply to Thread
Results 1 to 9 of 9

Search Upper Case

  1. #1
    Forum Contributor
    Join Date
    02-10-2007
    MS-Off Ver
    Excel 2010
    Posts
    293

    Search Upper Case

    Hello,

    Please see attached file.

    What I'd like to do is search column a , and if finds anywhere in text an uppercase within text, display entire text, else display ""

    I tried =IF(ISERROR(FIND(" ",A2)),EXACT(A2,UPPER(A2))) but that didnt work.

    any help would be appreciated
    Attached Files Attached Files
    Last edited by VegasL; 09-25-2008 at 05:23 PM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe

    =IF(EXACT(UPPER(MID(A2,FIND("/",A2)+1,1)),MID(A2,FIND("/",A2)+1,1)),A2,"")
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    This array formula doesn't depend on the / marker. And it is slower.
    =IF(OR(ISNUMBER(FIND({"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"},A3))),A3,"")


    Array formulas are confirmed with Ctrl-Shift-Enter (Cmd+Return for Mac)
    Last edited by mikerickson; 09-25-2008 at 09:35 PM.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  4. #4
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    848
    Here is a variation of mikerickson's formula. It is an array formula and must be confirmed with Ctrl+Shift+Enter.
    Please Login or Register  to view this content.
    If you use mikerickson's formula, make sure you remove the space after the "T "


    Mike,
    I used your formula without confirming it as an array and it calculated correctly.

  5. #5
    Forum Contributor
    Join Date
    01-18-2005
    Location
    Auckland New Zealand
    MS-Off Ver
    Office Professional 2007
    Posts
    295
    I like the char(row(...)) construct, but you could also use
    =CHAR(COLUMN(A:Z)+64)
    which makes some visual sense too

  6. #6
    Forum Contributor
    Join Date
    02-10-2007
    MS-Off Ver
    Excel 2010
    Posts
    293
    thanks guys appreciate ur help...

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Why not just

    =IF(EXACT(A2,LOWER(A2)),"",A2)

  8. #8
    Forum Contributor
    Join Date
    01-18-2005
    Location
    Auckland New Zealand
    MS-Off Ver
    Office Professional 2007
    Posts
    295
    Why not indeed! great suggestion...

  9. #9
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    The EXACT/LOWER formula will display the string "+/-", which has no upper case letters.

    If strings containing no letters are not an issue, that's a very good formula.

+ 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. Spellnumber
    By Williams in forum Excel - New Users/Basics
    Replies: 13
    Last Post: 02-16-2020, 03:34 AM
  2. Numbers to Text
    By sachinattri in forum Excel General
    Replies: 6
    Last Post: 06-15-2008, 03:07 AM
  3. "Translating" numbers into words
    By Portuga in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-14-2008, 11:44 AM
  4. Auto change colour of cell when text / letter entered into cell
    By Nik_AU in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-26-2007, 07:36 AM
  5. Spell number
    By nowfal in forum Excel General
    Replies: 4
    Last Post: 08-20-2007, 04:21 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