+ Reply to Thread
Results 1 to 7 of 7

Add another column to simple macro, to find more data.

  1. #1
    Forum Contributor
    Join Date
    12-12-2017
    Location
    New Zealand
    MS-Off Ver
    MS 365
    Posts
    540

    Lightbulb Add another column to simple macro, to find more data.

    Hello all,

    In this sample sheet I have a macro called Test10DISTTIMEx3. There is a quick button at top of sheet. Ultimate test is on a 620,000 row sheet.

    What the macro does is looks at every different name in col AH, then looks in col Q for each distance, then looks in col AM and then results in
    cols BJ:BL the last three times that were run but only for each different distance.

    I have made a macro that can go up to 50 cols wide, but I want to add a second and third, even a forth layer to this macro. Have tried but failed.

    When I say layer, this one first looks at col Q distance but now I want to add in col AB.
    So results in cols BJ:BL would result any distance and condition, then I would like to make another macro with a third layer and use col AC.

    If this can be done, hopefully I can figure out how to add a third layer or col.
    In theory, if a col got added to this macro, the amount of results should reduce quite dramatically.

    But as I say I'm looking to just add one col at a time.
    Thanks.
    Attached Files Attached Files
    I am grateful for all answers to my questions .
    Also i give a reputation even if not answered .

  2. #2
    Valued Forum Contributor MikeVol's Avatar
    Join Date
    12-30-2020
    Location
    Odessa / Ukraine
    MS-Off Ver
    MSO Prof Plus 2021 x64 (En)
    Posts
    578

    Re: Add another column to simple macro, to find more data.

    Hello @I need excel help. Maybe I misunderstood you. But try the following modification of your code.
    Please Login or Register  to view this content.
    NOTE: As the original poster/owner, only you can mark your thread as SOLVED (Thread Tools above Post #1).
    You can say "Thanks" in your thread to everyone who offered to help you.
    You can also reward them by clicking * "Add Reputation" under their username on the left.
    With Regards, MikeVol.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,297

    Re: Add another column to simple macro, to find more data.

    Please Login or Register  to view this content.
    A macro per condition (assuming I have understood your requirement)
    Attached Files Attached Files
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    Win10/MSO2016
    Posts
    13,001

    Re: Add another column to simple macro, to find more data.

    One more:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Ben Van Johnson

  5. #5
    Forum Contributor
    Join Date
    12-12-2017
    Location
    New Zealand
    MS-Off Ver
    MS 365
    Posts
    540

    Re: Add another column to simple macro, to find more data.

    Thanks, MikeVol and John, I have quickly tested all four macros out and I can see they all work perfectly.

    Let me do some testing over next few days and I will return. Just have seen Bens come thru as well, so will return.
    Thanks.

  6. #6
    Forum Contributor
    Join Date
    12-12-2017
    Location
    New Zealand
    MS-Off Ver
    MS 365
    Posts
    540

    Re: Add another column to simple macro, to find more data.

    This post is solved, thanks to all who helped.

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,297

    Re: Add another column to simple macro, to find more data.

    Glad to help: thank you for the rep and feedback.

+ 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] Find multiple averages from one column of data using one simple formula?
    By Morgan44 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-17-2020, 05:33 PM
  2. [SOLVED] Simple Find Next Macro?
    By liquidmettle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-22-2015, 11:13 AM
  3. [SOLVED] How to find two values in one column (sounds so simple..)
    By FlorisL in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-11-2014, 04:04 PM
  4. Replies: 0
    Last Post: 08-17-2011, 10:09 AM
  5. Replies: 1
    Last Post: 05-06-2011, 03:08 AM
  6. [SOLVED] Simple find macro
    By dziw in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-29-2007, 10:09 AM
  7. Help with a simple macro - copy data into a column
    By Dexx in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-13-2007, 08:48 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