+ Reply to Thread
Results 1 to 12 of 12

Nested if function

  1. #1
    Forum Contributor
    Join Date
    12-23-2012
    Location
    Pakistan
    MS-Off Ver
    Microsoft office LTSC professional plus 2021 version 2403 (Build 17425.20176)
    Posts
    365

    Nested if function

    in this example i am not using the row and column header by default in the excel but created by myself and to be solved in view of this example header not the excel default header.

    SCENARIO has been mentioned inside the workbook


    REQUIRED
    the text mentioned in the highlighted area is actually formula but this in mentioned in the text form, i need this text in the excel formula
    like if i say two plus two is equal to four in the same way the text has been mentioned like this
    "Sales Tax Payable [if 17 > 25 then (17 - 25); otherwise zero] + [12 + 14b + 18 + 19 + 20 + 21 + 22 + 23 + 23a + 23b]"
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: Nested if function

    "Sales Tax Payable [if 17 > 25 then (17 - 25); otherwise zero] + [12 + 14b + 18 + 19 + 20 + 21 + 22 + 23 + 23a + 23b]"
    if 17 > 25 then (17 - 25)......etc
    are you referring to cell references, or what?

    From your file...
    if 24 = Yes then 8; if 24 = No, ...
    where will the YES/NO or whatever be shown?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    12-23-2012
    Location
    Pakistan
    MS-Off Ver
    Microsoft office LTSC professional plus 2021 version 2403 (Build 17425.20176)
    Posts
    365

    Re: Nested if function

    the cell reference i have shown on the left hand side by myself not the excel, so you may consider the reference for 24 number row i have shown in the sheet on the left hand side
    in the attachment some changes have been made


    it does not matter whatever the row reference in the actual excel sheet just dont consider that one consider mine one
    Attached Files Attached Files
    Last edited by geniusufo007; 11-15-2020 at 02:15 AM.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: Nested if function

    Quote Originally Posted by geniusufo007 View Post
    it does not matter whatever the row reference in the actual excel sheet just dont consider that one consider mine one
    actually it does matter, because excel works on cell refs, not your refs

    So far I have this, but it does not agree with your answer. perhaps this will get you headed in the right direction?

    =IF(F34="yes",F14,MIN(F14-F6,0.9*F23,F25))

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: Nested if function

    the last part...
    + {if (8-4) < "90% of 15" then 4; otherwise zero}]

    would be something like this...
    =IF(F14-F6<0.9*F23,F6,0)

  6. #6
    Forum Contributor
    Join Date
    12-23-2012
    Location
    Pakistan
    MS-Off Ver
    Microsoft office LTSC professional plus 2021 version 2403 (Build 17425.20176)
    Posts
    365

    Re: Nested if function

    yes you are right it does matter.

  7. #7
    Forum Contributor
    Join Date
    12-23-2012
    Location
    Pakistan
    MS-Off Ver
    Microsoft office LTSC professional plus 2021 version 2403 (Build 17425.20176)
    Posts
    365

    Re: Nested if function

    now you may see the attachment, I get the answer, but for this i have to add 178,942 in F10 which is already there in my tax return, that's why we are not getting the proper answer, now i just want to confirm that the formula in cell F35 is representing the text in B35, if yes then great

    second we have two more formulas in cell F36 and F42 which are to be feeded.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    12-23-2012
    Location
    Pakistan
    MS-Off Ver
    Microsoft office LTSC professional plus 2021 version 2403 (Build 17425.20176)
    Posts
    365

    Re: Nested if function

    Dear FDibbins please do the needful.

  9. #9
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,390

    Re: Nested if function

    Fdibbins is not currently online, but even if he were, you have been asked before to exercise patience.

    Administrative Note:

    We don't expect you to bump threads sooner than 24 hours after your last post or more than once a day - it has been only an hour since you posted. Please remember that those who help here do so voluntarily and of their own goodwill. They live in many different time zones and many will be out at work right now if they are not asleep on the other side of the globe. This is not a paid 'service': members will help when they are ready and able to do so, and not 'on demand'. Please do not try to put pressure of time on anyone here: if you get the help you need today, that's fine, but you really should not count on it. Thanks for your understanding and patience.
    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.

  10. #10
    Forum Contributor
    Join Date
    12-23-2012
    Location
    Pakistan
    MS-Off Ver
    Microsoft office LTSC professional plus 2021 version 2403 (Build 17425.20176)
    Posts
    365

    Re: Nested if function

    ok sorry for inconvenience

  11. #11
    Forum Contributor
    Join Date
    12-23-2012
    Location
    Pakistan
    MS-Off Ver
    Microsoft office LTSC professional plus 2021 version 2403 (Build 17425.20176)
    Posts
    365

    Re: Nested if function

    Dear I really appreciate your generous effort and expect for more generous effort at your end and hopefully you will not mind
    i am trying with the following formula in cell F36 but there is something wrong in it
    =if(f34="yes",f35>f25,(f35-f25),0),if(F34="No",(f14-f35)


    the following one is showing the FALSE result
    =IF(AND(F34="yes",F35>F25,(F35-F25),0),IF(F34="No",(F14-F35)))

  12. #12
    Forum Contributor
    Join Date
    12-23-2012
    Location
    Pakistan
    MS-Off Ver
    Microsoft office LTSC professional plus 2021 version 2403 (Build 17425.20176)
    Posts
    365

    Re: Nested if function

    Dear FDibbins thank you very much for your help. I am attaching the file for your perusal after solving the example.
    Attached Files Attached Files

+ 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: 2
    Last Post: 01-05-2019, 03:33 AM
  2. [SOLVED] Nested vlookup or nested IFAND function?
    By jeptik in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-11-2017, 02:27 AM
  3. Calling function inside function. (aka nested function)
    By jakopak in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2015, 05:58 AM
  4. COUNTIF/COUNTIFS function + nested user-defined function
    By shamjamali in forum Excel General
    Replies: 1
    Last Post: 05-12-2015, 09:12 PM
  5. [SOLVED] Nested Function With Division - Receiving #VALUE! Function Error
    By DDM64 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-17-2013, 01:16 PM
  6. [SOLVED] Nested AND function within IF function is only addressing logical1 but not logical2
    By betic in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-20-2012, 09:17 AM
  7. Offset function with nested match function not finding host ss.
    By MKunert in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-21-2006, 06:50 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