+ Reply to Thread
Results 1 to 4 of 4

Trying to make a IF AND OR function work

  1. #1
    Registered User
    Join Date
    10-21-2012
    Location
    Warwick
    MS-Off Ver
    Office 2000
    Posts
    20

    Trying to make a IF AND OR function work

    Hi,
    I am trying to make an IF AND OR function work but cant work it out. Please Help

    IF cell AQ8=5 AND cell AR8="Y" I want to return the sum(BJ4*BE8)

    OR

    IF cell AQ8=6 AND cell AR8="Y" I want to return the sum(BJ5*BE8)

    IF both are FALSE I want to return ""

    probably simple but I've been going round in circles for 3 hours.

    many thanks

    JoJo

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,737

    Re: Trying to make a IF AND OR function work

    Try this:

    =IF(AND(AQ8=5,AR8="Y"),BJ4*BE8,IF(AND(AQ8=6,AR8="Y"),BJ5*BE8,""))

    Hope this helps.

    Pete

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Trying to make a IF AND OR function work

    Maybe

    =IF(AND(AQ8=5,AR8="Y"),BJ4*BE8,IF(AND(AQ8=6,AR8="Y"),BJ5*BE8,""))
    HTH
    Regards, Jeff

  4. #4
    Registered User
    Join Date
    10-21-2012
    Location
    Warwick
    MS-Off Ver
    Office 2000
    Posts
    20

    Re: Trying to make a IF AND OR function work

    You are my hero Pete.

    I was going crazy.

    Jojo

+ 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