+ Reply to Thread
Results 1 to 3 of 3

Help needed for NESTED IFs

  1. #1
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,785

    Help needed for NESTED IFs

    Hi to all Experts

    in my spreadsheet there are 2 cells
    E23 and F23

    in C23 I want
    1) if E23 and F23 amountts are 0 and 0 then = "Enter some values first"
    2) If E23 and F23 are not equal to each other then = "Debits and Credits are not equal"
    3) If there is no difference between them then=AmtInWords(E23)&" only" (AmtInWords is a UDF)
    I tried many combinations of nested IFs like the bellow one and all produced results for 2 conditions but not all the 3. Any help would be appreciated.

    =IF(E23=0,IF(F23=0,"Enter some values first"),IF(E23=F23,"Debits and Credits are not equal",AmtInWords(E23&" only")))
    Best Regards
    Imran Bhatti
    Teach me Excel VBA

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,944

    Re: Help needed for NESTED IFs

    Try

    =IF(AND(E23=0,F23=0),"Enter some values first",IF(E23<>F23,"Debits and Credits are not equal",AmtInWords(E23&" only")))

  3. #3
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,785

    Re: Help needed for NESTED IFs

    =IF(AND(E23=0,F23=0),"Enter some values first",IF(E23<>F23,"Debits and Credits are not equal",AmtInWords(E23)&" only"))

    Red and bold one was added to your formula and it worked for the third condition

    Thanks
    Last edited by ImranBhatti; 11-27-2016 at 11:09 AM.

+ 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. Help needed with Nested If Statements.
    By bikerpaul in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-06-2016, 07:23 AM
  2. [SOLVED] Nested IF function needed
    By Petsi in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-20-2014, 01:46 PM
  3. Help with Nested IF Formula Needed
    By financeanalyst in forum Excel General
    Replies: 4
    Last Post: 04-03-2014, 10:18 AM
  4. [SOLVED] Nested IF or IF(AND formula needed please
    By rwalker1052 in forum Excel General
    Replies: 3
    Last Post: 11-26-2013, 03:58 AM
  5. [SOLVED] Nested if statements needed?
    By khenry67 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-28-2013, 04:46 PM
  6. Nested If Formula Help Needed
    By johnsor1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-26-2012, 09:34 AM
  7. help with nested if() problem needed
    By whitegrass in forum Excel General
    Replies: 3
    Last Post: 10-15-2009, 02:16 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