+ Reply to Thread
Results 1 to 7 of 7

Filter using row and column

Hybrid View

  1. #1
    Registered User
    Join Date
    08-17-2009
    Location
    Mumbai India
    MS-Off Ver
    Excel 2007
    Posts
    61

    Filter using row and column

    Hi All,
    I have set of data(attached example file) in which i have to categorize the data depending on the LOC (column C) which is below 1000,between 1000-3000 and greater than 3000.
    Once i have filtered data i need to get the counts for each impacts.
    I have put the sample output in next tab(sheet 2)

    Need help here
    Attached Files Attached Files
    Last edited by raghunaik; 10-20-2009 at 06:43 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Filter using row and column

    I confess I'm not entirely sure I follow as I can't validate your "suggested" results to your sample data... I would have expected something like the below for the first category (< 1000)

    B4:
    =SUMPRODUCT((Sheet1!$C$3:$C$14<1000)*(Sheet1!$D$1:$U$1=B$3)*ISNUMBER(Sheet1!$D$3:$U$14))
    copied to D4
    
    B5:
    =SUMPRODUCT((Sheet1!$C$3:$C$14<1000)*(Sheet1!$D$1:$U$1=B$3)*Sheet1!$D$3:$U$14)
    copied to D5
    If the above is not what you want then can you elaborate further as to why the results in your file are as you suggest because I for one could not fathom.

  3. #3
    Registered User
    Join Date
    08-17-2009
    Location
    Mumbai India
    MS-Off Ver
    Excel 2007
    Posts
    61

    Re: Filter using row and column

    thanks for your reply
    formula works fine for the data i have.. i was just thinking what if i have more columns and more rows(assuming i have 25 more rows and 25 more columns ).. how could i make the formula more generic regardless of data in the sheet..

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Filter using row and column

    ...adjust the ranges

    (if you need specific examples provide specific information)

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Filter using row and column

    Look at using Dynamic Named Ranges in your formulas
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  6. #6
    Registered User
    Join Date
    08-17-2009
    Location
    Mumbai India
    MS-Off Ver
    Excel 2007
    Posts
    61

    Re: Filter using row and column

    I understood the part of adjusting the ranges but don't have clue about
    using Dynamic Named Ranges in the formula

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Filter using row and column

    for general info. on names and DNRs see: http://www.contextures.com/xlNames01.html

    however, I would add that given the complexity of the formula this might not be trivial for you to setup - if in doubt post back with more specific info.

+ 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