+ Reply to Thread
Results 1 to 5 of 5

Embedded If functions for text values

  1. #1
    Registered User
    Join Date
    10-21-2011
    Location
    Vancouver, BC
    MS-Off Ver
    Excel 2007
    Posts
    5

    Embedded If functions for text values

    I am trying to have an if then function linking a cell to a cell on another sheet. I need the cell to be blank if the linked cell is blank, I need it to display a number if it has a number and I need it to display text if it contains text.

    I have tried: =IF('Sheet1'!A10="","",IF(ISTEXT('Sheet1'!A10),'181A'!A10,""),IF(ISNUMBER('Sheet1'!A10),'Sheet1'!A10,""))

    It seems to do text or number but not both. It gives me the error "you have entered too many arguments for this function.

    It works fine for text:
    =IF('Sheet1'!A10="","",IF(ISTEXT('Sheet1'!A10),'Sheet1'!A10,""))
    and for Numbers:
    =IF('Sheet1'!A10="","",IF(ISNUMBER('Sheet1'!A10),'Sheet1'!A10,""))

    Any Ideas?

    Thanks!
    Saybier

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Embeded If functions for text values

    Try this:

    Please Login or Register  to view this content.
    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: Embeded If functions for text values

    Try:
    Please Login or Register  to view this content.
    ConneXionLost is one fast cat...beat me to it...
    If your question has been satisfactorily addressed, please consider marking it solved. Click the Thread Tools dropdown and select Mark thread as solved.
    Also, you might want to add to the user's reputation by clicking the star icon in the lower left corner of the post with the answer- it's why we do what we do...

    Thomas Lafferty
    Analyst/Programmer

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,597

    Re: Embedded If functions for text values

    Pl try this formula

    =IF(Sheet1!A10="","",Sheet1!A10)
    If it does not work use this

    =IF('Sheet1'!A10="","",IF(ISTEXT('Sheet1'!A10),TEXT('Sheet1'!A10,"0"),IF(IF(ISNUMBER('Sheet1'!A10),value('Sheet1'!A10,""))

  5. #5
    Registered User
    Join Date
    10-21-2011
    Location
    Vancouver, BC
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Embedded If functions for text values

    That worked perfectly! Thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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