+ Reply to Thread
Results 1 to 6 of 6

Simplify a process using formulas and macros (or other options will be accepted)

  1. #1
    Registered User
    Join Date
    06-13-2017
    Location
    Ontario, Canada
    MS-Off Ver
    Offic 365
    Posts
    16

    Simplify a process using formulas and macros (or other options will be accepted)

    We have to run confirmation of data as of certain dates, however, if that date is in the past, some entries may have been paid out but should be included. (I have attached a spreadsheet of sample data)

    I am looking at creating a template spreadsheet, that allows me to enter new information into the blue text area of the spreadsheet, and also change the request date based on scenario, and hit a button so that it filters the information and leaves only what I need.

    Tab one is the FULL DATA - which includes everything that I would import from the system.
    Tab two END RESULT REQUIRED - shows the information that after hitting the button will provide.

    Example:
    In the attached the Request date is 28-Feb-2023

    We need to capture all amounts that were "issued" as of that date.

    Therefore, it needs to capture anthing that has a State of "I", and also include any entries that have a Paid Out date after the request date.

    Then will sort by Equity Type then Transaction Date (oldest to newest)
    Attached Files Attached Files

  2. #2
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2402-17328.20068
    Posts
    1,361

    Re: Simplify a process using formulas and macros (or other options will be accepted)

    Maybe the below in cell A5 of the 'END RESULT REQUIRED' tab:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If things don't change they stay the same

  3. #3
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: Simplify a process using formulas and macros (or other options will be accepted)

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  4. #4
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Simplify a process using formulas and macros (or other options will be accepted)

    Try this option

    Please Login or Register  to view this content.
    Last edited by maniacb; 04-26-2023 at 03:37 PM. Reason: Improve processing speed

  5. #5
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Cool Try this !


    According to the Macro Recorder an Excel basics VBA demonstration as a beginner starter :

    PHP Code: 
    Sub Macro1()
        
    With [A4].CurrentRegion
             
    If .Parent.FilterMode Then .Parent.ShowAllData
            
    .AutoFilter 4"="2">" Format([B2], "yyyy/mm/dd")
            .
    Sort [F4], 1Header:=1
        End With
    End Sub 
    ► Do you like it ? ► So thanks to click on bottom left star icon « Add Reputation » !

  6. #6
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Lightbulb Or this !


    Quote Originally Posted by ExcelMonkey1 View Post
    it filters the information and leaves only what I need.
    In case 'leaves' really means deleting non matching rows,
    in case of a lot of rows to delete another Excel basics VBA demonstration :

    PHP Code: 
    Sub Demo1()
             
    Application.ScreenUpdating False
        With 
    [A4].CurrentRegion.Columns
             
    If .Parent.AutoFilterMode Then .AutoFilter
            
    .Item(7).Formula "=(D4>B$2)+(E4=""I"")"
            
    .Resize(, 7).Sort .Item(7), 2Header:=1
             V 
    Application.Match(0, .Item(7), 0)
            .
    Item(7).Clear
             
    If IsNumeric(VThen .Rows(":" & .Rows.Count).Clear
            
    .Sort .Item(6), 1Header:=1
        End With
             Application
    .ScreenUpdating True
    End Sub 
    ► Do you like it ? ► So thanks to click on bottom left star icon « Add Reputation » !

+ 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. Suggestions ideas to simplify Excel process
    By sethg1981 in forum Excel General
    Replies: 1
    Last Post: 09-24-2021, 10:47 AM
  2. simplify & faster process in marco
    By kweep in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-06-2015, 12:56 PM
  3. [SOLVED] Could anyone help me simplify a very long and drawn out process?
    By Unikron in forum Excel General
    Replies: 13
    Last Post: 11-15-2012, 01:02 PM
  4. Use access to simplify data query process
    By shanea.kr in forum Access Tables & Databases
    Replies: 0
    Last Post: 07-10-2012, 01:48 PM
  5. Replies: 1
    Last Post: 09-20-2011, 11:37 AM
  6. Simplify Long Process Function
    By imav in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-13-2011, 02:05 PM
  7. Looking to develop a Macro or Formula to Simplify Daily Process
    By AbrahamRunning in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-07-2009, 07:31 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