+ Reply to Thread
Results 1 to 5 of 5

Help on conditional IF statement nested with ISTEXT.

  1. #1
    Registered User
    Join Date
    12-30-2010
    Location
    somewhere, USA
    MS-Off Ver
    Excel 2010
    Posts
    86

    Help on conditional IF statement nested with ISTEXT.

    I need to write a conditional formula that uses the OR function and nested inside an IF function is the ISTEXT logical condition checking to see if a cell has text. If it finds the cell has text, the condition tells the formula to check to see if it says "ATM" OR "Cash". If it satisfies either condition...the formula subtracts a certain amount from the original balance.

    When I've tried to write such a formula, I always get a !VALUE! error or formula error creation errors. Thanks in advance.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Help on conditional IF statement nested with ISTEXT.

    It would help if we had some range refereneces with which to work but let's assume numeric in A1 (balance of some sort) and text (possibly) in B1 with result to go in C1

    Please Login or Register  to view this content.
    this will Subtract the numeric value of B1 from A1 unless B1 is ATM or Cash at which point an arbitrary value of 10 is deducted.

    Adjust as necessary

    FWIW, #VALUE! errors generally result from invalid coercion - eg 10-"apple" ... apple can not be coerced to a number (a formula Null [""] is the equiv. of "apple" - ie a non-numeric string)

  3. #3
    Registered User
    Join Date
    12-30-2010
    Location
    somewhere, USA
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: Help on conditional IF statement nested with ISTEXT.

    This works okay...but I had to modify the formula to work in my spreadsheet. It turns out what I really need is a nested IF function because I have two separate conditions that could come up in the worksheet.

    For example..here's my modified formula based on your suggestion:

    =$G$11-IF(ISTEXT(E13={"paid"}),FALSE(),SUM(D13))

    But it turns out if the cell that I've assigned to have text values lists an answer called "Credit"..I'm trying to figure out how to accomplish this without adding another column to the worksheet. Otherwise I'd love to be able to add another conditional IF statement to the above formula using the condition for "Credit" to be nested inside it and apply a different result.

    Again, thanks in advance.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Help on conditional IF statement nested with ISTEXT.

    I'm not really sure how the above relates to the initial question and to be honest it doesn't make a great deal of sense to me:

    Please Login or Register  to view this content.
    will always yield a FALSE result given the Boolean generated within parentheses is not Text

    Given the above it follows you are always (in effect) subtracting SUM(D13) and therefore the below would generate the exact same result:

    Please Login or Register  to view this content.
    Perhaps best to post a sample file which illustrates set up via sample data whilst also outlining desired results as I confess I'm struggling to follow.

  5. #5
    Registered User
    Join Date
    12-30-2010
    Location
    somewhere, USA
    MS-Off Ver
    Excel 2010
    Posts
    86

    Re: Help on conditional IF statement nested with ISTEXT.

    You were right. It was doing subtraction twice regardless of result. I've re-designed the spreadsheet to account for this plus I've simplified the formula to make it easier for me to locate what I need. Thanks for the help.
    Last edited by DonkeyOte; 12-31-2010 at 06:35 AM. Reason: removed unnecessary quote

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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