+ Reply to Thread
Results 1 to 9 of 9

If statements based on data in other cells

  1. #1
    Forum Contributor
    Join Date
    02-12-2018
    Location
    Clearwater, FL
    MS-Off Ver
    MS 365
    Posts
    214

    If statements based on data in other cells

    I have an excel sheet with data for agents attendance. I use the following formula however I need it to be edited.
    Please Login or Register  to view this content.
    Ill lay it out like this, at our company we have the following rules and I would like for this sheet to be automated:

    Partial absence & Tardies Expires off in 3 months
    Absence falls Expires after 6 months
    Unexcused is not waived
    Excused is Waived

    Based off these rules, I would like the letter in column F to update!

    E = Expired
    Y = Yes
    N = No

    Any help would be greatly appreciated! I have attached a sample worksheet to help you understand what I am dealing with!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor jtakw's Avatar
    Join Date
    05-05-2018
    Location
    CA, USA
    MS-Off Ver
    2016
    Posts
    668

    Re: If statements based on data in other cells

    Hi,

    Not clear on your requirements.

    If Unexcused is Not waived, does that mean ever? Even after the 3 or 6 month period?
    If Excused is Waived, is it immediate or Only after the 3 or 6 month period?

    Also please confirm we're checking Column B (Not D)

  3. #3
    Forum Contributor
    Join Date
    02-12-2018
    Location
    Clearwater, FL
    MS-Off Ver
    MS 365
    Posts
    214

    Re: If statements based on data in other cells

    Sorry about that, if it is past those time frames then yes it becomes Expired - Yes it is waived then after the time frame requirements are met they become expired as well.

    We would have to check column B & C along with A and if those requirments are met then supply column F with the correct code (Y, N, E)

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,412

    Re: If statements based on data in other cells

    Testing due to web issue
    Quang PT

  5. #5
    Valued Forum Contributor jtakw's Avatar
    Join Date
    05-05-2018
    Location
    CA, USA
    MS-Off Ver
    2016
    Posts
    668

    Re: If statements based on data in other cells

    If, after the time frames, All becomes Expired, I don't see why we need to check Column C?
    If, before the time frames passes, Excused is Not Waived until after the time frames, why do we need to check Column C?

    Edit, Ok, may be I see what you mean...

    So, Y and N is just to show whether it's Excused...

  6. #6
    Forum Contributor
    Join Date
    02-12-2018
    Location
    Clearwater, FL
    MS-Off Ver
    MS 365
    Posts
    214

    Re: If statements based on data in other cells

    If excused it is waived regardless of the time frame - yes correct!

  7. #7
    Valued Forum Contributor jtakw's Avatar
    Join Date
    05-05-2018
    Location
    CA, USA
    MS-Off Ver
    2016
    Posts
    668

    Re: If statements based on data in other cells

    See if this does what you require:

    You had a trailing space in C8 causing error, I fixed it.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    02-12-2018
    Location
    Clearwater, FL
    MS-Off Ver
    MS 365
    Posts
    214

    Re: If statements based on data in other cells

    Thank you so much - works like a charm! You are amazing!

  9. #9
    Valued Forum Contributor jtakw's Avatar
    Join Date
    05-05-2018
    Location
    CA, USA
    MS-Off Ver
    2016
    Posts
    668

    Re: If statements based on data in other cells

    It just occurred to me that if I Reversed the logic, the formula can be shorter, see attached:
    Attached Files Attached Files

+ 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. Can you create if statements based on if cells are highlighted?
    By Triscia in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-20-2015, 12:07 PM
  2. [SOLVED] SUMIF - Summing Data from several specified cells based on data of corresponding cells
    By ExelDummy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-06-2014, 06:12 PM
  3. [SOLVED] lookup a range of cells and populate specific cells based on matching data
    By RobertM01 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-23-2014, 08:18 PM
  4. Looping for filtering through data to rmove stock based on if statements
    By chrisjames25 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-04-2013, 01:11 PM
  5. Replies: 5
    Last Post: 10-15-2012, 06:33 PM
  6. Macro that combines if statements to code cells based on different criteria?
    By tomqueens in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-24-2012, 12:12 PM
  7. Replies: 2
    Last Post: 08-27-2010, 07:04 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