+ Reply to Thread
Results 1 to 7 of 7

Need smarter Excel rather than too many IFs

  1. #1
    Registered User
    Join Date
    01-22-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    19

    Need smarter Excel rather than too many IFs

    Hi,

    I need a quicker and smarter formula for my incentive calculation, but all I can think of is IF IF IF, and I realized that moving forward, there are going to have more IFs if the incentive tier is increasing.

    I have paste the attachmentTier_Sample.xlsx

    Here is my explanation:

    Under the cell IDS, LP , SP ,

    If all of them are Tier 2, Result shows Tier 2
    If 1 of the cell has Tier 1, Result shows Tier 1
    If 1 of the cell has NO, Result shows NO (Regardless there are Tier 1 or Tier 2 exist)

    Currently I'm using IF IF IF

    Hope Anyone can suggest me any better Formulas that this

    Thank you

    Regards,
    Richard

  2. #2
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Need smarter Excel rather than too many IFs

    Copy it in E2 &
    With two if
    Use Ctrl+Shift+Enter to activate the array function

    =IF(COUNTIF(A2:C2,"Tier 2")>1,"Tire 2",IF(OR(A2:C2="Tier 1",A2:C2="No"),"No"))
    Punnam

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Need smarter Excel rather than too many IFs

    If you could use numerics instead of text...
    A
    B
    C
    D
    E
    1
    IDS LP SP Result
    2
    2
    2
    2
    2
    3
    2
    2
    2
    2
    4
    2
    1
    2
    1
    5
    2
    1
    1
    1
    6
    1
    1
    1
    1
    7
    1
    2
    NO No
    8
    1
    NO NO No
    9
    NO
    2
    NO No


    E2=IF(COUNTIF(A2:C2,"No"),"No",MIN(A2:C2)) copied down
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    01-22-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Need smarter Excel rather than too many IFs

    Hi Puunam,

    The Formula works if is it all the 3 cells are Tier 2, or 1 of them is not Tier 2. But the Tier 1 Is not working.

    I hope that the formula is = the same with the Result column

    Please advice

    Thank You

  5. #5
    Registered User
    Join Date
    01-22-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Need smarter Excel rather than too many IFs

    HI Ford,

    That is actually a great idea! using only Numbers. I have learn much

    Thank You so much For, Puunam, I have learn a lot!

  6. #6
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Need smarter Excel rather than too many IFs

    Hi , try this in E2

    Use Ctrl+Shift + Enter
    =IF(COUNTIF(A2:C2,"NO")>=1,"NO",IF(COUNTIF(A2:C2,"Tier 2")>=2,"Tier 2","Tire 1"))
    Punnam

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Need smarter Excel rather than too many IFs

    If you cannot use only numbers, try this ARRAY formula instead...
    =IF(COUNTIF(A2:C2,"No"),"No",MIN(--RIGHT(G2:I2,1)))

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

+ 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. CoachD here and just trying to get smarter with Excel 2010
    By coachd in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 12-28-2012, 01:08 AM
  2. So....Am I Smarter Than You?
    By superwhoever in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 10-28-2012, 10:36 PM
  3. Smarter chart
    By pearson in forum Excel General
    Replies: 1
    Last Post: 06-17-2010, 09:18 PM
  4. HELP - someone smarter than I please!
    By Atheria in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-10-2006, 03:29 AM
  5. [SOLVED] is word really smarter than excel?
    By Bill Kuunders in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-07-2005, 04:06 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