+ Reply to Thread
Results 1 to 7 of 7

Problem around IF statements for multiple conditions

  1. #1
    Registered User
    Join Date
    05-22-2019
    Location
    london
    MS-Off Ver
    Office 365
    Posts
    85

    Exclamation Problem around IF statements for multiple conditions

    Hello everyone.

    I'm trying to insert a formula where I want to return a value based on

    I107 being greater than C1
    If cell R107 =BL than U107*-1
    If cell R107 =SL than cell equals U107

    Any ideas on how to do this. Included my formula

    =IF(AND(I107>$C$1,OR(R107="BL",R107="SL")),U107*1,U107*-1)

    But its not working. :-(
    Attached Images Attached Images
    Last edited by kris01; 05-22-2019 at 12:28 PM. Reason: Amend title

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Formula issue

    Try this is A107

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,843

    Re: Formula issue

    I did not understand how you got the mix of AND(...OR(...)) logic out of your description. It might be good debugging practice to use the Evaluate formula tool (https://support.office.com/en-us/art...6-a70aa409b8a7 ) and see how Excel evaluates your function.

    I would have expected two separate IF() functions nested together, where one IF() condition tests for "after the end of the month" and the other IF() condition tests for BL/SL. Maybe something like =IF(I107>$C$1,U107*IF(R107="BL",-1,1),"Before month end") Note that I am assuming that "BL" and "SL" are the only possible values for column R.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Formula issue

    If R107 have only the values SL and BL you can simplify the formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,451

    Re: Formula issue

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)

  6. #6
    Registered User
    Join Date
    05-22-2019
    Location
    london
    MS-Off Ver
    Office 365
    Posts
    85

    Re: Formula issue

    Thanks that worked perfectly.

    What would be my formula if I just wanted the below

    I107 being greater than C1
    If cell R107 =BL than "Creditors"
    If cell R107 =SL than "Debtors"
    if cell R107 =CS that "Debtors"

  7. #7
    Registered User
    Join Date
    05-22-2019
    Location
    london
    MS-Off Ver
    Office 365
    Posts
    85

    Re: Problem around IF statements for multiple conditions

    Thanks for the tip dude. Got myself in a right muddle and got confused.

+ 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. SKU Formula Issue
    By Agha Ali in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 01-02-2019, 09:58 AM
  2. Replies: 7
    Last Post: 12-15-2017, 12:14 AM
  3. Formula Issue
    By drew.parker in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-07-2017, 04:29 PM
  4. [SOLVED] SUM IF Formula issue
    By Obeitia in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-08-2016, 01:12 AM
  5. [SOLVED] OR Formula Issue
    By cunninghamtm in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 09-02-2016, 11:27 AM
  6. [SOLVED] Index Match Formula Issue - Lookup Value is a Formula
    By dodgemain in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-06-2016, 11:48 AM
  7. Lookup Formula Issue, Search issue
    By kperitz in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 04-07-2014, 01: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