+ Reply to Thread
Results 1 to 3 of 3

Identifying Conditional Cases

  1. #1
    Forum Contributor
    Join Date
    10-09-2015
    Location
    Canada
    MS-Off Ver
    Office Home and Student 2021 for Mac
    Posts
    170

    Identifying Conditional Cases

    Hi all,

    I'm currently working with a fairly large data set (sample attached), comprising 50 questions from a survey.

    Essentially, respondents choose any option from 1-5.

    Skipped questions and Don't Knows are denoted with -1 (Skipped) and -999 (Don't Know).

    What I am having some trouble with is, of the respondents who got either a -1 or -999 on the last question, what was the farthest they got before that.

    So if ID 1 received a -1 on question 50, but entered a response to question 49, I would want to make a column that indicates "49" for that ID.

    Thanks in advance for any suggestions!

    Darko
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Identifying Conditional Cases

    =MAX(IF(B2:AY2<>-1,COLUMN(B2:AY2)))-1
    Array formula, use Ctrl-Shift-Enter

    If you want -999 as well as testing for -1 then try (untested)

    =MIN(MAX(IF(B2:AY2<>-1,COLUMN(B2:AY2)))-1,MAX(IF(B2:AY2<>-999,COLUMN(B2:AY2)))-1)
    Array formula, use Ctrl-Shift-Enter
    Last edited by Special-K; 01-31-2019 at 11:22 AM.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Contributor
    Join Date
    10-09-2015
    Location
    Canada
    MS-Off Ver
    Office Home and Student 2021 for Mac
    Posts
    170

    Re: Identifying Conditional Cases

    Thank so much Special-K! Worked really well!

+ 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. Replies: 1
    Last Post: 04-27-2018, 11:34 AM
  2. [SOLVED] conditional formatting identifying duplicates from another sheet.
    By arnoldsq in forum Excel General
    Replies: 5
    Last Post: 12-01-2017, 03:57 PM
  3. Replies: 1
    Last Post: 03-28-2017, 03:50 AM
  4. [SOLVED] Formula/Identifying Cases
    By Darko_Giac in forum Excel General
    Replies: 6
    Last Post: 10-09-2015, 01:32 PM
  5. Add cases opened and closed for each month and specifics about the cases.
    By ChrisLaRoc in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-04-2014, 08:19 PM
  6. [SOLVED] Identifying part of a string with multiple cases
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-27-2013, 07:32 PM
  7. conditional formula for identifying criteria and not counting
    By tanglin10 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-16-2013, 10:58 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