+ Reply to Thread
Results 1 to 9 of 9

Not sure which formula (PIVOT, MATCH, FIND, e.t.c)......

  1. #1
    Registered User
    Join Date
    05-31-2015
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    13

    Not sure which formula (PIVOT, MATCH, FIND, e.t.c)......

    Hello,
    I need help with this spread sheet. Here is what I want to achieve.
    My focus columns are: A, B, C, G & H
    I want to create a table based on Column G & H that will match only those agencies (Column B) that are MB (Column G) and at the same time are DO (Column H). In order words, I want to see the listings of agencies that are MBDO (Column G&H). Is there a formular that to use without having to sort.
    Other listings of agencies I want to achieve are:
    MBPT
    DRDO
    DRPT

    Can one use a Pivot table to achieve this or a MATCH formula

    Thank you.
    Attached Files Attached Files

  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: Not sure which formula (PIVOT, MATCH, FIND, e.t.c)......

    This ARRAY formula will do what you want...
    =IFERROR(INDEX(Op_Exp_Mode_function!A$2:A$3000,SMALL(IF((Op_Exp_Mode_function!$G$2:$G$3000="MB")*(Op_Exp_Mode_function!$H$2:$H$3000="DO"),ROW($A$2:$A$3000)-2),ROWS($A$1:A1))),"")
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    You change the hard-coded MB and DO to cell references, and enter your dcelection there

    However, if you really have a lot of data, ot may start to slow things down, so a PT may work for you
    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
    Registered User
    Join Date
    05-31-2015
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    13

    Re: Not sure which formula (PIVOT, MATCH, FIND, e.t.c)......

    Thank you for your response. But please can you work on the excel file I attached earlier and reattach it back?

    Thanks again.

  4. #4
    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: Not sure which formula (PIVOT, MATCH, FIND, e.t.c)......

    No need to upload teh file. Put that in sheet3 A2, using CTRL SHIFT ENTER, then copy down and across

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Not sure which formula (PIVOT, MATCH, FIND, e.t.c)......

    You can do what you want by using the Advanced Filter found on the Data tab.
    You already have copied the column headers to Sheet3.
    Enter MB and DO in columns G and H respectively.

    With Sheet3 the active worksheet, click on the Filter tab, Advanced filter.
    Click on Copy to another location. Click in the List Range field and select the data including the headers on the Op_Exp_Mode_function worksheet.
    In the Criteria Range select the Headers and criteria on Sheet3 (A1:I2)
    In the Copy to enter A5 and click OK.

    All the records from Op_Exp_Mode_function that match MB DO will be filtered onto Sheet3.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  6. #6
    Registered User
    Join Date
    05-31-2015
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    13

    Re: Not sure which formula (PIVOT, MATCH, FIND, e.t.c)......

    Hello Again,

    Thanks for your help so far.

    Please I do need another help. I do have 2 worksheets. The first worksheet (ALL DATA) has the complete list of agencies and series of data. The agencies do appear multiple times on column C. On my second worksheet (VOMS by MODES), I was able to remove all multiple occurrencies of these agencies. Now, I want to total the numbers of each agencies Vehicles operated from ALL DATA column J, based on the categories of MBDO, MBPT, DRDO, DRPT. I have attached the spreadsheet I'm working on.
    Thank you.
    Attached Files Attached Files

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Not sure which formula (PIVOT, MATCH, FIND, e.t.c)......

    I added 4 columns to ALL DATA for MBDO MBPT DRDO DRPT (columns V,W,X,Y) with this formula entered in 'ALL DATA'!V4 and filled down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The MB and DO were changed to MB and PT, DR and DO, and DR an PT as appropriate in columns W, X and Y.
    This formula was then entered in 'VOMS by MODES'!E4 and filled across and down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    05-31-2015
    Location
    Florida
    MS-Off Ver
    2013
    Posts
    13

    Re: Not sure which formula (PIVOT, MATCH, FIND, e.t.c)......

    Many many Thanks.

    This works fine.

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Not sure which formula (PIVOT, MATCH, FIND, e.t.c)......

    Thank you for the feedback.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] Vlookup to Pivot Table, using Match function, returns error if can't find match value
    By AndrewHowarth in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-16-2015, 12:10 AM
  2. [SOLVED] Find, Match and Populate Formula
    By Blu3St@r in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 04-06-2014, 10:50 PM
  3. Range.Find function fails to find a match but For loop confirms that match exists
    By 6StringJazzer in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-08-2013, 03:35 PM
  4. formula to find where there is no match for a string
    By mcranda in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-07-2013, 10:58 AM
  5. [SOLVED] IF/Find formula - Differentiating between two character match and three character match
    By ExcellentM in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-20-2012, 02:16 PM
  6. Replies: 5
    Last Post: 02-29-2012, 08:51 PM
  7. Find first nonblank cell row # in pivot table using MATCH
    By Space Elf in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-14-2006, 05:55 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