+ 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 Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: If function

    Hi
    please add a sheet. See yellow banner for the " how-to"

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

    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!
    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.

  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,647

    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
    184

    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)

Similar Threads

  1. COUNTUNIQUE Function in Google Sheets; Excel lacks a direct counterpart to this function?
    By PivotTablePSHomage in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-18-2018, 05:27 AM
  2. Replies: 3
    Last Post: 08-14-2017, 06:26 AM
  3. Calling function inside function. (aka nested function)
    By jakopak in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-02-2015, 05:58 AM
  4. VBA code for custom function that returns detail results of array function
    By onechipshot in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-10-2015, 06:30 PM
  5. Replies: 1
    Last Post: 06-10-2015, 12:56 PM
  6. Replies: 13
    Last Post: 04-08-2014, 05:46 AM
  7. Replies: 1
    Last Post: 03-21-2012, 11:22 AM

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