+ Reply to Thread
Results 1 to 7 of 7

Formula Modification

  1. #1
    Forum Contributor
    Join Date
    08-25-2013
    Location
    Virginia, USA
    MS-Off Ver
    Microsoft 365 Version 2409 64-bit
    Posts
    248

    Formula Modification

    I'd like the formula in N2 to omit calculating values if the corresponding value in J3 or J4 is <-189.

    =IF(AND(D2=1,E2="L",D3=2),IF(E3="W",K3,IF(D4=3,K4*3+K3,K3)),"")
    Attached Files Attached Files
    Last edited by quibilty; 10-14-2013 at 12:07 AM.

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Formula Modification

    Try

    =IF(OR(J3<-189,J4<-189),"",IF(AND(D2=1,E2="L",D3=2),IF(E3="W",K3,IF(D4=3,K4*3+K3,K3)),""))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Contributor
    Join Date
    10-01-2013
    Location
    Cameron, Mo
    MS-Off Ver
    Excel 2010
    Posts
    113

    Re: Formula Modification

    Can you add the conditions into your and statement like this?

    =IF(AND(D2=1,E2="L",D3=2,OR(J3<-189,J4<-189)),IF(E3="W",K3,IF(D4=3,K4*3+K3,K3)),"")

  4. #4
    Forum Contributor
    Join Date
    08-25-2013
    Location
    Virginia, USA
    MS-Off Ver
    Microsoft 365 Version 2409 64-bit
    Posts
    248

    Re: Formula Modification

    That's close. The formula I'm looking for would produce "100" at N5, and "100" at N24.

  5. #5
    Forum Contributor
    Join Date
    10-01-2013
    Location
    Cameron, Mo
    MS-Off Ver
    Excel 2010
    Posts
    113

    Re: Formula Modification

    I think the one I posted is doing that, is it not doing something else you wanted?

  6. #6
    Forum Contributor
    Join Date
    08-25-2013
    Location
    Virginia, USA
    MS-Off Ver
    Microsoft 365 Version 2409 64-bit
    Posts
    248

    Re: Formula Modification

    First of all, I screwed up. I meant >-189, NOT <-189.

    Secondly, this is what got me to the formula =IF(AND(D2=1,E2="L",D3=2),IF(E3="W",K3,IF(D4=3,K4*3+K3,K3)),"")

    If: D2 = "1" & E2 = "L", check if D3 = "2". If D3 = "2" & E3 = "W" then show value of K3.

    If: D2 = "1" & E2 = "L", check if D3 = "2". If D3 = "2" & E3 = "L", check if D4 = "3". If D4 doesn't = "3" then show value of K3.

    If: D2 = "1" & E2 = "L", check if D3 = "2". If D3 = "2" & E3 = "L", check if D4 = "3". If D4 does = "3" then show value of K4 multiplied by 3 with K3 subtracted from that value ((K4*3)-K3).




    Now look at N125. The desired value is "-115" because the formula should omit ((K4*3)-K3) because J127 is NOT >-189.

    There isn't an example for it, but if the values for J127 & J126 were switched, the desired value of N125 be "-115". It would essentially be like omitting the first step of the above formula if J126 is <-189.

  7. #7
    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
    53,048

    Re: Formula Modification

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    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

+ 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. Formula Modification
    By nathanB in forum Excel General
    Replies: 3
    Last Post: 12-24-2012, 07:08 AM
  2. [SOLVED] IF formula need modification
    By nur2544 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-17-2012, 12:51 AM
  3. Modification of formula with If(Or)
    By rhudgins in forum Excel General
    Replies: 2
    Last Post: 10-17-2011, 01:11 PM
  4. formula modification
    By tofimoon4 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 06-20-2009, 05:59 AM
  5. Modification of a formula
    By ForSale in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-12-2005, 06:39 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