Results 1 to 5 of 5

Macro for Advanced Filter

Threaded View

  1. #1
    Registered User
    Join Date
    02-11-2011
    Location
    Pennsylvania
    MS-Off Ver
    Excel 2003
    Posts
    13

    Macro for Advanced Filter

    Hey guys,

    I've been working on a spreadsheet and pretty much have it finished up except for this one extremely frustrating detail.

    The point of the sheet is to help caluculate material requirements. Column A in the example consists of text values that are being pulled from several cells on another sheet using & (for example, A2&" "&B2&" "&C2), and Column B is being pulled from the quantity of that material required for that line on the other sheet. There will be repeat values in column A.

    I need to pull the unique values out of A, and sum the required material for each one. The Advanced filter was giving me some issues when I was trying to filter the pulled in values (it was filtering the ""A2&" "&B2&" "&C2"" instead of the actual text strings they were pulling), hence why the macro pastes the values in columns C and D and does the filter on them instead.

    While this method actually works, I've noticed that it always pulls the first two lines out despite the fact that they may be unique. I've double checked everything to make sure that the values in Column A are being pulled in the same format, same spacing and all, yet it still pulls both the first and second row as unique values. Can anybody help me out and explain what might be going on here? Thanks.

    Also, if this belongs in the Excel functions section let me know, I wasn't sure which category it fell into more.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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