+ Reply to Thread
Results 1 to 8 of 8

Finding values based on multiple conditions

  1. #1
    Registered User
    Join Date
    01-30-2014
    Location
    CAMBRIDGE
    MS-Off Ver
    Excel 2007
    Posts
    4

    Finding values based on multiple conditions

    Hi Guys,
    I need help with formulas to create data for audits. My data relates to vehicle pass and fail rates at annual inspection. The government stats only take into account the first time a vehicle is presented for inspection first time and not when its retested. I've managed to find a formula to calculate the number of tests from my list using this formula
    =ArrayFormula(SUM(IF(FREQUENCY(IF(LEN(B2:B200)>0,MATCH(B2:B200,B2:B200,0),""),IF(LEN(B2:B200)>0,MATCH(B2:B200,B2:B200,0),""))>0,1)))

    My problem is that i now have to count the pass and fail rate but only on the data that is found in the formula above. I hope this makes sense.

    Thanks guys!
    Attached Images Attached Images
    Last edited by T21PAC; 01-30-2014 at 08:14 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Help with formulas!!

    Hi and welcome to the forum

    Thanks for the title chage

    Also, Please do not upload a picture of your file...rather, upload a sample of your workbook, showing what data you are working with, a few samples of your expected outcome is (manually entered is ok) and how you arrived at that. (exclude sensitive info). Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you Also, not all members can upload picture files (Company firewalls and stuff)
    Last edited by FDibbins; 01-30-2014 at 08:59 PM.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Finding values based on multiple conditions

    wow that really IS a pcture,,,from your cell phone?

    I would probably add a helper column and use a countifS() to ID the trailor passes, then use index/match with a MAX() to ID the data you wat, but its hard to say for sure. As I said above, please uplad a sample workbook, not a pic

  4. #4
    Registered User
    Join Date
    01-30-2014
    Location
    CAMBRIDGE
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Finding values based on multiple conditions

    Yep...straight from my mobile! (excuse my UK terminology.....Im from Cambridge UK not Cambridge, MA.

    I've attempted to upload a example for you guys!

    Thanks

    Untitled spreadsheet.xlsx

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Finding values based on multiple conditions

    Hi,

    My machine advises me against opening your attachment as it contains 'unreadable content' - can you please double-check?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  6. #6
    Registered User
    Join Date
    01-30-2014
    Location
    CAMBRIDGE
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Finding values based on multiple conditions

    Audit records.xlsx

    Hopefully this one will work.

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Finding values based on multiple conditions

    Ok, thanks. I can open that one.

    So what are your desired results, why, and in which cells should they be entered?

    Regards

  8. #8
    Registered User
    Join Date
    01-30-2014
    Location
    CAMBRIDGE
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Finding values based on multiple conditions

    Please bear with me because this could get confusing. Column A is just a date column. Column B is a list of all Vehicles/trailers that have been taken to a MOT station. Government stats are only calculated by the first time they are taken to the test station not when they are taken back if they fail the first test. This data is calculated into G5 using the formula that i had in my first post and works ok. But the passes and fails (column D) are also calculated in the same way, only the first test is taken into account to give the percentages for inital and final pass rate.

    I was just using =countif(C2:200,"pass") but this obviously will count every cell and i need only unique cells counted.
    Hope this makes sense
    Last edited by T21PAC; 01-31-2014 at 12:24 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Need Formulas to Hide Partial Concatenate Data and Help Determining Two Other Formulas
    By Mattdim805 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-13-2013, 04:11 PM
  2. Using Cell references in file paths for formulas to create dynamic formulas
    By MichaelStokesJr in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-04-2013, 11:49 AM
  3. Replies: 5
    Last Post: 09-25-2013, 02:51 PM
  4. Help modifying macro to wrap iferror formulas around existing formulas
    By dcgrove in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-14-2012, 02:04 PM
  5. Replies: 5
    Last Post: 05-05-2008, 02:22 PM

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