+ Reply to Thread
Results 1 to 5 of 5

Need quick help filtering data

  1. #1
    Registered User
    Join Date
    04-16-2008
    Posts
    14

    Need quick help filtering data

    All:
    I have the following table:


    1 2

    - -
    - B
    A -
    - -
    - -


    There are dashes in some rows and then and A and a B in one row for each column.

    How can i do a search of a column and find out what letter is being displayed. IE - what letter is in the column, ignore all the dashes.

    Any help would be great. thanks!

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    Do you want this information returned to specific cells or are you just looking for the information? If you do an autofilter (data dropdown), the dropdown list on each column should just give you the options what's in that row (e.g. a letter or a -). If you want a formula for a cell, let us know and we can work one out.

    ChemistB

  3. #3
    Registered User
    Join Date
    04-16-2008
    Posts
    14
    Thanks for the reply. Yes i know the excel autofilter but i do need the exact letter returned in an exact cell. I could do it in VBQ using loops but i want to avoid that because my spreadsheet has too much data and is slow as is.

    I was thinking of using a function of =MAX or =COUNT or something like that but i didnt know one that returned the value of just one cell.

    If it helps, i could have it return a number and not a letter. Then i could just vlookup the letter from the number. Thanks!

  4. #4
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852
    Is there only one letter per column?
    Which letters? All? A, B, C
    Last edited by Portuga; 04-16-2008 at 06:23 PM.
    If you found the solution to your question. Mark the thread as "Solved"
    Thank everyone that helped you with a valid solution by clicking on their

    There is no such thing as a problem, only a temporary lack of a solution

  5. #5
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    If you apply AutoFilter to a column, it will give you a drop-down that will show every element in the column without duplicates. That will show it to you.

    If you want it in a cell, the array formula

    =INDEX(A1:A15,MAX(--(A1:A15<>"-")*(A1:A15<>"")*ROW(A1:A15)),1)

    will return the last non"-" entry in A1:A15.

    Array formulas are confirmed with Ctrl-Shift-Enter (Cmd-Return for Mac)
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

+ 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