+ Reply to Thread
Results 1 to 6 of 6

6 or more in IF Statements Showing Error

  1. #1
    Forum Contributor
    Join Date
    06-25-2013
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    114

    6 or more in IF Statements Showing Error

    Hi All,

    Please can you have a look at the attached file where I am trying to create the bucket based on the salary, however I am not been allowed by IF Statement to add more conditions.

    I am not sure whats missing here to stop me.

    Thank you.
    Attached Files Attached Files

  2. #2
    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,936

    Re: 6 or more in IF Statements Showing Error

    You actually are allowed to next way more than what you have there.

    The problem is not the nesting - you dont have a 3rd argument for the last IF statement.....
    =IF(A7<=$K$4,$L$4,IF(AND(A7>=$J$5,A7<=$K$5),$L$5,IF(AND(A7>=$J$6,A7<=$K$6),$L$6,?????????)))
    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

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

    Re: 6 or more in IF Statements Showing Error

    if you explain the rules here, we may be able to come up with another option.

  4. #4
    Forum Contributor
    Join Date
    06-25-2013
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    114

    Re: 6 or more in IF Statements Showing Error

    Hi Ford. My requirement is based on Salary it should pick the GBP. Currently the salary is not greater than 595k but in future the salary might change, so thinking to extend the formula to pick. Does my rule make sense.

  5. #5
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: 6 or more in IF Statements Showing Error

    Dont use nested ifs for this a vlookup is the way to go, then you can easily find the number and make the list longer or change the Greater then values for yearly inflation.

    Please Login or Register  to view this content.
    For this function you also only need the Greater then colomn to test for the treshold for the next bucket. you can remove the less then colomn if you want (then change the 3 into a 2 for 3rd parameter) or you can keep it for visual reference

    the key in thos formula is setting the last parameter of VLOOKUP to 1 or TRUE this will put each value upto and including 258.733,21 in the 50.000 bucket and when larger then that amount it will show 75.000.
    Last edited by Roel Jongman; 04-30-2021 at 01:55 AM.

  6. #6
    Forum Contributor
    Join Date
    06-25-2013
    Location
    India
    MS-Off Ver
    Excel 2016
    Posts
    114

    Re: 6 or more in IF Statements Showing Error

    Thank Roel and Ford for your help and advice. I will try and let you know.

    Thank you so much.

+ 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. [SOLVED] offset function ref error - how to stop the error showing
    By Hattie_Dog in forum Excel General
    Replies: 13
    Last Post: 04-15-2021, 07:41 AM
  2. VBA code showing error "Run time error 424 object required"
    By keshavtale in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-14-2021, 09:58 AM
  3. userform not showing up error
    By LaSouth1776 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-09-2020, 09:58 PM
  4. Help with IF statements showing False
    By Lacer75 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-16-2017, 07:14 AM
  5. #NAME? Error showing up when it shouldn't be
    By sccrbrg in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-02-2014, 06:36 PM
  6. IF(if error) showing #n/a
    By HPIMICHAEL02 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-14-2013, 11:19 AM
  7. Countif showing #value error
    By dodger999 in forum Excel General
    Replies: 3
    Last Post: 09-25-2009, 05:17 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