+ Reply to Thread
Results 1 to 14 of 14

My Filter to Excel Formula

  1. #1
    Registered User
    Join Date
    09-15-2006
    Posts
    24

    Question My Filter to Excel Formula

    In the file I have a filter I use in a different system. Is there a way to convert my filter into a formula in excel to get the same result? The Data will always be located in the same cells for my reports.

    Thanks,

    Mckoy
    Attached Files Attached Files

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    Try this

    =SUMPRODUCT(--(UPPER(LEFT($C$3:$C$200,1))>="L")*(--(UPPER(LEFT($C$3:$C$200,1))<="Z")*(--($G$3:$G$200>=D16)*(--($G$3:$G$200<=D17)*(--(K3:K200))))))

    D16 = start date
    D17= End Date

    VBA Noob

  3. #3
    Registered User
    Join Date
    09-15-2006
    Posts
    24
    Thanks, this works great. However, when I linked that same formula to another workbook I get an incorrect amount.
    Last edited by mckoy_1; 11-03-2006 at 03:40 PM.

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Can you post the sheet ??

    VBA Noob

  5. #5
    Registered User
    Join Date
    09-15-2006
    Posts
    24
    ...I must be doing something wrong. I have attached two workbooks...Data and Formula.

    I basically added more rows to the formula...added 5000 rows to be exact.

    here we go!
    Attached Files Attached Files
    Last edited by mckoy_1; 11-03-2006 at 04:29 PM.

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Can you post the modified formula

    VBA Noob

  7. #7
    Registered User
    Join Date
    09-15-2006
    Posts
    24
    Sorry for some reason the formula sheet was too big, So I had to delete the formula.

  8. #8
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    Try this example

    http://cjoint.com/?ldvNkURzxG

    VBA Noob

  9. #9
    Registered User
    Join Date
    09-15-2006
    Posts
    24
    It works perfectly but I need to have this formula on a separate workbook. You see the Data will be exported from another source. I would like to link-update each time I open the formula workbook.

  10. #10
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    You just need to add the name of the workbook + tab e.g

    =SUMPRODUCT(--(UPPER(LEFT([DataB.xls]Data!$C$3:$C$5000,1))>="L")*(--(UPPER(LEFT([DataB.xls]Data!$C$3:$C$5000,1))<="Z")*(--([DataB.xls]Data!$G$3:$G$5000>=C9)*(--([DataB.xls]Data!$G$3:$G$5000<=D9)*(--([DataB.xls]Data!$K$3:$K$5000))))))

    C9 and D9 hold the dates

    VBA Noob

  11. #11
    Registered User
    Join Date
    09-15-2006
    Posts
    24
    Got It! Really do appreciated.

  12. #12
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    No Problem

    VBA Noob

  13. #13
    Registered User
    Join Date
    09-15-2006
    Posts
    24
    i got another problem...with same structure. I would like to change the alpha. For example: i have now on the previous sheet.... A - K and would to change to A - Gk....i tried changing the formula but I dont get the correct figure. Any help.
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    09-15-2006
    Posts
    24
    Any help would really be appreciated.

+ 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