+ Reply to Thread
Results 1 to 5 of 5

Help with IF formula with combination of OR & And

  1. #1
    Registered User
    Join Date
    02-20-2014
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    14

    Help with IF formula with combination of OR & And

    I am trying to make a formula with following logic.

    statement . I have attached excel sheet for further explanation.





    if cell E3 is equal to "Desk" and cell d2 is equal to "buy" then cell I3 shoul show result of (F3+H2) OR if cell E3= "desk" and cell D2 is equal to "Sell" then Cell I3 should show result as (F2-H2)
    Attached Files Attached Files

  2. #2
    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. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,483

    Re: Help with IF formula with combination of OR & And

    Are you still using Excel 2003?
    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.

  3. #3
    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. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,483

    Re: Help with IF formula with combination of OR & And

    I think ...

    In H3 copied down:

    =IF(AND(E3="DESK",D3="Buy"),F3+H2,H2)

    In I3 copied down:

    =IF(AND(E3="DESK",D3="Sell"),F3-H2,I2)

  4. #4
    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
    28,369

    Re: Help with IF formula with combination of OR & And

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by JohnTopley; 08-29-2023 at 02:13 AM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  5. #5
    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. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,483

    Re: Help with IF formula with combination of OR & And

    Administrative Note:

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on at least TWO other forums and you have not told us about this. You are required to do so. Cross-posts are allowed but you must provide a link to your posts on other sites.

    Please see Forum Rule #7 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important: https://excelguru.ca/a-message-to-forum-cross-posters/

    (Note: this requirement is not optional. No help to be offered until you provide a link or, for members with fewer than 10 posts, a comment telling us where else you have posted this query.)
    Last edited by AliGW; 08-29-2023 at 03:41 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. [SOLVED] How to make the combination of numbers and total of that combination should be in range?
    By Darshan Shah in forum Excel Programming / VBA / Macros
    Replies: 38
    Last Post: 06-20-2020, 01:20 PM
  2. [SOLVED] IF Formula combination
    By Keibri in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-01-2015, 02:46 AM
  3. Replies: 2
    Last Post: 03-13-2015, 01:44 PM
  4. [SOLVED] Need help : If formula combination
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-03-2014, 04:32 AM
  5. IF formula combination
    By lfhomet in forum Excel General
    Replies: 2
    Last Post: 11-24-2009, 08:11 AM
  6. Help with a combination of formula's
    By Smiles in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-03-2006, 11:45 PM
  7. Sum and If combination formula
    By Kim via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-01-2005, 06:06 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