+ Reply to Thread
Results 1 to 7 of 7

lookup and count if meeting criteria

  1. #1
    Registered User
    Join Date
    08-25-2010
    Location
    dubai
    MS-Off Ver
    Excel 2007
    Posts
    10

    lookup and count if meeting criteria

    Hi
    I want to use to lookup a value in another table and count the number of values which meet the criteria .

    example sheet attached.

    appreciate help
    reghu
    Attached Files Attached Files
    Last edited by reghu; 09-09-2010 at 06:38 AM. Reason: solved

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: lookup and count if meeting criteria

    Try this workbook

    With Sheet "report"
    In C4
    Please Login or Register  to view this content.
    In D4
    Please Login or Register  to view this content.
    In E4
    Please Login or Register  to view this content.
    Select C4:E4
    Drag/Fill Down

    That should call in the cavalry......

    Hope this helps
    Attached Files Attached Files
    Last edited by Marcol; 09-07-2010 at 07:25 AM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Registered User
    Join Date
    08-25-2010
    Location
    dubai
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: lookup and count if meeting criteria

    hi marcol,thanks for the reply, the formula is fine if there are only 1-5 values, but in reality i have to values from 1-36 and i split them into 4 (<=10, 11 to 20, 21 to 29 and >29) the formula would be ok for the first and last values but for the other two it would be too large, besides it might have decimal points as well..since its calculated result which is rounded off to the nearest decimal.

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: lookup and count if meeting criteria

    Try this

    In D4
    Please Login or Register  to view this content.
    Drag/Fill Down

    This will work for all versions of excel

    If you are confident that you will only be working with 2007 and later you could use COUNTIFS. I have included examples in this workbook.

    (I don't know if that is true with Macs)

    Hope this helps.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-25-2010
    Location
    dubai
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: lookup and count if meeting criteria

    thanks...i think this will work.. will check it out..

  6. #6
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: lookup and count if meeting criteria

    Glad to have helped.

    You might be able to use this in "report" D4
    Please Login or Register  to view this content.
    This would mean that if you criteria Usage > 5 changes to say Usage > 6 then the crieria Usage 2>4 will automatically change to Usage 2 > 5 and so on.

  7. #7
    Registered User
    Join Date
    08-25-2010
    Location
    dubai
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: lookup and count if meeting criteria

    thx marcol, maybe u can help out here as well ..

    http://www.excelforum.com/excel-gene...e-results.html

+ 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