+ Reply to Thread
Results 1 to 17 of 17

complex If then forumula

  1. #1
    Registered User
    Join Date
    01-28-2015
    Location
    Switzerland
    MS-Off Ver
    2010
    Posts
    7

    complex If then forumula

    Hi
    I am trying to capture in an excel formula the follwing:

    if A1+A2 =100% and A1 > 50%, allocate 10 point
    if A1+A2= 100% and A2 > 50% allocate 9
    if A1+A2>75%<100% and A1> 50% allocate 8 Points
    if A1+ A2>75%<100% and A2> 50% allocate 7 points
    if A1+ A2> 50%<75% and A1 > 50% allocate 6 points

    (A1 and A2 are cell values expressed in %)

    Grateful for any tipp you might be able to give me what type of formula I could use.

    Best

    JB

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: complex If then forumula

    Hi,

    The rules aren't clear. What if A1+A2 = 100% and both A1 & A2 are both >50%. How do you decide between 9 or 10

    Incidentally did you mean >=100% for the first two
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    01-28-2015
    Location
    Switzerland
    MS-Off Ver
    2010
    Posts
    7

    Re: complex If then forumula

    Dear Richard

    Yes indeed. Incidentally I meant >=100%

    Best

    Jeremias

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: complex If then forumula

    =IF(A1>0.5,IF(A1+A2<0.75,6,IF(A1+A2<1,8,10)),IF(A2>0.5,IF(A1+A2<0.75,0,IF(A1+A2<1,7,9)),0))
    Try this
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: complex If then forumula

    Try this...


    =IF(SUM(A1,A2)>=100%,IF(A1>50%,10,IF(A2>50%,9,"-")),IF(SUM(A1,A2)>=75%,IF(A1>50%,8,IF(A2>50%,7,"-")),IF(SUM(A1,A2)>=50%,IF(A1>50%,7,IF(A2>50%,6,"")),"")))


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  6. #6
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: complex If then forumula

    or =IF(A1>0.5,LOOKUP(A1+A2,{0,0.75,1},{6,8,10}),IF(A2>=0.5,LOOKUP(A1+A2,{0,0.75,1},{0,7,9}),0))

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: complex If then forumula

    Quote Originally Posted by jblaser View Post
    Dear Richard

    Yes indeed. Incidentally I meant >=100%

    Best

    Jeremias
    And what about A1 & A2 both being greater than 50% and totalling 100% or more. Which result would you expect and why?
    e.g. if A1 and A2 are both 60% then what??

  8. #8
    Registered User
    Join Date
    01-28-2015
    Location
    Switzerland
    MS-Off Ver
    2010
    Posts
    7

    Re: complex If then forumula

    It doesn't seem to work but most likely because my question was not complete:
    I have an indicator called: % of achieved outcomes. Outcomes can either be "fully achieved (FA)", "partially achieved (PA)" or "not achieved (NA)"
    I would then like to allocate points according to the following rules:

    10 points if FA+PA =100% and FA's share >= 50%
    9 points if FA+ PA = 100% and PA's share > 50%
    8 Points if FA + PA >=75%<100% and FA's share >= 50%
    7 Points if FA + PA >=75%<100% and PA's share >= 50%
    6 Points if FA + PA >= 50%<75% and FA's share >= 50%
    5 Points if FA + PA >= 50%< 75% and PA's share >= 50%
    4 Points if FA + PA >= 25% < 50% and FA's share >= 50%
    3 Points if FA + PA >= 25%<50% and PA's share >= 50%
    2 Points if FA + PA > 0%<25% and FA's share >= 50%
    1 Point if FA + PA >0%<25% and PA's share > 50%
    0 Point if NA = 100%

    Grateful if you could help. Thanks again.

    Best

    Jeremias

  9. #9
    Registered User
    Join Date
    01-28-2015
    Location
    Switzerland
    MS-Off Ver
    2010
    Posts
    7

    Re: complex If then forumula

    Anyone out there able to help? I'd really appreciate your support!

  10. #10
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: complex If then forumula

    pls attach sample excel file

  11. #11
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: complex If then forumula

    what about if both have 50% share on total

  12. #12
    Registered User
    Join Date
    01-28-2015
    Location
    Switzerland
    MS-Off Ver
    2010
    Posts
    7

    Re: complex If then forumula

    Kopie von Kopie von Copie de Kobü Rating (2).xlsx

    It is worksheet I4 "achieved outcomes"

    Thanks for your help

  13. #13
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: complex If then forumula

    C46=IF(C45=100%,0,LOOKUP(C43+C44,{0,25,50,75,100}%,{1,3,5,7,9})+IF(C43>50%,1,0))
    Try this

  14. #14
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: complex If then forumula

    or
    =IF(C45=100%,0,LOOKUP(C43+C44,{0,25,50,75,100}%,{1,3,5,7,9})+IF(C43>50%,1,0))

  15. #15
    Registered User
    Join Date
    01-28-2015
    Location
    Switzerland
    MS-Off Ver
    2010
    Posts
    7

    Re: complex If then forumula

    I still get an error message indicating that something is wrong with the formula

  16. #16
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: complex If then forumula

    See the attached file
    i added iferror to your countif formula
    and see the attached file
    if it is not you are looking for what is your answer in this case

  17. #17
    Registered User
    Join Date
    01-28-2015
    Location
    Switzerland
    MS-Off Ver
    2010
    Posts
    7

    Re: complex If then forumula

    It seems to work. Many thanks indeed!

+ 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: 6
    Last Post: 03-12-2014, 12:16 PM
  2. Replies: 4
    Last Post: 02-03-2014, 12:47 AM
  3. [SOLVED] Complex Comparison forumula - Help
    By Rjwilliams93 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-08-2013, 06:58 PM
  4. need help with a forumula
    By Robtastic in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-20-2012, 05:11 AM
  5. [SOLVED] Complex Index Match Help (or at least complex to me)
    By Jennifer Reitman in forum Excel General
    Replies: 3
    Last Post: 08-10-2006, 03:55 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