+ Reply to Thread
Results 1 to 5 of 5

Use If, And, Or in a formula multiple times

  1. #1
    Registered User
    Join Date
    10-07-2015
    Location
    Connecticut
    MS-Off Ver
    2010
    Posts
    3

    Unhappy Use If, And, Or in a formula multiple times

    Hello,

    I need to come up with a formula that provides a result as below - can you please help?

    Look for the average of B, C and D, if the average is less than $1000 and if C+D+E = 0, provide a result of -B else 0 AND if the average of B, C and D is greater than $1000 and if E = 0, provide a result of -D, else 0.

    I basically have to combine both the formulas below - I am able to generate results separately, but I need the formula to look for both conditions. Please help!!!!!

    =IF(AND((AVERAGE(C5:E5)<1000),(C5+D5+E5=0)),-B5, 0)
    =IF(AND((AVERAGE(B4:D4)>1000),(E4=0)),-D4,0)

  2. #2
    Forum Contributor
    Join Date
    06-18-2014
    Location
    USA
    MS-Off Ver
    2013
    Posts
    142

    Re: Use If, And, Or in a formula multiple times

    Maybe:

    Please Login or Register  to view this content.
    in f1 and copy down

  3. #3
    Registered User
    Join Date
    10-07-2015
    Location
    Connecticut
    MS-Off Ver
    2010
    Posts
    3

    Re: Use If, And, Or in a formula multiple times

    Thank you for your reply. The first part of the formula is working just fine, giving the correct result, but when the average is over 1000, I am getting a result of False. Any suggestions?

  4. #4
    Forum Contributor
    Join Date
    06-18-2014
    Location
    USA
    MS-Off Ver
    2013
    Posts
    142

    Re: Use If, And, Or in a formula multiple times

    May have missed a parentheses...

    Try this

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-07-2015
    Location
    Connecticut
    MS-Off Ver
    2010
    Posts
    3

    Re: Use If, And, Or in a formula multiple times

    You are a genius!!! :-) This worked for me! I appreciate you taking time to look into this.

    =IF(AND(AVERAGE(AC3:AE3)<1000,SUM(AD3:AF3)=0),-AC3,IF(AND(AVERAGE(AC3:AE3)>1000,AF3=0),-AE3,0))

+ 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. Replies: 7
    Last Post: 04-09-2014, 09:25 AM
  2. Using a Complex Formula Multiple Times without...
    By jbiddle88 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-19-2013, 06:47 PM
  3. Vlookup formula to return multiple cells (x) times.
    By Choppo in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-17-2013, 10:00 AM
  4. [SOLVED] Formula for (counting a value if certain name in another column) multiple times
    By Willmagochi in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-20-2013, 02:27 PM
  5. [SOLVED] Formula to copy rows of data from one page to another multiple times
    By iamcalledjosh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-13-2013, 05:31 PM
  6. Replies: 0
    Last Post: 11-14-2011, 05:40 PM
  7. formula for extracting from 1 db to another multiple times
    By mross123 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-20-2011, 06:22 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