+ Reply to Thread
Results 1 to 9 of 9

How to get correct values without applying filters

  1. #1
    Forum Contributor
    Join Date
    08-12-2010
    Location
    Excel World
    MS-Off Ver
    Excel 2013, 2019 & O365
    Posts
    214

    How to get correct values without applying filters

    Hi All,

    I need your help to find the correct values by formulas.

    I have data in four Columns
    Col A - Country Name
    Col B - Vehicle Type
    Col C - Price 1
    Col D - Price 2

    I have to 1st identify the Country Name (col A), then find out the correct "Price 2" value (col D) of a particular Vehicle Type (col B)

    Now I have to identify/arrange the data from these columns to a new layout, where I know how to identify the results from col D.
    I just apply the 1st filter on a Country Name (col A),
    2nd filter on Vehicle Type (col B),
    3rd filter on Price 2 (col D)

    The attached file has the both the layouts... Please help me!

    Thanks in advance!
    With Regards,
    SunOffice
    Last edited by SunOffice; 11-24-2013 at 06:31 PM.
    Excelforum is Completely Awesome! True learning with Live Examples & Best Techniques!!

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to get correct values without applying filters

    Hi there.

    1 Way is using this ARRAY formula in I2 and copy down and across.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    ...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.

    OR using SUMPRODUCT function.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by Fotis1991; 11-24-2013 at 03:59 PM.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

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

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to get correct values without applying filters

    like this formula in I2 filled across then down
    =INDEX($D$2:$D$120,MATCH($H2&I$1,INDEX($A$2:$A$120&$B$2:$B$120,0),0))
    ps(your original had calculation set to manual)
    [pps no arrays were abused in the construction of this function ]
    Last edited by martindwilson; 11-24-2013 at 04:07 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Contributor
    Join Date
    08-12-2010
    Location
    Excel World
    MS-Off Ver
    Excel 2013, 2019 & O365
    Posts
    214

    Re: How to get correct values without applying filters

    Thanks you Fotis1991, .....Sumproduct is the best!

    Thank you martindwilson, .... I have seen the formulas in the workbook. So do you mean I don't need to apply Arrays by Ctrl+Shift+Enter keys? ...Awesome!

    I have also figure out another formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    ...but i don't know if it will work on Excel 2003 application too.

    btw... I have a query to both of you, Please let me know how can use the entire column instead of a range in your formulas, like in the AVERAGEIFS formula, I have taken D:D, A:A columns.
    Last edited by SunOffice; 11-24-2013 at 04:29 PM.

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to get correct values without applying filters

    Averageifs does not works in Excel<2003.

    To use whole column reference is not a good idea. As a rule the calculations of your sheet will be much more slow...Special when we use ARRAY formulas.

  6. #6
    Forum Contributor
    Join Date
    08-12-2010
    Location
    Excel World
    MS-Off Ver
    Excel 2013, 2019 & O365
    Posts
    214

    Re: How to get correct values without applying filters

    Alright Fotis1991!! I will take the ranges, not the entire columns.

    Btw... Since the AVERAGEIFS formula also gives us the results... but is it the accurate as per my need (plz see the 1st post above)?
    and which is the fastest formula/technique?

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to get correct values without applying filters

    Your one(with a small modification!should be the faster.

    In I2 and copy down and across.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to get correct values without applying filters

    well you might as well use sumifs then
    =SUMIFS($D:$D,$A:$A,$H2,$B:$B,I$1)

  9. #9
    Forum Contributor
    Join Date
    08-12-2010
    Location
    Excel World
    MS-Off Ver
    Excel 2013, 2019 & O365
    Posts
    214

    Re: How to get correct values without applying filters

    Thanks a ton to you both genius!

+ 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. Checking values between cells and then applying filters/hide rows
    By andie2013 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-26-2012, 11:28 AM
  2. Replies: 3
    Last Post: 10-09-2012, 03:55 AM
  3. Applying filters
    By jimz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-14-2011, 07:49 AM
  4. Whne applying filters more rows are deleted that required. Not enough space for accur
    By boc_est1986 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-15-2009, 05:34 AM
  5. Replies: 1
    Last Post: 10-24-2007, 08:31 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