+ Reply to Thread
Results 1 to 5 of 5

Nesting IF Statements with AND/OR Functions

  1. #1
    Registered User
    Join Date
    12-22-2019
    Location
    Saudi ARabia
    MS-Off Ver
    Office 365
    Posts
    1

    Nesting IF Statements with AND/OR Functions

    Hello and Greetings to all,

    I am a new member here and would like to seek the help to get my formula correct to work on an inventory file:

    there are three counts, first count, second count and Third count for the same item. But would like to to get the count as per below:

    If second count and third count are Blank or Zero: need to get the figure of first count as the final count.
    If there is a value in second count and third count: need to get the figure of second count as the final count
    If there is a value in first count and third count: need to get the figure of third count as the final value. I have create a formula as per below and its fine with the first and second count. But its not taking care of the third count and give as false if there is a value in Third count:

    =IF(AND(G21="",F21),IF(H21="",F21),IF(G21>=0,G21 or IF(H21>0, H21)))

    Appreciate your support on this. Thank you. Thomas Mathew
    Last edited by AliGW; 12-22-2019 at 03:44 AM.

  2. #2
    Forum Moderator Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2010 on Linux
    Posts
    9,721

    Re: If function

    Hi
    please add a sheet. See yellow banner for the " how-to"
    You really don't have to give me rep points for moderating. It's part of the job. Keep rep points for those who find solutions

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    Excel 2019 (Win 10 - Work) & 365 Subscription Insider (Win 10 - Home)
    Posts
    35,381

    Re: Nestiung IF Statements with AND/OR Functions

    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. As you are new here, I have done it for you this time.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    Excel 2019 (Win 10 - Work) & 365 Subscription Insider (Win 10 - Home)
    Posts
    35,381

    Re: Nestiung IF Statements with AND/OR Functions

    Maybe try this:

    =IF(AND(G21="",H21=""),F21,IF(G21>=0,G21,IF(H21>0,H21,"")))

  5. #5
    Forum Contributor
    Join Date
    11-10-2017
    Location
    INDIA
    MS-Off Ver
    365
    Posts
    183

    Re: Nestiung IF Statements with AND/OR Functions

    =IF(AND(G21="",H21=""),F21,IF(G21="",H21,IF(AND(G21>=0,H21>=0),G21)))

    *Please mark the thread as SOLVED if solved

+ 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