+ Reply to Thread
Results 1 to 5 of 5

Combine two IF statements in one cell

  1. #1
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,293

    Combine two IF statements in one cell

    I have just realised I need a second criteria in a calculation but cannot figure how to join them

    Please Login or Register  to view this content.
    this checks if the entered data is a delivery or a removal of goods

    I also need it to take into account ONLY deduct from H1 if D2="MHY"

    Please Login or Register  to view this content.
    Any help appreciated
    Last edited by nigelog; 10-08-2015 at 06:27 AM.

  2. #2
    Forum Contributor meus's Avatar
    Join Date
    11-25-2014
    Location
    kathmandu
    MS-Off Ver
    2010/ 2013
    Posts
    287

    Re: Combine two IF statements in one cell

    Use nested If Statement..
    Try this...
    Hope it helps..
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor meus's Avatar
    Join Date
    11-25-2014
    Location
    kathmandu
    MS-Off Ver
    2010/ 2013
    Posts
    287

    Re: Combine two IF statements in one cell

    Use nested If Statement..
    Try this...
    Hope it helps..
    Please Login or Register  to view this content.

  4. #4
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,293

    Re: Combine two IF statements in one cell

    Hi meus, had just figured it

  5. #5
    Registered User
    Join Date
    02-27-2012
    Location
    Uddevalla, Sweden
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: Combine two IF statements in one cell

    You use the AND-function if I understand correct?
    =IF(AND(A2="DELIVERY",D2="MHY"),(H1-G2),IF(A2="DELIVERY",(H1+G2),H2-G2))

+ 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. Combine 2 statements to get result into one cell
    By biznez in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-15-2015, 02:51 PM
  2. [SOLVED] Combine two With statements regarding cell formatting into one With statement
    By Jim885 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-28-2015, 08:03 PM
  3. [SOLVED] Combine 2 if statements
    By cartica in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-15-2014, 10:08 AM
  4. [SOLVED] Need help to combine to VBA Statements
    By SamCV in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-06-2013, 02:01 PM
  5. [SOLVED] Needing to combine 2 IF statements in one Cell. Time Schedule minus lunch time
    By cody_o in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-26-2013, 04:10 PM
  6. [SOLVED] Excel 2007 : Combine several IFs statements/keywords in a single cell
    By nazsha07 in forum Excel General
    Replies: 5
    Last Post: 06-20-2012, 09:43 PM
  7. Combine 2 If statements
    By m1066189 in forum Excel General
    Replies: 2
    Last Post: 06-23-2010, 07:58 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