+ Reply to Thread
Results 1 to 16 of 16

use of ifand And function

  1. #1
    Forum Contributor
    Join Date
    07-27-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    141

    use of ifand And function

    I use this formula and i get return as False.
    if i put the values in the 2 cells, i asked the formula to put 2 in one cell
    =IF(AND(B1=25,C1=50),D1=2,"") in some other cell other than these cells, i get False, but whenever i change the number to any other number, i get blank as shown in if condition. How to use, if is used in 2 conditon, as in the above example. How many if and it will support,
    What should i use, if suppose, i have to use the same two cells for different codes then how to use it . I will be glad to get the reply

  2. #2
    Forum Contributor
    Join Date
    08-14-2013
    Location
    Here and there
    MS-Off Ver
    Excel 2010
    Posts
    376

    Re: use of ifand And function

    Any chance you can put an example of the spreadsheet here

  3. #3
    Forum Contributor
    Join Date
    08-14-2013
    Location
    Here and there
    MS-Off Ver
    Excel 2010
    Posts
    376

    Re: use of ifand And function

    Sorry posted the same thing twice hence my edit!
    Last edited by Ursul; 08-15-2013 at 08:42 AM. Reason: Accidently posted it twice

  4. #4
    Forum Contributor
    Join Date
    07-27-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    141

    Re: use of ifand And function

    I do not have any example. I know that there are errors in my formula. I want to know how to use if and And condition in nested formula in excel 2007. And also i would like to have how many such nested functions, this conditions support. I got the error False if i put these two correctly in the cells and blank if i change . Where i am making error, i want to know

  5. #5
    Forum Contributor
    Join Date
    07-30-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    121

    Re: use of ifand And function

    =IF(AND(B1=25,C1=50),2,0)

    So you just need a small change to your current formula, change the D2=2 to 2
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    07-27-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    141

    Re: use of ifand And function

    Thank you for the solution. But what about the number of conditions, if suppose, the same in formula to continue for 2 more conditions, how to use it. Pl

  7. #7
    Forum Contributor
    Join Date
    08-14-2013
    Location
    Here and there
    MS-Off Ver
    Excel 2010
    Posts
    376

    Re: use of ifand And function

    That can be done just state what they are and we will able to find your solution - I hope! LOL

  8. #8
    Forum Contributor
    Join Date
    07-27-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    141

    Re: use of ifand And function

    I am asking if the same condition is modified,like =IF(AND(B1=36,C1=66),2,""), like that how to add, can i enter the formula =IF(AND(B1=25,C1=50),2,IF(AND(B1=36,C1=66),3,"")), like this how many times i can add

  9. #9
    Forum Contributor
    Join Date
    08-14-2013
    Location
    Here and there
    MS-Off Ver
    Excel 2010
    Posts
    376

    Re: use of ifand And function

    Theoretically up to 64 times (so they say - it used ti be just 7 times in older versions of Excel).

    Anyway, give it a go and if you get stuck upload the file and we'll have a look then or maybe tomorrow in my case as it's evening where I live.

    Cheers

  10. #10
    Forum Contributor
    Join Date
    07-27-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    141

    Re: use of ifand And function

    Hi, can any one suggest, how to get the result of a formula in the above example,=IF(AND(B1=25,C1=50),2,IF(AND(B1=36,C1=66),3,"")), in a nested form to get the result of 2 in a cell other than the cell for eg in D1. Can i type elsewhere in the cell to get this in D1, say in M1, and 3 in some other cell, say M25
    the example is =IF(AND(B1=25,C1=50),D1=2,IF(AND(B1=36,C1=66),b26=3,"")), I tried and got False or True value only in respective cells. How to overcome this problem. Can i have a nest if(and formula for this type of condition

  11. #11
    Forum Contributor
    Join Date
    08-14-2013
    Location
    Here and there
    MS-Off Ver
    Excel 2010
    Posts
    376

    Re: use of ifand And function

    I think this is the formula what you were looking for =IF(AND(B1=25,C1=50),2,IF(AND(B1=36,C1=66),3,"")). It is saying if cell B1 - 25 & C1 = 50, then the result will be 2, but if cell B1 = 36 and cell C1 = 66 then the result will be 3, but if cell B1 = 40 and cell C1 = say 60 then the result will be blank or as in the formula "".

    Cheers,

  12. #12
    Forum Contributor
    Join Date
    07-27-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    141

    Re: use of ifand And function

    Please see my example. I want the result in some other cell not in the present cell. If i use it i will get circular reference warning ok

  13. #13
    Forum Contributor
    Join Date
    08-14-2013
    Location
    Here and there
    MS-Off Ver
    Excel 2010
    Posts
    376

    Re: use of ifand And function

    I'm not with you - are you saying you want another new formula in a different cell than DI because nothing in your spreadsheet refers to any like that?? And I put the formula into D1 and go no circular warnings but my formula is different to yours,

    ... and please remember we are trying to help you; we don't work for you so please keep your comments civil!

  14. #14
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: use of ifand And function

    A formula can only return a value to the cell you put the formula in
    It cannot put a value in 'some other cell'

  15. #15
    Forum Contributor
    Join Date
    07-27-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    141

    Re: use of ifand And function

    Hi,sir,I did not mean that way. One of my friends wish to have a formula like that. I have given him enough hints, that formula is applicable to the cell in which it is written. Otherwise, it may only end up in saying false or true. But he is insisting in that. So, I posed that query.
    You have already given the solution to my first query, by removing the d1= in my formula. Thank you

  16. #16
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: use of ifand And function

    deleted by bvj
    Ben Van Johnson

+ 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. I need some help with an IFAnd formula; real confussed.
    By susiesc in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-25-2013, 11:19 AM
  2. [SOLVED] Using IFAND Statements
    By hettbarn in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 10-15-2012, 11:36 AM
  3. Gnatt chart - Need help with Ifand formula
    By Kristina1976 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-10-2011, 02:05 PM
  4. combine IFAND with IFERROR?
    By simplify in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-08-2009, 02:31 AM
  5. Q about: IfAnd or is it AndIf?
    By Michael Saffer in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-27-2006, 11:25 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