+ Reply to Thread
Results 1 to 3 of 3

Macro or an excel formula to filter data

  1. #1
    Forum Contributor
    Join Date
    01-05-2011
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    243

    Macro or an excel formula to filter data

    Hi,

    I am looking for a macro of an excel formula to filter the data for the Cost center selected in A2, the data should list down in A5 for that cost center details with all the account codes with subtotal on each account code.. Please help!

    Attaching the file for your reference with the filter sheet and summary sheet.

    Regards,
    Vijay
    Attached Files Attached Files

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Macro or an excel formula to filter data

    Hello,

    you can use Advanced filter for this. In Excel 2003 follow these steps:

    - Click Data > Filter > Advanced Filter
    - in the dialogue that opens, do the following:
    -- select "Copy to another location"
    -- for "List range" click the cell selection button, then click the Summary sheet and select A1 to C2037
    -- for "Criteria range" select $A$1:$A$2 on the "Filter Sheet"
    -- for "Copy to" select $A$4:$C$4 on the "Filter Sheet"
    -- Hit OK

    The filtered list will now be in your filter sheet.

    cheers,

  3. #3
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Macro or an excel formula to filter data

    hi vijanand1279, VB option, select Cost Center in A2 and press Show button

+ 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