+ Reply to Thread
Results 1 to 3 of 3

Nesting an “IF” statement into a working formula

  1. #1
    Registered User
    Join Date
    02-10-2014
    Location
    Schaumburg, IL
    MS-Off Ver
    Excel 2007
    Posts
    24

    Nesting an “IF” statement into a working formula

    Hello, I need help nesting an “IF” statement into a working formula. The sample Excel file contains 3 worksheets: Main, Staff, and Appraisers. The Main worksheet has a drop-down list of Regions (01, 02, 03, etc.). The Staff worksheet has columns for ‘Names’, ‘Country’, ‘Region’, and “Status”. The Appraisers worksheet has a column called ‘Names in Region’ and the cells in that column contain the formula like this one for cell A2:

    Please Login or Register  to view this content.
    When a Region is selected from the drop-down list in the main worksheet, this formula will look in the Staff worksheet in the ‘Name’ column for all names with a corresponding Region number that was selected on the Main worksheet and place them in the ‘Name in Region’ column in the Appraisers worksheet.

    What I need to do is modify this formula so that it in addition to listing names with the selected region number, only names with a corresponding ‘Status’ of “Current” are listed.

    I’ve tried for hours, but to no avail. I hope someone can help me out. Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,371

    Re: Nesting an “IF” statement into a working formula

    Put in anywhere in Main Sheet:

    =INDEX(Staff!$A$2:$A$129,SMALL(IF((Staff!$C$2:$C$129=$E$42)*(Staff!$D$2:$D$129="Current"),ROW(Staff!$A$2:$A$129)-ROW(Staff!$A$2)+1),ROWS($A$1:A1)))

    And hit/press CTRL+SHIFT+ENTER button together, coz this array formula, and then copied down
    Attached Files Attached Files
    Last edited by azumi; 11-27-2014 at 02:08 AM.

  3. #3
    Registered User
    Join Date
    02-10-2014
    Location
    Schaumburg, IL
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Nesting an “IF” statement into a working formula

    Thanks, azumi. Works perfectly. Happy Thanksgiving.

+ 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] help nesting OR statement into COUNTIFS statement
    By HeyInKy in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-18-2014, 09:31 AM
  2. Replies: 2
    Last Post: 03-04-2014, 06:31 PM
  3. Nesting IF Statement
    By firehousetk in forum Excel General
    Replies: 8
    Last Post: 11-28-2011, 12:22 PM
  4. If statement nesting
    By msbing916 in forum Excel General
    Replies: 4
    Last Post: 05-07-2010, 03:38 PM
  5. If statement 'formula' not working
    By Bricktop in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-01-2005, 04:09 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