+ Reply to Thread
Results 1 to 8 of 8

Where To Begin Turning My Idea Into A Script? Dataset Manipulation

  1. #1
    Registered User
    Join Date
    05-26-2004
    Posts
    18

    Where To Begin Turning My Idea Into A Script? Dataset Manipulation

    prototype.jpg

    I'm interested in a general understanding of how to start to go about this. What script commands I will be using, what the structure of the script is most likely to look like. I will try to work out the details when I have a better understanding.

    From the image:
    Compare G2 to G3, G4 etc... G2 and G3 same therefore run script to manipulate data in this set then output results as needed (will be to one row). Once complete compare G4 to G5, G6 etc... G4 and G5 same therefore run script to manipulate data in this set then output results as needed.
    Etc, etc, etc...

    Thx in advance!

  2. #2
    Registered User
    Join Date
    05-26-2004
    Posts
    18

    Re: Where To Begin Turning My Idea Into A Script? Dataset Manipulation

    Bumping with additional info.

    I have a feeling this won't be easy and there will be somekind of looping - each dataset is isolated from the other data and has it's own side script that manipulates the data how I want - the results are output and then the main script returns and keeps going to the next dataset. Can anyone get me on the right track? I don't mind spending time on educating myself on vba but I'm trying to avoid wasting time on things that won't be part of the solution.

  3. #3
    Registered User
    Join Date
    05-26-2004
    Posts
    18

    Re: Where To Begin Turning My Idea Into A Script? Dataset Manipulation

    Bump...

    I hope my question isn't too vague. I guess what I'm looking for is how to go about with the nested decision structures - I assume I'll need at least one or two "for loops" and some If/Then statements. But if I use a "for loop" on the G column then I would somehow need to isolate all the rows that have the same value consecutively in the column and then run another nested structure to work on that data. Am I on the right track? Will it be pretty complex?

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Where To Begin Turning My Idea Into A Script? Dataset Manipulation

    I've read all three of your posts and don't have a glimmer of a clue as to what you're trying to do.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    05-26-2004
    Posts
    18

    Re: Where To Begin Turning My Idea Into A Script? Dataset Manipulation

    Is the image I attached showing up? Let me try one more time and I'll move on if it's still not clear.

    The G column in the image has cells with values of "fail" and "pass". I'd like to be able to have the script check these cells. So in the image G2 and G3 are both "fail", G4 is not. Therefore the script creates a range (or dataset - not sure what the right terminology is) out of A2:F3 which can then be analyzed/manipulated and once analyzed the output is sent to another worksheet. The script will then move on to checking G4 against G5, G6. Since G4 and G5 are both "pass" and G6 is not, the script creates a range out of A4:F5. And so on. The values in G column will be random.

    I'm not sure how to nest all this and what the general decision structure is going to look like. I suppose I will be using a bunch of "for loops" and if/then/else statements but I don't know enough about excel vba to be sure.

  6. #6
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: Where To Begin Turning My Idea Into A Script? Dataset Manipulation

    What manipulation will you be doing to the data? that could be relevant to giving you the best solution.

    anyway this is a loop for you you need to put some action in it of course!

    Please Login or Register  to view this content.
    If you want something done right... find a forum and ask an online expert.

    Time flies like an arrow. Fruit flies like a banana.

  7. #7
    Registered User
    Join Date
    05-26-2004
    Posts
    18

    Re: Where To Begin Turning My Idea Into A Script? Dataset Manipulation

    Thx for the example! The manipulation of the range data may itself include a loop and if/then/else statement or two. One specific thing would be checking the highest and lowest integers in the range - and depending on what row/column they are in - I would output the results differently. Also any arithmetic would be part of working with the data in the range. If I can get an understanding of the general structure that the script will take I can whittle down into the details. I'm thinking this project may take easily 20 hours - and the more I can pinpoint what I need to study in vba the more time I can save. It may turn out that my only option is to hunker down and to really learn about vba or even hire someone to do this - so that's part of what I'm trying to figure out.
    Last edited by brazen234; 11-10-2017 at 06:04 PM.

  8. #8
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: Where To Begin Turning My Idea Into A Script? Dataset Manipulation

    Well you can use
    WorksheetFunction.Max() and WorksheetFunction.Min()

    and then put that into WorksheetFunction.Match() to use the excel functions
    eg

    Please Login or Register  to view this content.
    "a" of course being your range.

    I imagine you can ask a series of specific questions on the forum as they come up and we can 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. Replies: 3
    Last Post: 10-20-2017, 12:40 AM
  2. [SOLVED] Script or Macro to Copy range of cells to every row of another dataset?
    By weirdaljr in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-29-2015, 01:04 PM
  3. Text Filter-begin With... (multiple Begin Withs?)
    By hariexcel1987 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-02-2013, 02:12 PM
  4. Taking a range as an argument, and turning it into an array for manipulation
    By Huugin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-25-2012, 07:48 AM
  5. Copying a dataset multiple times - and selecting titles for this dataset
    By alocke in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-07-2012, 10:15 PM
  6. Text Filter-Begin with... (multiple begin withs?)
    By flyflipper in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-16-2010, 06:29 PM
  7. Replies: 2
    Last Post: 12-18-2005, 08:20 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