+ Reply to Thread
Results 1 to 11 of 11

How can I create a formula using the IF function for displaying a specific text in cell B1

  1. #1
    Registered User
    Join Date
    04-01-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    7

    How can I create a formula using the IF function for displaying a specific text in cell B1

    Hi everyone. I'm a newbie to IF statements. I'm using MS Excel 2010 at home.
    My question is what would be the formula using the "=IF(" function for displaying a specific text in cell B1: if cell A1: has a number entered into it with two letters entered into it immediately & automatically, following the number entered in A1:, if something is entered into A1:?

    For example: If cell A1: has the number one entered into it, with the letters "st", "rd" or "nd" added to the number in the A1: cell, if possible, then, I want to have cell B2: display the word "Floor".

    Also, if nothing is entered into A1: then cell B2: stays blank.

    Example #1: enter 1 into A1:,
    converts to "1st"
    B2: gets the word, "Floor" added to it.
    If nothing is entered into A1: then cell B2: stays blank.

    Example #2: enter 1 into A1:,
    converts to "2nd"
    B2: gets the word, "Floor" added to it.
    If nothing is entered into A1: then cell B2: stays blank.
    Thanks in advance.

    -Suzi.


    Sent from my ASUS Transformer Pad TF700T using Tapatalk

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    8,711

    Re: How can I create a formula using the IF function for displaying a specific text in cel

    What you mean
    enter 1 into A1:,converts to "1st"
    Type 1 in A1 then format it as 0"st" ?

  3. #3
    Registered User
    Join Date
    04-01-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: How can I create a formula using the IF function for displaying a specific text in cel

    Huh???

    Sent from my ASUS Transformer Pad TF700T using Tapatalk

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How can I create a formula using the IF function for displaying a specific text in cel

    Hi,

    Please clarify. Does A1 have '1' entered and you wish to see '1st', or is '1st' actually entered.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Registered User
    Join Date
    04-01-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: How can I create a formula using the IF function for displaying a specific text in cel

    A1 just has 1 entered in it. Thanks.

    Sent from my ASUS Transformer Pad TF700T using Tapatalk
    Last edited by suzukii; 04-01-2014 at 02:21 PM.

  6. #6
    Registered User
    Join Date
    04-01-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: How can I create a formula using the IF function for displaying a specific text in cel

    Help?

    Sent from my ASUS Transformer Pad TF700T using Tapatalk

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How can I create a formula using the IF function for displaying a specific text in cel

    Hi,

    I think you'll need a macro for this. Is that acceptable?

  8. #8
    Registered User
    Join Date
    04-01-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: How can I create a formula using the IF function for displaying a specific text in cel

    Not allowed to use macros. They've been disabled due to antivirus (or something like that) issues.

    Sent from my ASUS Transformer Pad TF700T using Tapatalk

  9. #9
    Registered User
    Join Date
    04-01-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: How can I create a formula using the IF function for displaying a specific text in cel

    Any help on this?

    Sent from my ASUS Transformer Pad TF700T using Tapatalk

  10. #10
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How can I create a formula using the IF function for displaying a specific text in cel

    Quote Originally Posted by suzukii View Post
    Not allowed to use macros. They've been disabled due to antivirus (or something like that) issues.

    Sent from my ASUS Transformer Pad TF700T using Tapatalk
    You can't enter 1 in A1 and expect to see '1st', enter 2 in A1 and see '2nd' , enter 3 in A1 and see '3rd' without a macro.

  11. #11
    Registered User
    Join Date
    04-01-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: How can I create a formula using the IF function for displaying a specific text in cel

    OK. Thanks for the heads up.

    Sent from my ASUS Transformer Pad TF700T using Tapatalk

+ 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. Displaying watermark text in a cell without formula
    By msry5sm2 in forum Excel General
    Replies: 1
    Last Post: 07-29-2013, 01:08 PM
  2. [SOLVED] Displaying Specific Text in Cell Based on Text in Another
    By wowcrofty in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-29-2012, 12:11 PM
  3. Text in formula bar is not displaying in cell
    By Raquel8D in forum Excel General
    Replies: 1
    Last Post: 08-29-2005, 06:05 PM
  4. RE: Text in formula bar is not displaying in cell
    By Mike in forum Excel General
    Replies: 0
    Last Post: 08-29-2005, 05:05 PM
  5. Replies: 1
    Last Post: 01-13-2005, 11: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