+ Reply to Thread
Results 1 to 3 of 3

Formula for Numbers and Text

  1. #1
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    810

    Formula for Numbers and Text

    Hi,

    I have data as shown in column A in the attached workbook.

    In column C I would like to create a formula that will assess the contents of the adjacent cell in column A and respond accordingly:

    If the data in column A is text, simply return the text string ("AAA" in my example)

    If the data in column A is a number and less than 10, return the number as text with a zero in front ("08" in my example)

    If the data in column A is a number and 10 or more, return the number as text ("12" in my example)

    Can someone please suggest a formula that will achieve this?

    Thanks!
    Attached Files Attached Files
    Last edited by andrewc; 05-10-2020 at 12:58 PM.

  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
    79,369

    Re: Formula for Numbers and Text

    In C2 copied down:

    =IF(ISTEXT(A2),A2,TEXT(A2,"00"))
    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
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    810

    Re: Formula for Numbers and Text

    Thanks very much!

+ 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: 1
    Last Post: 05-14-2015, 09:27 AM
  2. [SOLVED] all possible formula needed to convert text numbers to numbers
    By JEAN1972 in forum Excel General
    Replies: 5
    Last Post: 07-21-2014, 01:20 PM
  3. Issue Having Formula Recognizing Numbers Saved As Text As Numbers
    By livifivil in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-08-2013, 01:34 PM
  4. Replies: 1
    Last Post: 02-01-2013, 06:30 PM
  5. [SOLVED] Vlookup formula - return only numbers for cells containing text and numbers
    By Andrew E Smith in forum Excel General
    Replies: 11
    Last Post: 07-03-2012, 06:07 AM
  6. Formula to filter out text in text & numbers in a cell
    By Clueless in UK in forum Excel General
    Replies: 4
    Last Post: 11-24-2011, 07:09 AM
  7. Replies: 1
    Last Post: 04-15-2008, 01:59 AM

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