+ Reply to Thread
Results 1 to 2 of 2

Filter cells by row and then lookup. How do I do this?

  1. #1
    Registered User
    Join Date
    02-01-2020
    Location
    Toronto
    MS-Off Ver
    Office 365
    Posts
    1

    Filter cells by row and then lookup. How do I do this?

    Hi,

    I have an audit evidence grid I'm maintaining that relates the audit reference (eg. 6.1.a, 6.1.b, 6.2.a, etc.) to the collateral (indicated as DOC-1, DOC-2, etc.). So, if I was to filter on a column, I'd see every collateral item that addresses any given audit reference. This is shown in the example I've attached.

    What I need to do is the opposite - for a given collateral document, list all the audit references that collateral addresses - and put this into another sheet in the workbook. The sheet would have one row for each collateral document reference (eg. DOC-1, DOC-2, etc.) and subsequently a list of all the audit references which that document addresses.

    Since the content of the first sheet is somewhat dynamic, I'd like to create the second sheet using a programatic method, like VBA or pivot table or formula. In essence, I'm looking to do a filter cells horizontally and then lookup the corresponding column header where-ever there is an entry in the cell. But, I'm not skilled enough in Excel to figure this out. Can someone help me please, and thank you?
    Attached Files Attached Files
    Last edited by robmack; 02-03-2020 at 12:00 AM.

  2. #2
    Forum Contributor shank_mis's Avatar
    Join Date
    09-08-2018
    Location
    Delhi
    MS-Off Ver
    2010
    Posts
    128

    Re: Filter cells by row and then lookup. How do I do this?

    Hi @robmack,

    I have implemented the formula in working sheet attached herewith.

    On a New Sheet:

    =IFERROR(INDEX('Doc by Req.'!$C$1:$FQ$1,,SMALL(IF(('Doc by Req.'!$A$3:$A$6=$B$3)*('Doc by Req.'!$C$3:$FQ$6<>"")*(COLUMN('Doc by Req.'!$C$1:$FQ$1)-2)>0,COLUMN('Doc by Req.'!C1:FQ1)-2),COLUMN(A$1))),"")

    where B3 is reference number. Drag the formula rightwards.

    Please hit the "Add Reputation" button if you liked the answer.
    Attached Files Attached Files
    Shashank Mishra
    Please hit "Add Reputation" Button if you liked the answer.

+ 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 filter cells by calling the filter command from another sheet?
    By joash_9292 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-12-2017, 05:25 PM
  2. [SOLVED] Filter Alt+Entered Cells? (Filter linebreak cells?)
    By HerryMarkowitz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-30-2015, 04:50 AM
  3. Lookup/ Filter
    By Burt_100 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-10-2013, 03:24 PM
  4. Double filter or lookup and filter
    By Opy in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-13-2011, 11:26 PM
  5. How to automatically filter can filter and blue-colored cells
    By ersoyalanprovus in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-21-2009, 01:20 PM
  6. [SOLVED] How do I use advanced filter to filter for blank cells?
    By Monique in forum Excel General
    Replies: 2
    Last Post: 03-21-2006, 02:45 PM
  7. filter/lookup question
    By Qaspec in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 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