+ Reply to Thread
Results 1 to 8 of 8

Help with complex what-if formula to reduce multiple variables to one and filter data?

  1. #1
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Help with complex what-if formula to reduce multiple variables to one and filter data?

    Hi all,

    I received great help from GlennKennedy, thank you very much, in this thread on a similar theme.

    Basically, I have a large set of data composed of separate days (rows) and multiple columns (metrics/variables). Filtering/sorting this data can be time consuming and complex , so I got the idea that I could summarize several conditions in one variable/metric.

    Thanks to the great help from GlennKennedy, I was able to create a 'pattern' metric based on three of my current variables. This has made it so much easier to sort through my data and I can even quickly visualize that day based on what that metric alone tells me.

    To summarize.

    I have variable 1 = LH, variable 2 (time data) = 10:15 and variable 3 (time data) = 15:55. Now, I chose to summarize this into one variable/metric which simply reads: "LH_10-16:00"

    Obviously much faster to filter and also faster for my brain to process.

    I'm now interested in possibly taking this a step further and including even more variables...

    So, my question is basically if this is possible using the same type of formula? Or are there limits to the amount of variables one may include?

    Any other suggestions for how to quickly filter/sort through large datasets? Basically, I'm interested in finding similar occurences/patterns in my data set. The trick above helps as a preliminary divide-and-conquer filter.

    I'm attaching a picture of what Glenn helped me with and also the associated Excel sheet.

    Thanks in advance for any help.

    Best regards,

    Elijah
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: Help with complex what-if formula to reduce multiple variables to one and filter data?

    One modification I could see myself making would for example be to include if the Close (as seen on picture and in spreadsheet) is positive/negative.

    If so, the pattern could read LH_10-1600 - or LH-10-16:00+.

    This basically let's me sort 4 variables in one go.

  3. #3
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: Help with complex what-if formula to reduce multiple variables to one and filter data?

    Any advice...?

  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: Help with complex what-if formula to reduce multiple variables to one and filter data?

    Have you tried to just add the extra conditions, yourself yet?
    Not having been involved in this, its a bit hard to follow Glenn's logic and process
    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

  5. #5
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: Help with complex what-if formula to reduce multiple variables to one and filter data?

    Hi,

    No, I haven't. I would if I could, but the formula Glenn used is a bit above my current capabilities.

  6. #6
    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 complex what-if formula to reduce multiple variables to one and filter data?

    This is his formula...
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If you convert back to range, it looks like this (so you can see the actual ranges being used)...
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If you look closer, you will see that it consists of 2 INDEX/MATCH functions. Each 1 has a bunch of conditions it tests. I have bolded 2 sets of tests in each version (they are exactly the same thing), they are combining entries together that meed the test. So if you need to add an extra test, you could do it there, depending on what you are trying to add.

    (I know, I know, that didnt even sound understandable to me, either lol)

  7. #7
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: Help with complex what-if formula to reduce multiple variables to one and filter data?

    Appreciate the effort, FDibbins.

    I will see if I can make sense of it tomorrow. This week has been crazy at work, so no time to look into this yet.

    But I do know that the most likely modification I'd like to do is to add the Close value to the Pattern, i.e., if positive Close: LH + (or some similar notation to differentiate); if negative Close; LH -.

    Best.

    Elijah

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,681

    Re: Help with complex what-if formula to reduce multiple variables to one and filter data?

    I may be oversimplifying the issue, however if the only modification needed is to add either a + or - depending on the value in the 'Close' column then you could append Glenn's formula with ...&" "&IF([@Close]>=0,"+","-") as modeled in rows 21:24 of the attached file.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Complex Scatterchart with multiple variables
    By marca in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-30-2017, 11:15 AM
  2. How to change two variables when a data table doesn't work
    By bluelillies in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2016, 10:53 PM
  3. [SOLVED] How to reduce multiple IF functions in formula
    By Regina HR in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 09-18-2014, 07:17 AM
  4. [SOLVED] Very complex formula dealing with many variables
    By BeachRock in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-28-2013, 04:59 PM
  5. How to sum row in order to multiple variables filter
    By asada in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-16-2012, 10:02 AM
  6. [SOLVED] reduce public variables
    By RB Smissaert in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-18-2006, 02:20 AM

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