+ Reply to Thread
Results 1 to 4 of 4

Highlight specific values and use these values in subsequent calculations

  1. #1
    Registered User
    Join Date
    03-15-2017
    Location
    Maastricht
    MS-Off Ver
    2010
    Posts
    2

    Highlight specific values and use these values in subsequent calculations

    Hi,

    I'm a bit struggling right now because I think I'm going to give myself waaaay to much work when I'm going to do everything manually.
    So here's the thing. I have about 200+ raw data files and I copy and paste some of the data (4 columns) of these raw files into an a new document. So that's going to be 1 sheet for every file, so 1 document with a lot of sheets. See image for how the sheets will look like, don't look at the numbers these are made up because it's an example https://image.ibb.co/dEZqiv/Example.png

    For every new sheet I have to do exactly the same except for one small difference, here are the actions required:
    - Paste the first 4 columns
    - Calculate column E,F,G (formulas are the same for every sheet)
    - I have to look at the first graph (top one)
    - Decide which part of the first graph I'm going to use (for example: 9 until 25)
    - Highlight included period (in the example highlighted green)
    - Make a new graph with that time period (bottom one)
    - All the averages below are calculated with that time period

    So the difference for every sheet is the highlighting part, and thereby affecting the graph and the calculated averages.
    So I was thinking, is there a possibility to just paste the 4 columns, look at the graph, highlight the included period and excel will do everything else for me? And if so, how?

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

    Re: Highlight specific values and use these values in subsequent calculations

    what are the type of your 200+ files? TXT? CSV? XLS?
    A macro could automatically
    1.transfer the 4 columns of every files into a new sheet.
    2. Adjust the formulas to the data transfered.
    3. and may be adjust the graph to the data transfered

    Can the highlighting be automated? What are your criterias?
    If so, this could be added to the macro.

    First, let start with the transfer and we'll look into other part of your project later on.
    Pierre Leclerc
    _______________________________________________________

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

  3. #3
    Registered User
    Join Date
    03-15-2017
    Location
    Maastricht
    MS-Off Ver
    2010
    Posts
    2

    Re: Highlight specific values and use these values in subsequent calculations

    The 200+ files are XLS files. In the time that has passed, I've already transferred 80% of the data into the new sheets so a macro for that won't be necessary anymore.
    There are no real criteria for the selected range needed to create the new graph and calculate the averages. It is all very subjective so a macro could not do that.
    However, what I'm looking for, and I think a macro could do, is give some sort of pop-up in which I need to select the correct range. And then the macro will create the graph and calculate the averages and highlight the included values.

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

    Re: Highlight specific values and use these values in subsequent calculations

    that coul be done but you'll have to attach a workbook with samples of your data to work with.

+ 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] Highlight values when specific sum (require modification)
    By keshavtale in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-28-2015, 04:38 AM
  2. Highlight values when specific sum
    By keshavtale in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-28-2015, 01:15 AM
  3. [SOLVED] Highlight specific values through vba code
    By keshavtale in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-15-2015, 09:07 AM
  4. Loop through column and copy specific values to another sheet for calculations
    By caoexcel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-06-2013, 02:49 PM
  5. [SOLVED] Look Up Values in row Table and return - subsequent row values
    By timharding in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-30-2013, 10:45 AM
  6. Replies: 0
    Last Post: 10-12-2012, 01:08 PM
  7. highlight cells with values outside a specific range
    By excel_dumdum in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 09-21-2009, 09:40 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