+ Reply to Thread
Results 1 to 6 of 6

Multiple IF & AND Condition Requirement

  1. #1
    Registered User
    Join Date
    02-28-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    100

    Multiple IF & AND Condition Requirement

    Dear Forum Members.

    Requesting your valuable input in the attachment. I have tried the various scenarios with multiple changes. But, not getting the right output i needed. Please correct me where i m making the mistake on this.

    Question:

    If employees existing sal in sheet 2 is less than and equal to slab in previous sheet (sheet 1) , then next immediate slab should be the revised pay in sheet 2 .

    Example Scenario for Output

    Existing Pay Revised Pay
    10000 10211
    10211 11200
    11200 12300
    11201 12300
    12290 12300


    Sample Attachment Enclosed for reference.

    Thank you for the help.

    Regards.
    Thilak
    Attached Files Attached Files

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

    Re: Multiple IF & AND Condition Requirement

    Try this formula in E6:

    =IFERROR(INDEX(Sheet1!$B$5:$H$5,MATCH(D6,Sheet1!$A$5:$G$5)+IF(COUNTIF(Sheet1!$A$5:$G$5,D6),0,1)),0)

    Copy down as required.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    02-28-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    100

    Re: Multiple IF & AND Condition Requirement

    Thank you sir. This works. I would like to request an small additional output.

    1. If existing payscale is less than 10k slab, 10000 should be output.
    2. If existing payscale is more than the final slab, Actual same existing salary should be output.

    It would be really great if you can help me frame this in formula.

    Thank You.

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

    Re: Multiple IF & AND Condition Requirement

    Use this in E6 instead:

    =IF(D6 < Sheet1!$A$5,Sheet1!$A$5,IFERROR(INDEX(Sheet1!$B$5:$H$5,MATCH(D6,Sheet1!$A$5:$G$5)+IF(COUNTIF(Sheet1!$A$5:$G$5,D6),0,1)),MAX(D6,Sheet1!$H$5)))

    then copy down.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    02-28-2012
    Location
    Bangalore
    MS-Off Ver
    Excel 2010
    Posts
    100

    Smile Re: Multiple IF & AND Condition Requirement

    Dear Sir.

    This is really Brilliant. Thanks a million times to you for your time and knowledge sharing. It really helps.
    I am an Intermediary user of Excel. Now learning this Complex mix of formulas.

    Really this helps. I am marking the thread as Solved and Adding the Reputations.

    Warm Regards.
    Thilak

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,779

    Re: Multiple IF & AND Condition Requirement

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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] Copy cell/range and paste it multiple times but as per requirement
    By NametobeRenamed in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-26-2020, 04:05 PM
  2. Multiple if statements to satisfy the requirement
    By imaliuddin in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-02-2019, 02:53 PM
  3. Trying to add multiple fields with a certain requirement
    By kenzie316 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-26-2016, 12:26 PM
  4. Condition formatting of multiple condition formatted cells
    By merrin84 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-22-2015, 05:08 PM
  5. Excel Date/Multiple Requirement Formula
    By Jessica5309 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-19-2013, 08:18 PM
  6. Replies: 4
    Last Post: 12-19-2012, 02:50 PM
  7. Replies: 6
    Last Post: 05-06-2010, 10: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