+ Reply to Thread
Results 1 to 4 of 4

Need help with complex sequential if/then statement

  1. #1
    Forum Contributor
    Join Date
    07-31-2014
    Location
    Texas
    MS-Off Ver
    Mac 2011 Version 14.5.4
    Posts
    114

    Need help with complex sequential if/then statement

    Hi everyone,
    I have a these columns:
    A B C D
    Date Monkey Focal # Start Time
    08/22/2014 FJ 1 7:52:00
    08/22/2014 FJ 1 7:52:00
    08/22/2014 RJ 1 8:52:00
    08/22/2014 FJ 2 9:52:00
    08/22/2014 FJ 3 10:52:00
    08/22/2014 RJ 2 11:52:00
    08/22/2014 RJ 2 11:52:00
    08/22/2014 MD 1 12:52:00
    08/22/2014 RJ 3 13:52:00
    08/22/2014 RJ 3 13:52:00
    08/22/2014 FJ 4 14:52:00
    08/23/2014 FJ 1 7:52:00
    08/23/2014 FJ 1 7:52:00
    08/23/2014 RJ 1 8:52:00
    08/23/2014 FJ 2 9:52:00

    Column C is what I am trying to populate.

    The Monkey column has many different options (not just the three shown here), as does the start time. What I would like to do is if the date is the same (A), and the monkey is the same (B) and the start time (C) is the same as the row above the cell, then the Focal # (C) should be the same, but when A is the same and B is the same, but D is different from the row above, it should give the next sequential number, then follow the first rule. When A is the same, and B changes, then it should start over with 1 following the same two rules as before. And when A changes, the sequence should start over following all the prior rules.

    Is this even possible? =( Thank you in advance to anyone who thinks they can help with this. (Hopefully I explained it properly)

  2. #2
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Need help with complex sequential if/then statement

    Place a "1" (without the quotes) into C2 under the heading Focal #
    Place this formula into C3, and copy down: =IF(A3&B3&D3=A2&B2&D2,C2+1,1)

    Hope it gets you going.

    Pete

  3. #3
    Forum Contributor
    Join Date
    07-31-2014
    Location
    Texas
    MS-Off Ver
    Mac 2011 Version 14.5.4
    Posts
    114

    Re: Need help with complex sequential if/then statement

    Wow! This forum is wonderful! Thank you so much - this was exactly what I needed. =)

  4. #4
    Forum Contributor
    Join Date
    07-31-2014
    Location
    Texas
    MS-Off Ver
    Mac 2011 Version 14.5.4
    Posts
    114

    Re: Need help with complex sequential if/then statement

    Hi, back again. =( We made our setup a bit more complex and now this solution does not work. I will have one Monkey (Focal) who has severalrows of Excel data under one focal session. This formula has the layout I need:
    08/22/2014 FJ 1 7:52:00
    08/22/2014 FJ 1 7:52:00
    08/22/2014 FJ 1 7:52:00
    08/22/2014 FJ 1 7:52:00
    as

    08/22/2014 FJ 1 7:52:00
    08/22/2014 FJ 2 7:52:00
    08/22/2014 FJ 3 7:52:00
    08/22/2014 FJ 4 7:52:00

    I have tried playing with it, but nothing I try gives me the output I need. Can anyone help me further? Thank you!

    08/22/2014 FJ 1 7:52:00
    08/22/2014 FJ 1 7:52:00
    08/22/2014 FJ 1 7:52:00
    08/22/2014 RJ 1 8:52:00
    08/22/2014 FJ 2 9:52:00
    08/22/2014 FJ 2 9:52:00
    08/22/2014 FJ 2 9:52:00
    08/22/2014 FJ 2 9:52:00
    08/22/2014 FJ 3 10:52:00
    08/22/2014 RJ 2 11:52:00
    08/22/2014 RJ 2 11:52:00
    08/22/2014 MD 1 12:52:00
    08/22/2014 RJ 3 13:52:00
    08/22/2014 RJ 3 13:52:00
    08/22/2014 FJ 4 14:52:00
    08/23/2014 FJ 1 7:52:00
    08/23/2014 FJ 1 7:52:00
    08/23/2014 RJ 1 8:52:00
    08/23/2014 FJ 2 9:52:00

+ 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. Sequential number from IF statement when result is true
    By Tish1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-12-2014, 05:02 AM
  2. Complex IF Statement
    By rhudgins in forum Excel General
    Replies: 1
    Last Post: 03-14-2011, 06:15 PM
  3. complex if statement
    By snoopy990 in forum Excel General
    Replies: 5
    Last Post: 06-02-2009, 01:21 PM
  4. Complex IF Statement
    By brooke1416 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-06-2008, 12:24 AM
  5. can excel return sequential numbers in an IF statement?
    By aldermju in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-28-2008, 04:16 AM

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