+ Reply to Thread
Results 1 to 22 of 22

Help with nested IF formula with at least 5 statements

  1. #1
    Registered User
    Join Date
    09-01-2016
    Location
    North Carolina
    MS-Off Ver
    excel 2013
    Posts
    10

    Angry Help with nested IF formula with at least 5 statements

    Hi! I need help solving an excel formula equation. It is a nested IF with at least 5 different statements in it.

    I think it may need a IF (AND) formula or perhaps a IF (OR) formula but I'm not sure why it is not working... I'm not sure, I'm getting a #NAME? Result.

    =IF(A7>=2500000.01,Platinum,IF(A7>=1000000.01,Gold,IF(A7>=500000.01,Silver,IF(A7>=250000.01,Bronze,IF(A7>=100000.01,Copper,0)))))

    I need the formula to quickly assign a level to hundreds of cells automatically, according to the following description:
    Platinum $2,500,000.01 and Up
    Gold $1,000,000.01 to $2,500,000
    Silver $500,000.01 to $1,000,000
    Bronze $250,000.01 to $500,000
    Copper $100,000 to $250,000

    This girl here is going crazy...

    Thank you peeps!!! I really appreciate it.

  2. #2
    Forum Contributor
    Join Date
    08-23-2016
    Location
    India
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    194

    Re: Help with nested IF formula with at least 5 statements

    =IF(A7>=2500000.01,"Platinum",IF(A7>=1000000.01,"Gold",IF(A7>=500000.01,"Silver",IF(A7>=250000.01,"Bronze",IF(A7>=100000.01,"Copper",0)))))
    Ash

  3. #3
    Forum Contributor
    Join Date
    08-23-2016
    Location
    India
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    194

    Re: Help with nested IF formula with at least 5 statements

    =IF(A7>=2500000.01,"Platinum",IF(A7>=1000000.01,"Gold",IF(A7>=500000.01,"Silver",IF(A7>=250000.01,"Bronze",IF(A7>=100000,"Copper",0)))))

  4. #4
    Forum Contributor
    Join Date
    08-23-2016
    Location
    India
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    194

    Re: Help with nested IF formula with at least 5 statements

    What is it that you are looking for?

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Help with nested IF formula with at least 5 statements

    Might also try a lookup

    =IFERROR(LOOKUP(A7,{100000.01,250000.01,500000.01,1000000.01,2500000.01},{"Copper","Bronze","Silver","Gold","Platinum"}),0)

  6. #6
    Valued Forum Contributor
    Join Date
    08-04-2011
    Location
    UK
    MS-Off Ver
    Excel 2021
    Posts
    346

    Re: Help with nested IF formula with at least 5 statements

    give this a try

    =IFERROR(LOOKUP(A7/1000000,{0.1,0.25,0.5,1,2.5},{"Copper","Bronze","Silver","Gold","Platinum"}),"")

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Help with nested IF formula with at least 5 statements

    ...or a VLOOKUP with a small Table:

    =IFERROR(VLOOKUP(A1,$E$2:$F$6,2,TRUE),"None")
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Help with nested IF formula with at least 5 statements

    I think the lookup or vlookup solutions are the better way to go..
    But should probably answer what was actually wrong with your original posted formula.
    =IF(A7>=2500000.01,Platinum,IF(A7>=1000000.01,Gold,IF(A7>=500000.01,Silver,IF(A7>=250000.01,Bronze,IF(A7>=100000.01,Copper,0)))))

    Nothing really wrong with the LOGIC of the formula, it's correclty written.
    The problem is the values you're returning Platinum Gold etc...
    If those are meant to be just returning as a text string, they need to have quotes around them.
    So each of those values should be "Platinum" and "Gold" etc..

  9. #9
    Registered User
    Join Date
    09-01-2016
    Location
    North Carolina
    MS-Off Ver
    excel 2013
    Posts
    10

    Re: Help with nested IF formula with at least 5 statements

    Oh the " " .... darn! I feel dumb!

    But still no error now but now working... everything is defaulting to Platinum which is not right.

  10. #10
    Registered User
    Join Date
    09-01-2016
    Location
    North Carolina
    MS-Off Ver
    excel 2013
    Posts
    10

    Re: Help with nested IF formula with at least 5 statements

    This one is returning a "blank" value.

  11. #11
    Registered User
    Join Date
    09-01-2016
    Location
    North Carolina
    MS-Off Ver
    excel 2013
    Posts
    10

    Re: Help with nested IF formula with at least 5 statements

    I'm replying at the wrong places... sorry... everything is returning as Platinum with this.

  12. #12
    Forum Contributor
    Join Date
    08-23-2016
    Location
    India
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    194

    Re: Help with nested IF formula with at least 5 statements

    Which one ?

  13. #13
    Registered User
    Join Date
    09-01-2016
    Location
    North Carolina
    MS-Off Ver
    excel 2013
    Posts
    10

    Re: Help with nested IF formula with at least 5 statements

    Quote Originally Posted by Ash_Maverick View Post
    =IF(A7>=2500000.01,"Platinum",IF(A7>=1000000.01,"Gold",IF(A7>=500000.01,"Silver",IF(A7>=250000.01,"Bronze",IF(A7>=100000,"Copper",0)))))
    everything returned PLATINUM

  14. #14
    Forum Contributor
    Join Date
    08-23-2016
    Location
    India
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    194

    Re: Help with nested IF formula with at least 5 statements

    Try this............=IF(A7>=2500000.01,"Platinum",IF(A7>=1000000.01,"Gold",IF(A7>=500000.01,"Silver",IF(A7>=250000.01,"Bronze",IF(A7>=100000.01,"Copper",0)))))


    It is working OK for me

  15. #15
    Registered User
    Join Date
    09-01-2016
    Location
    North Carolina
    MS-Off Ver
    excel 2013
    Posts
    10

    Re: Help with nested IF formula with at least 5 statements

    Quote Originally Posted by AlanY View Post
    give this a try

    =IFERROR(LOOKUP(A7/1000000,{0.1,0.25,0.5,1,2.5},{"Copper","Bronze","Silver","Gold","Platinum"}),"")
    This returned a BLANK cell

  16. #16
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Help with nested IF formula with at least 5 statements

    And which one is returning a blank when igt shouldn't. You really do need to direct your reply AT someone!!

  17. #17
    Forum Contributor
    Join Date
    08-23-2016
    Location
    India
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    194

    Re: Help with nested IF formula with at least 5 statements

    check this
    Attached Images Attached Images

  18. #18
    Registered User
    Join Date
    09-01-2016
    Location
    North Carolina
    MS-Off Ver
    excel 2013
    Posts
    10

    Re: Help with nested IF formula with at least 5 statements

    Quote Originally Posted by eyork0401 View Post
    This returned a BLANK cell


    Yes! Thank you!!!! Love it!!!! I really appreciate it!

  19. #19
    Registered User
    Join Date
    09-01-2016
    Location
    North Carolina
    MS-Off Ver
    excel 2013
    Posts
    10

    Re: Help with nested IF formula with at least 5 statements

    Quote Originally Posted by Ash_Maverick View Post
    check this
    It worked great for Platinum and Gold... silver is returning gold, copper is gold too. I copied and pasted the formula.

  20. #20
    Registered User
    Join Date
    09-01-2016
    Location
    North Carolina
    MS-Off Ver
    excel 2013
    Posts
    10

    Re: Help with nested IF formula with at least 5 statements

    Quote Originally Posted by eyork0401 View Post
    It worked great for Platinum and Gold... silver is returning gold, copper is gold too. I copied and pasted the formula.
    User error... i added a column and had to change the A7...

  21. #21
    Registered User
    Join Date
    09-01-2016
    Location
    North Carolina
    MS-Off Ver
    excel 2013
    Posts
    10

    Re: Help with nested IF formula with at least 5 statements

    Quote Originally Posted by eyork0401 View Post
    User error... i added a column and had to change the A7...


    Working!!!!!!!!!! Thanks bunches guys!!!!!!!!!!!!!!!!!!!!!!!

  22. #22
    Forum Contributor
    Join Date
    08-23-2016
    Location
    India
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    194

    Re: Help with nested IF formula with at least 5 statements

    If this has resolved your issue then please mark the thread as SOLVED

+ 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. If statements in VBA to look at multiple criteria without a nested formula
    By PFDave in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-23-2016, 11:05 AM
  2. Formula quest for Nested IF statements
    By kiong234 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-17-2012, 03:49 PM
  3. 20+ Nested If Statements - Formula too long
    By Gen8888 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-10-2011, 12:25 PM
  4. Replies: 2
    Last Post: 01-11-2010, 07:37 AM
  5. nested IF Statements or similar formula
    By katja328 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-16-2009, 03:53 PM
  6. Replies: 12
    Last Post: 05-15-2009, 08:38 AM
  7. more than 7 nested IF(AND) statements in formula - VBA? **NEWBIE**
    By Dan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-27-2006, 09:35 PM

Tags for this Thread

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