+ Reply to Thread
Results 1 to 11 of 11

Help with tricky IF formula

  1. #1
    Registered User
    Join Date
    08-31-2017
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    5

    Help with tricky IF formula

    Hi Excel Forum!

    First time poster here, but I have lurked for the past few months and am grateful for all the great tips that have been shared.

    Original request: I am unsure how to create a formula that checks if a business has a trained employee. Currently, my formulas return the business as untrained if they have one person who isn't trained - I'm trying to ignore this if they have another employee who IS trained.

    Edited request: Column C (Trained?) is the information that I am trying to produce. I will give a scenario example:

    A construction business has two employees. One is trained but one isn't. I would like the business to be marked as trained, ignoring the employee who isn't trained (because one employee is trained).

    The goal is to create a pivot table that marks specific businesses as being 'trained' or 'untrained' so I can target businesses who need training. Currently they show up as 'untrained' if they have at least one employee marked as 'untrained', despite having another employee who is 'trained'. For this reason I am creating this additional column but it's tricky to get the formula to grab from multiple instances of rows.

    An example table:

    Business // Employee Trained // Business Trained? (Insert Formula Here)
    Construction // Yes // Yes
    Construction // No // Yes
    Hairdresser // Yes // Yes
    Government // No // No
    Warehouse // Yes // Yes
    Warehouse // Yes // Yes


    Thanks in advance for all advice and assistance.
    Last edited by AliGW; 09-01-2017 at 12:46 AM. Reason: Original wording reinstated.

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Help with tricky IF formula

    CptTroll welcome to the forum.

    With the data in columns A2:C7 enter this in D2 and fill down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    A
    B
    C
    D
    1
    Business
    EmployeeTrained
    Trained
    2
    Construction
    Yes
    Yes
    Trained
    3
    Construction
    No
    Yes
    Trained
    4
    Hairdresser
    Yes
    Yes
    Trained
    5
    Government
    No
    No
    Not trained
    6
    Warehouse
    Yes
    Yes
    Trained
    7
    Warehouse
    Yes
    Yes
    Trained


    Does this help?
    Dave

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Help with tricky IF formula

    If that doesn't quite do what you want try this formula.

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    A
    B
    C
    D
    1
    Business
    EmployeeTrained
    Trained?
    2
    Construction
    Yes
    Yes
    Trained
    3
    Construction
    No
    Yes
    Trained
    4
    Hairdresser
    Yes
    Yes
    Trained
    5
    Government
    No
    No
    Not trained
    6
    Warehouse
    Yes
    Yes
    Trained
    7
    Warehouse
    Yes
    Yes
    Trained

  4. #4
    Registered User
    Join Date
    08-31-2017
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    5

    Re: Help with tricky IF formula

    Thanks for the quick reply, guys!

    Your suggestions are great but unfortunately I worded my request wrong - I will re-word the initial post as well.

    Column C (Trained?) is the information that I am trying to produce. I will give a scenario example:

    A construction business has two employees. One is trained but one isn't. I would like the business to be marked as trained, ignoring the employee who isn't trained (because one employee is trained).

    The goal is to create a pivot table that marks specific businesses as being 'trained' or 'untrained' so I can target businesses who need training. Currently they show up as 'untrained' if they have at least one employee marked as 'untrained', despite having another employee who is 'trained'. For this reason I am creating this additional column but it's tricky to get the formula to grab from multiple instances of rows.

    Let me know if that makes better sense, or if you would like some additional clarification.


    Thanks.

  5. #5
    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,432

    Re: Help with tricky IF formula

    CptTroll - please note that the forum rules state that posts should not be edited after responses have been given. It was enough to add new details in a new post. Please don't do this again as it breaks the flow of the thread. Thanks.
    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.

  6. #6
    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 tricky IF formula

    In C2, copied down:

    =IF(COUNTIFS(A:A,A2,B:B,"Yes")>=1,"Yes","No")
    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

  7. #7
    Registered User
    Join Date
    08-31-2017
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    5

    Re: Help with tricky IF formula

    Quote Originally Posted by AliGW View Post
    CptTroll - please note that the forum rules state that posts should not be edited after responses have been given. It was enough to add new details in a new post. Please don't do this again as it breaks the flow of the thread. Thanks.
    My apologies. I was unaware. I've made sure to read the forum rules now. Thanks for letting me know.

  8. #8
    Registered User
    Join Date
    08-31-2017
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    5

    Re: Help with tricky IF formula

    Quote Originally Posted by Glenn Kennedy View Post
    In C2, copied down:

    =IF(COUNTIFS(A:A,A2,B:B,"Yes")>=1,"Yes","No")
    That worked perfectly, Glenn. Thank you so much!

  9. #9
    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 tricky IF formula

    You're welcome.



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

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  10. #10
    Registered User
    Join Date
    08-31-2017
    Location
    Australia
    MS-Off Ver
    2016
    Posts
    5

    Re: Help with tricky IF formula

    Thread now marked as solved and all contributors have been given reputation.

    Thanks everyone for your assistance, it was a great help.

  11. #11
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Help with tricky IF formula

    You're welcome. Thanks for the feedback, rep and marking thread 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. Need help with tricky formula
    By garygnobriga in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-20-2014, 12:46 AM
  2. Tricky Formula
    By TRI0N in forum Excel General
    Replies: 1
    Last Post: 10-24-2009, 08:21 PM
  3. Tricky Formula
    By martins in forum Excel General
    Replies: 5
    Last Post: 10-17-2006, 08:27 PM
  4. Tricky Formula
    By andrewc in forum Excel General
    Replies: 22
    Last Post: 07-20-2006, 06:45 AM
  5. Help with a tricky formula......
    By nevi in forum Excel General
    Replies: 1
    Last Post: 05-31-2006, 05:45 PM
  6. [SOLVED] Tricky formula
    By Steve in forum Excel General
    Replies: 3
    Last Post: 04-17-2006, 12:10 PM
  7. Tricky Formula.. Please Help
    By Aaron H in forum Excel General
    Replies: 1
    Last Post: 01-17-2005, 08:06 AM

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