+ Reply to Thread
Results 1 to 6 of 6

IF AND Formulas with two sets of functions

  1. #1
    Registered User
    Join Date
    01-20-2010
    Location
    None of your Business
    MS-Off Ver
    None
    Posts
    26

    IF AND Formulas with two sets of functions

    Here is basically what I am attempting to achieve but I am struggling to get it to work.

    I will keep it simple as I have a lot of data!

    In my table i have columns such as Horse Age, Course, Course Win and so on and what I want it this....

    =IF(AND([Horse Age]=[@[Horse Age]],[Course]=[@Course],[Course Win]=[@[Course Win]]) Equal or Greater than 10

    =IF(AND([Horse Age]=[@[Horse Age]],[Course]=[@Course],[Course Win]=[@[Course Win]],[Result]="Won") Equals 0

    What I need to do is combine these two formulas so if they both achieve there targets then the cells produces an "F" or if not then a "P". I also want to use more than one formula in the cell, so multiply formula's which will produce an "F" at the first target reached and a "P" if none of those reached the target. I am pretty sure I will be able to sort out the multiply formula's once I know how to get the first one working.

    Thank You in advanced for any help.
    Last edited by Zipmeister; 07-26-2012 at 07:22 AM.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: IF AND Formulas with two sets of functions

    Hi Zipmeister,

    =IF(AND([Horse Age]=[@[Horse Age]],[Course]=[@Course],[Course Win]=[@[Course Win]]) Equal or Greater than 10
    What >= 10 ?

    Suggest you to upload the sample workbook.. thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  3. #3
    Registered User
    Join Date
    01-20-2010
    Location
    None of your Business
    MS-Off Ver
    None
    Posts
    26

    Re: IF AND Formulas with two sets of functions

    Yes what I need is the two formula's combined, so if the first formula is ">=10" and the second one is "0" the I would get an output of "F" in the Cell and if not then a "P".

    I have uploaded a small example of my workbook. Thank You

    Attachment 170481

  4. #4
    Registered User
    Join Date
    01-20-2010
    Location
    None of your Business
    MS-Off Ver
    None
    Posts
    26

    Re: IF AND Formulas with two sets of functions

    Sorry I missed off the three lines which I am trying to condense!

    Columns BE, BF & BG are the three which I want to get all into one cell if this is possible. Thank You

    Example.xlsm

    I believe it should be along these lines but I cannot get it to work!...
    =IF(AND(COUNTIFS([Horse Age],[@[Horse Age]],[Course Win],[@[Course Win]])>=10,COUNTIFS([Horse Age],[@[Horse Age]],[Course Win],[@[Course Win]],[Result],"Won")=0,"F","P"))
    Last edited by Zipmeister; 07-26-2012 at 07:07 AM.

  5. #5
    Registered User
    Join Date
    01-20-2010
    Location
    None of your Business
    MS-Off Ver
    None
    Posts
    26

    Re: IF AND Formulas with two sets of functions

    Right after lots of messing around I have figured it out! Thank You for you help anyway.

    =IF(AND(COUNTIFS([Horse Age],[@[Horse Age]],[Course Win],[@[Course Win]])>=10,COUNTIFS([Horse Age],[@[Horse Age]],[Course Win],[@[Course Win]],[Result],"Won")=0),"F","P")

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: IF AND Formulas with two sets of functions

    Great..!!

    Self exploring is always a good learning

    Regards,
    DILIPandey


    <click on below 'star' if this helps>

+ 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