+ Reply to Thread
Results 1 to 7 of 7

Return multiple values with multiple conditions

  1. #1
    Registered User
    Join Date
    04-27-2007
    Posts
    4

    Unhappy Return multiple values with multiple conditions

    Hi,

    I'm in desperate need of this.

    I'm have a spreadsheet where I have 50 questions and each question can have a value of 0 thru 4.

    QuestionNumbers Value
    Question1 0
    Question2 1
    Question3 1
    Question4 2

    I need to pull all the values of corresponding cells(QuestionNumbers) which have a value 1.

    I would appreciate any help that you could provide.

    Thanks
    Sushant

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444
    Hi,

    Data>filter>Autofilter
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481
    =countif
    then hit the function wizard button to see how it works

  4. #4
    Registered User
    Join Date
    04-27-2007
    Posts
    4
    Hi,

    I think i did not explain the question right:

    I have 2 cols:

    Question Number VALUE
    Question 1 0
    Question 2 4
    Question 3 1
    Question 4 0

    The VALUE is not the count, It is an IF function and accordingly it gives values which is depends on the answer of the question.

    Now i have 50 questions....

    What i wanted to do was that Pull all those questions(Like Vlookup) which have a value 2. For example I want to pull all question numbers which have VALUE 0. Then i would get 2 question numbers...which would be Question 1 and Question 4 according to the above table.

    I hope i am a bit more clear this time.

    Thanks

  5. #5
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Quote Originally Posted by sushant.khullar
    Hi,

    I think i did not explain the question right:

    I have 2 cols:

    Question Number VALUE
    Question 1 0
    Question 2 4
    Question 3 1
    Question 4 0

    The VALUE is not the count, It is an IF function and accordingly it gives values which is depends on the answer of the question.

    Now i have 50 questions....

    What i wanted to do was that Pull all those questions(Like Vlookup) which have a value 2. For example I want to pull all question numbers which have VALUE 0. Then i would get 2 question numbers...which would be Question 1 and Question 4 according to the above table.

    I hope i am a bit more clear this time.

    Thanks
    see the attached file.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-27-2007
    Posts
    4
    This is amazing stuff....i'm trying to understand the formula....

    Thanks a lot buddy!!!

    Thanks
    Sushant

  7. #7
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    Based off of starguy's data, here is a method to do it without a helper column.
    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)

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