+ Reply to Thread
Results 1 to 7 of 7

Multi-Criteria Test - then put an X in a cell

  1. #1
    Registered User
    Join Date
    11-25-2003
    Location
    Decatur, Alabama
    Posts
    94

    Multi-Criteria Test - then put an X in a cell

    Hello,

    I am having trouble creating a macro that will work through all employees in a list, and put one "X" in a particular cell of a multi-column checklist based upon certain criteria. (see attached image.)

    One number that will be required is a year that is entered by the user on a different page This value is found in this cell: MeetingDataSheet!B3

    Here is the criteria:

    If the YEAR cell on the employee list is empty OR an X is found in the IN THE USA cell of the same page, go to the next employee.

    Otherwise
    If the value in the MeetingDataSheet!B3 field - the year in the YEAR field is > 5 then put an X in the REQUIRED field, then go to the next employee.

    If the value in the MeetingDataSheet!B3 field - the year in the YEAR field is 5 or less, then put an X in the NOT REQUIRED field, then go to the next employee.

    Thank you very much in advance for your help.

    Mike
    Attached Images Attached Images
    Learn to Serve Others. Kindness is far better than the alternative.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,743

    Re: Multi-Criteria Test - then put an X in a cell

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Valued Forum Contributor
    Join Date
    02-06-2014
    Location
    N/A
    MS-Off Ver
    N/A
    Posts
    373

    Re: Multi-Criteria Test - then put an X in a cell

    Hiya, something like this may work for you, you may need to adjust for your specific configuration--

    Please Login or Register  to view this content.
    Last edited by 1aaaaaaaaaaaaaaa; 11-20-2018 at 11:46 AM.

  4. #4
    Registered User
    Join Date
    11-25-2003
    Location
    Decatur, Alabama
    Posts
    94

    Re: Multi-Criteria Test - then put an X in a cell

    Sorry about that. I hope this helps. The 2nd page of the Excel workbook shows the page BEFORE any thing has been done. The 3rd page shows what the page should look like with a macro that worked!

    Thank you,
    Mike
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,989

    Re: Multi-Criteria Test - then put an X in a cell

    If a formula solution is acceptable then the following formulas display the same results as those shown on the "What-Finished-Should-Look-Like" sheet:
    E5 (copied down to E12): =IF(OR($C5="",$D5<>""),"",IF(MeetingDataSheet!$B$3-5>=VALUE(LEFT($C5,4)),"X",""))
    F5 (copied down to F12): =IF(OR($C5="",$D5<>""),"",IF(MeetingDataSheet!$B$3-5< VALUE(LEFT($C5,4)),"X",""))
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  6. #6
    Registered User
    Join Date
    11-25-2003
    Location
    Decatur, Alabama
    Posts
    94

    Re: Multi-Criteria Test - then put an X in a cell

    Wow! Thank you very much!! This is extremely helpful!

    Mike

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,989

    Re: Multi-Criteria Test - then put an X in a cell

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

+ 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] Regular formula or array for multi colum multi criteria?
    By scaffdog845 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-25-2016, 01:40 PM
  2. New & Lost: Multi Criteria & Multi Row INDEX, SMALL, MATCH...
    By morleyp in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-23-2014, 12:40 PM
  3. Large multi criteria / Vlookup/Choose Multi criteria
    By deanusa in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-20-2014, 01:48 AM
  4. Count it multi criteria accross multi cells
    By jfoley5197 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-10-2013, 03:42 PM
  5. Need a multi-step logical test
    By Mike Morris in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-30-2012, 05:47 PM
  6. How do I do multi VLOOKUP's based on certain criteria per cell?
    By Milky_UK in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  7. [SOLVED] How do I do multi VLOOKUP's based on certain criteria per cell?
    By Milky_UK in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-17-2005, 01:05 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