+ Reply to Thread
Results 1 to 2 of 2

Return distinct values from column where if statement is true

  1. #1
    Registered User
    Join Date
    09-10-2014
    Location
    Dublin
    MS-Off Ver
    2010
    Posts
    18

    Return distinct values from column where if statement is true

    Hi all,

    I would appreciate some help from the Excel gurus here (got some great help before many thanks).

    I have a sheet which contains staff names against their department. There are duplicate names for each department as it's an exception report. I need a formula to return a list of distinct staff under each department.

    I was trying :

    =IF($B$12='Exception Report'!C:C,'Exception Report'!B2)

    Where B12 is the department, and column C is the department list. Column B is the list of staff.

    This works except there are 30,000 lines in the report and I have to drag it all the way down, and it does not account for duplicates.

    Ideally I would like a report that would do that and not have a person needing to drag down 30,000 lines also. Is this possible?

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Return distinct values from column where if statement is true

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

+ 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. How to return a value instead of TRUE/FALSE with IF,OR,AND statement
    By jgoat23 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-14-2014, 10:30 AM
  2. Function to search Column for a range of values and return TRUE or FALSE
    By BamBamMoneyBags in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-05-2013, 05:59 AM
  3. Replies: 2
    Last Post: 01-21-2013, 12:07 AM
  4. Return HYPERLINK that already exist in sheet if statement is true
    By flakis05 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 01-09-2013, 02:36 AM
  5. VBA IF Statement to return MsgBox if True and Stop Macro
    By Forge463 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-06-2012, 01:56 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