+ Reply to Thread
Results 1 to 15 of 15

How to find a result when you need to search a number of columns

  1. #1
    Forum Contributor
    Join Date
    03-19-2014
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2010
    Posts
    101

    How to find a result when you need to search a number of columns

    I have a problem that I am sure a formula will fix for me but I just cant seem to work it out, I need to search multiple columns to find a match before I want the result selected which itself will be in a different column.

    It seems to me to be an extension of the VLookup function. Attached is an example of the sort of spread sheet I am trying to pull data from. I am trying to get the result of Area 5G, for site ZZ, KPI 2.1, Date Apr-13. As well as the result for Area 5G, Site (empty), KPI 2.1, Date May-13. I hope this is not to convoluted and someone can assist.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: How to find a result when you need to search a number of columns

    Try Pivot table
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    03-19-2014
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2010
    Posts
    101

    Re: How to find a result when you need to search a number of columns

    Thanks zbor

    How I am looking to set the report up is have a drop down menu on a separate tab that will search either the Area or Site, the results will only show that area or sites results(that have been selected by the user) but will show a number of different KPI's for the selected area or site as well as say the last 6 months results for the chosen Area or site.

    The pivot table looks like it could offer this but I cant seem to get my head around how.

    I have added some detail next to your pivot table to show how I am looking to set this up.

    Cheers
    Attached Files Attached Files
    Last edited by Beach Walker; 03-19-2014 at 10:57 PM.

  4. #4
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: How to find a result when you need to search a number of columns

    Which column do you want to get result? Is that Column F? and with criteria Area, KPI, and Month?

  5. #5
    Forum Contributor
    Join Date
    03-19-2014
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2010
    Posts
    101

    Re: How to find a result when you need to search a number of columns

    azumi yes I'm looking to get the result from column F in sheet 1, with the criteria searched 'Area' or 'Site'(both of these will be on the same drop down menu), this search will then populate against the 'KPI' and 'Month'.

  6. #6
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: How to find a result when you need to search a number of columns

    Hope it helps, please see the file
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    03-19-2014
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2010
    Posts
    101

    Re: How to find a result when you need to search a number of columns

    That helps a lot azumi, I have never used INDEX and MATCH, how about if the drop down menu at F2 on sheet 4 had the area codes(4G and 5G) as well as the possible site codes(AZ and ZZ). Basically this will allow me to search either the area or the site with one drop down menu.

    Listed like this in the drop down menu
    4G
    AZ
    5G
    ZZ

  8. #8
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: How to find a result when you need to search a number of columns

    Ok perfecting formula as u wish and data validation as well
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    03-19-2014
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2010
    Posts
    101

    Re: How to find a result when you need to search a number of columns

    Awesome that looks like it will sort it out for me, now I just need to spend some time to understand the formula. How do you put { } on the start and end of the formula? I can't manually enter it, what impact do they have on the formula?

  10. #10
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: How to find a result when you need to search a number of columns

    That's sign for array formula not to ENTER manually, it will comes up when you press CTRL-SHIFT-ENTER button together, ENTER alone is not sufficient....

  11. #11
    Valued Forum Contributor
    Join Date
    02-05-2013
    Location
    Jakarta, Indonesia
    MS-Off Ver
    Excel 2013
    Posts
    571

    Re: How to find a result when you need to search a number of columns

    If you see this { } on the formula, you must hit Ctrl+Shift+Enter, if the { } gone, your result will be wrong.
    Click (*) if you received helpful response.

    Regards,
    David

  12. #12
    Forum Contributor
    Join Date
    03-19-2014
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2010
    Posts
    101

    Re: How to find a result when you need to search a number of columns

    Is there no way of searching the two columns A and B in Sheets 1 to identify the look up value either 4G,5G,AZ,ZZ the reason I ask is because there will not always be a 'G' in the area, it could be varied but will never have the exact same letters and numbers. If I could look up the two columns it would make it much easier for me, in the report i'm going to build there could be 20 different codes in Area(column A) and even more codes in Site(column B).

  13. #13
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: How to find a result when you need to search a number of columns

    Change formula to:

    =IFERROR(INDEX(Sheet1!$F$2:$F$29,MATCH(1,(Sheet1!$A$2:$A$29=$C$2)*(Sheet1!$C$2:$C$29=$B5)*(Sheet1!$E$2:$E$29=C$4),0)),INDEX(Sheet1!$F$2:$F$29,MATCH(1,(Sheet1!$B$2:$B$29=$C$2)*(Sheet1!$C$2:$C$29=$B5)*(Sheet1!$E$2:$E$29=C$4),0)))

    copied and press CTRL-SHIFT-ENTER button together

    and drag down and cross
    Attached Files Attached Files

  14. #14
    Forum Contributor
    Join Date
    03-19-2014
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2010
    Posts
    101

    Re: How to find a result when you need to search a number of columns

    Thanks Azumi that is exactly what I am looking for. Really appreciate your help.

  15. #15
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,368

    Re: How to find a result when you need to search a number of columns

    Yes you're welcome, happy to help

+ 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. Search, find and add the result in a specific location
    By john55 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-13-2011, 10:42 AM
  2. Find column character search result
    By Lithium in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-09-2009, 12:05 PM
  3. How to use Form to Find and Display Search Result
    By xinzie in forum Excel General
    Replies: 1
    Last Post: 03-28-2009, 05:46 AM
  4. Search in Mulitple Columns and Return Corresponding Column/Row Result
    By JLRO in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-05-2008, 10:42 AM
  5. Search another Workbook to find result
    By brown_toby in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-30-2006, 04:14 PM

Tags for this Thread

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