+ Reply to Thread
Results 1 to 4 of 4

Formula to Extract Data

  1. #1
    Registered User
    Join Date
    01-18-2014
    Location
    Seychelles
    MS-Off Ver
    Excel 2007
    Posts
    9

    Formula to Extract Data

    Dear Excel Users

    I need a formula or technique that will pull the data easily from the Analysis Tab

    ◘This has about 5,000 rows with a number of different entities / countries in Column E - for now I have just shown two countries data.

    ◘The formula would look at columns E to K in and will populate in the Data Tab the following:

    Entity - Specify which entity it relates to - in this case France and Germany
    Category - From Column E in Data Sheet
    Account Line - From Column F in Data Sheet
    MIAP - Column F in Data Sheet
    m_cost - Column I in Data Sheet
    Var. - Column J in Data Sheet
    % - Column K in Data Sheet

    It will only pull data for the following:
    If Variance >1% and $1m then pick the Category from Data Sheet, otherwise ignore
    If Variance <1% and $1m then pick the Category from Data Sheet, otherwise ignore

    So if Variance is say 1,713 but % is <0% - ignore

    If Variance is 11,742 and % is 4% - take the value

    If variance is (2,158) and Var. is (27%) - take the value

    In other words the Absolute Value
    Attached Files Attached Files
    Last edited by Forex-Forex; 01-24-2014 at 03:21 AM. Reason: Clarification

  2. #2
    Registered User
    Join Date
    01-18-2014
    Location
    Seychelles
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Formula to Extract Data

    Can this be done using a formula or will a macro be needed - If so, can someone kindly advise how to write it?

  3. #3
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Formula to Extract Data

    You'll absolutly need a VBA macro.
    I'll look into this but it might take some time.
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  4. #4
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Formula to Extract Data

    Here is a simple macro that would transfer to your Analysis tab all entries fulfilling your requirements.
    Please Login or Register  to view this content.
    I also attached a workbook with the macro. Give it a try.
    I had no clue about sub-totals or totals so they are part of the transfer. If you find a way to flag them, the macro can be modified to prevent their transfer.
    The only clue I had about the Entity was its interior colorindex (42). All your data should have the same color setup.
    Hope this helps. It is crude but it seems to work well.
    Attached Files Attached Files

+ 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] Formula to extract certain data
    By leah72 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-13-2013, 02:00 PM
  2. Need a Formula that extract certain data
    By Waynej4t in forum Excel General
    Replies: 3
    Last Post: 11-12-2012, 05:36 AM
  3. Formula to use to Extract Data
    By lbernadel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-21-2009, 10:16 AM
  4. Extract data from a formula
    By Cumberland in forum Excel General
    Replies: 1
    Last Post: 03-15-2007, 01:59 PM
  5. [SOLVED] NEED FORMULA TO EXTRACT DATA
    By Kulin Shah in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-18-2006, 12:50 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