+ Reply to Thread
Results 1 to 3 of 3

IF formula with multiple dependencies

Hybrid View

jomili IF formula with multiple... 12-07-2011, 01:43 PM
tigeravatar Re: IF formula with multiple... 12-07-2011, 02:00 PM
jomili Re: IF formula with multiple... 12-07-2011, 02:42 PM
  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,065

    IF formula with multiple dependencies

    I've provided a picture rather than a file, but I think the picture will suffice for this question. The highlighted area in L is the average of Columns D,E,F (June, July, and August) for that line

    In column K, the formula looks at the average of June, July, and August, and if it's greater than the sum of September, October, and November, then the average is multipled by 12 for our projection, otherwise the sum is used (should be sum *4; I have an error in my formula)

    I need to change my formula to the situation below, but am drawing a blank on how to do it:

    IF ONLY September is greater than the average, use September + the avg * 11
    IF ONLY October is greater than the average, use October + the avg * 11
    IF ONLY November is greater than the average, use November + the avg * 11
    IF September AND October are greater than the average, use September + October + the avg * 10
    IF Sept, Oct, and Nov are greater than the average, use Sept, Oct, and Nov + the avg * 9

    I'm envisioning about a 4 foot long IF statement, and really hope there's an easier way to do it that one of you Excel gurus can help me with.

    Thanks in advance,
    John
    Last edited by jomili; 12-07-2011 at 04:26 PM.

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: IF formula with multiple dependencies

    Give this a try:
    =SUMPRODUCT(--(G4:I4>AVERAGE(D4:F4)),G4:I4)+AVERAGE(D4:F4)*(12-COUNTIF(G4:I4,">"&AVERAGE(D4:F4)))
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,065

    Re: IF formula with multiple dependencies

    ~tigeravatar,

    Thank you so much! The formula works beautifully. The only change I had to make was to add a parentheses. Thank you, thank you, thank you!

+ 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