+ Reply to Thread
Results 1 to 7 of 7

if a cell has a number do this if it has a letter do that

  1. #1
    Registered User
    Join Date
    07-19-2018
    Location
    Portland, Oregon
    MS-Off Ver
    Office 16 For Mac
    Posts
    13

    if a cell has a number do this if it has a letter do that

    i cant seem to figure out how to check a cell for any letter in the us alphabet. i want my formula to put cells together in a string, but if there is no number then it needs to add one more cell to the string. any help would be great. thanks



    =IF(LEFT(G19,1)*1, C19&" "&D19&" "&E19, IF(LEFT(G19,1)*abc*, C19&" "&D19&" "&E19&" "&G19))

  2. #2
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,861

    Re: if a cell has a number do this if it has a letter do that

    Welcome to the forum!

    Have you tried using the ISNUMBER, ISTEXT and ISNONTEXT functions?
    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.

  3. #3
    Registered User
    Join Date
    07-19-2018
    Location
    Portland, Oregon
    MS-Off Ver
    Office 16 For Mac
    Posts
    13

    Re: if a cell has a number do this if it has a letter do that

    no, i have not tried that

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,911

    Re: if a cell has a number do this if it has a letter do that

    Try:

    = C19&" "&D19&" "&E19&IF(ISNUMBER(LEFT(G19,1)*1),"",G19)

  5. #5
    Registered User
    Join Date
    07-19-2018
    Location
    Portland, Oregon
    MS-Off Ver
    Office 16 For Mac
    Posts
    13

    Re: if a cell has a number do this if it has a letter do that

    that is a great way to do it, but what if it is a letter?

  6. #6
    Registered User
    Join Date
    07-19-2018
    Location
    Portland, Oregon
    MS-Off Ver
    Office 16 For Mac
    Posts
    13

    Re: if a cell has a number do this if it has a letter do that

    thank you, That was awesome

  7. #7
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,861

    Re: if a cell has a number do this if it has a letter do that

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Replies: 17
    Last Post: 07-16-2009, 03:12 AM
  2. Format:change headers from letter to number/number to letter
    By Biff in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  3. Replies: 2
    Last Post: 05-09-2005, 04: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