+ Reply to Thread
Results 1 to 5 of 5

Connecting 2 IF(AND) statements

  1. #1
    Registered User
    Join Date
    10-20-2012
    Location
    Minnesota, USA
    MS-Off Ver
    Excel 2010
    Posts
    18

    Unhappy Connecting 2 IF(AND) statements

    Greetings-

    I am working on a spreadsheet and I need to know how to connect 2 IF(AND) formulas/statements. I have tried several ways to connect the two formulas into one but I just can't figure it out.

    I have attached the spreadsheet I am working on. Basically, in want to combine the 2 IF(AND) formulas in cells K3 & K5 so that when the route count is changed from 1 to 2, the amount will also change from $40 (when 2 is imputed) to $20 (when 1 is imputed). Just a side note, when a date is entered into cell I, then the formula is correct in displaying $0.00.

    Thanks in advance for your help!
    Attached Files Attached Files
    Last edited by Speedyjrr; 05-27-2013 at 08:22 PM.

  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,936

    Re: Connecting 2 IF(AND) statements

    Not sure I understand what you want, but try this...

    =IF(AND(H3="Yes",I3="Yes"),J3*20,0)
    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
    Registered User
    Join Date
    10-20-2012
    Location
    Minnesota, USA
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Connecting 2 IF(AND) statements

    Here in a nut shell is what I am looking to do. I have these 2 formulas and I want to put them together so that depending on what is entered in cells H, I and J will return the correct result.

    =IF(AND(H3="Yes",I3="Yes",J3=2),40,0)
    =IF(AND(H5="Yes",I5="Yes",J5=1),20,0)

    For instance, the formula in row 3 is correct for the route status of 2, but is a one is entered as a 1, then the output of the formula should be $20.00 as in row 6.

  4. #4
    Registered User
    Join Date
    10-20-2012
    Location
    Minnesota, USA
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Connecting 2 IF(AND) statements

    I just tried the formula you gave and it worked! I never would have thought of that! I've been working on this for about a week and a half and I guess I was making to way to complicated!

  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,936

    Re: Connecting 2 IF(AND) statements

    Happy to help

+ 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