+ Reply to Thread
Results 1 to 6 of 6

Complicated IF function with example

  1. #1
    Registered User
    Join Date
    02-22-2013
    Location
    swansea
    MS-Off Ver
    Excel 2010
    Posts
    20

    Complicated IF function with example

    I have already posted this problem but I have tried to better describe it here and attached an example of the spread sheet -
    excel forum example.xlsx
    I have a complicated IF function problem I'm struggling with...
    I need to say-
    IF = (K10=1) look at value in column C. If mean value between C10:C20 is larger than value found in C10, then look at mean value between L10:L20, if this value is larger than L10 then insert a '1' into column M, if not insert a '0'.

    Thanks in advance, I'm stuck with this one!

  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,723

    Re: Complicated IF function with example

    Try this:

    =IF(K10=1,IF(C10<=AVERAGE(C10:C20),IF(L10<=AVERAGE(L10:L20),1,0)),0)

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    02-22-2013
    Location
    swansea
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Complicated IF function with example

    Great, that works, thanks!

  4. #4
    Registered User
    Join Date
    02-22-2013
    Location
    swansea
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Complicated IF function with example

    It seems to be working but in some cells instead of returning a '1' or a '0', it is inserting a 'FALSE', why might this be?

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

    Re: Complicated IF function with example

    Well, you didn't define all the conditions, but try this instead:

    =IF(K10=1,IF(C10<=AVERAGE(C10:C20),IF(L10<=AVERAGE(L10:L20),1,0),0),0)

    (change shown in red).

    Hope this helps.

    Pete

  6. #6
    Registered User
    Join Date
    02-22-2013
    Location
    swansea
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Complicated IF function with example

    That's great thanks

+ 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