+ Reply to Thread
Results 1 to 8 of 8

Issue with IF formula in Excel

  1. #1
    Forum Contributor
    Join Date
    07-04-2018
    Location
    Dallas
    MS-Off Ver
    MS 365 Version 2302
    Posts
    209

    Issue with IF formula in Excel

    Hi,

    I need to write a formula which will check 2 conditions,

    1. If one cell value is 'JE' then
    2. If another cell value is not 'ARC','SPL' then
    value 'TYPE' else 'OTHER'


    IF(AND('Detail'!$B$3="JE",IF(NOT(OR('JE Detail'!$B$6 = "ARC",'JE Detail'!$B$6 = "SPL","",""),"TYPE","OTHER")))

    This is not giving correct value as I have not given any values for NOT(OR) statement. But, I need the result to be based on B3 and B6 cells, not just B6.

    Any suggestions are highly appreciated.
    Last edited by BMD4; 08-14-2018 at 10:57 PM.

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,910

    Re: Excel formula with nested IF

    Please take a moment to re-read forum rule #1 and then amend your thread title to something that better explains your problem. Changing your thread title is not optional, which means you must change it. Thanks!

    • Use concise, accurate thread titles.
    • Your post title should 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 tell us nothing.
    • Responding to a request to change your thread title by doing so is mandatory.

    To change a title go to your first post, click EDIT then Go Advanced and change your title.

    No help to be offered, please, until the OP complies with this request.
    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 Contributor
    Join Date
    07-04-2018
    Location
    Dallas
    MS-Off Ver
    MS 365 Version 2302
    Posts
    209

    How to Correctly Use AND & OR in an IF Statement

    Hi,

    Updated the title
    Last edited by BMD4; 08-15-2018 at 02:05 AM.

  4. #4
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,910

    Re: Issue with IF formula in Excel

    Change it to this, please:

    "How to Correctly Use AND & OR in an IF Statement"

  5. #5
    Forum Contributor
    Join Date
    07-04-2018
    Location
    Dallas
    MS-Off Ver
    MS 365 Version 2302
    Posts
    209

    Re: Issue with IF formula in Excel

    changed the title

  6. #6
    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,938

    Re: Issue with IF formula in Excel

    (change should have been done in 1st post, but no biggy - this time )

    Hard to say for sure without some data to work with, but maybe...
    =IF(AND('Detail'!$B$3="JE",'JE Detail'!$B$6 <> "ARC",'JE Detail'!$B$6 <>= "SPL"),"TYPE","OTHER")
    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

  7. #7
    Valued Forum Contributor jtakw's Avatar
    Join Date
    05-05-2018
    Location
    CA, USA
    MS-Off Ver
    2016
    Posts
    668

    Re: Issue with IF formula in Excel

    Hi,

    Ford, I was going to post that exact same formula for OP, but was waiting for MOD/ADMIN approval of the Title change...

  8. #8
    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,938

    Re: Issue with IF formula in Excel

    Quote Originally Posted by jtakw View Post
    Hi,

    Ford, I was going to post that exact same formula for OP, but was waiting for MOD/ADMIN approval of the Title change...
    OP changed the title in post 3, instead of post 1. I took that to mean compliance with Ali's request, albeit in the wrong post

+ 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] Excel Nested IF formula help needed
    By engine44 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-24-2015, 12:49 PM
  2. [SOLVED] Excel formula nested in Macro
    By rdowney79 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-20-2013, 04:44 PM
  3. [SOLVED] Excel nested formula?
    By SAMPCUK in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-07-2012, 07:13 PM
  4. Excel IF Nested Formula
    By hamburg18w in forum Excel General
    Replies: 2
    Last Post: 03-15-2011, 11:41 AM
  5. excel formula with nested if
    By nidabp in forum Excel General
    Replies: 11
    Last Post: 05-06-2010, 04:04 AM
  6. Nested IFs In Excel Formula
    By Sean04 in forum Excel General
    Replies: 2
    Last Post: 02-04-2010, 05:37 PM
  7. Replies: 6
    Last Post: 11-10-2005, 01:15 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