+ Reply to Thread
Results 1 to 5 of 5

Help Using Macros to Format Summary and Statements

  1. #1
    Registered User
    Join Date
    10-03-2019
    Location
    us
    MS-Off Ver
    2017
    Posts
    6

    Help Using Macros to Format Summary and Statements

    Hi good morning.

    I am looking for a bit of help with Macros. I have some basic Excel knowledge and know how to use some formulas.
    I've tried to look into macros but its a bit more time consuming then I thought. I would appreciate if someone can help me out a bit.

    For work I create a weekly Excel workbook.
    Here I create multiple Contractor Settlement Statements over 20.
    Then I have a summary sheet with the list of contractors, orders completed, gross pay, net pay, commission.

    Its simple formatting, but it start getting time consuming, repetitive and annoying after a while.

    I would like to create a macro that can format the summary page and individual sheets when created.
    Also to have it pull info from the new sheets to the summary page.

    End of year I would like to have 1 workbook per week, then pull all summary info into 1 master summary.

    If anyone can help with this I would really appreciate it.
    Attached are some examples of my sheets.
    Attached Files Attached Files
    Last edited by rudy90; 10-03-2019 at 09:40 AM.

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Help Using Macros to Format Summary and Statements

    If your sheets format will always be the same(I am assuming that driver 1, 2 and 3 are based on sheets a, a(2), a(3)), then you can use a vlookup formula with indirect. See the file attached. B,C,E: =VLOOKUP(B$1,INDIRECT("'"&$F2&"'!"&"A:B"),2,0)
    D: =VLOOKUP(D$1,INDIRECT("'"&$F2&"'!"&"G:H"),2,0)
    Attached Files Attached Files
    Click the * to say thanks.

  3. #3
    Registered User
    Join Date
    10-03-2019
    Location
    us
    MS-Off Ver
    2017
    Posts
    6

    Re: Help Using Macros to Format Summary and Statements

    Yes correct. Wow that's awesome thank you very much for that.
    I wasn't aware of how that formula worked.
    So no need for a Macro for the workbook, just leave a blank template and copy for future use as needed?

  4. #4
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Help Using Macros to Format Summary and Statements

    Yes. And you could play with this to return the sheet names instead of typing them: https://www.howtoexcel.org/tips-and-...k-without-vba/
    But you need to make sure that you have the same format everywhere. Right now, a (2) percentage will return an error, as you've change the references and your percentage is in G column

  5. #5
    Registered User
    Join Date
    10-03-2019
    Location
    us
    MS-Off Ver
    2017
    Posts
    6

    Re: Help Using Macros to Format Summary and Statements

    Ok. I've been using this kinda format for a couple years already with a few changes here and there.
    But thats cause I haven't figure out these formulas properly yet.

    Yeah I was noticing that. I just fixed that.
    Again thank you.
    LOL I've been trying to this simple thing out for some time already. But it seemed so complex.

+ 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] Sort Operation Works when Macros are called manually, but not when VBA calls the Macros
    By lovecolorado in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-18-2019, 02:13 PM
  2. Multiple macros for several files that change weekly - where to store macros
    By janljan in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-21-2018, 10:54 PM
  3. Replies: 2
    Last Post: 04-13-2017, 02:57 AM
  4. Cant hide worksheets after macros to force users to enable macros
    By Mboemoyo85 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-13-2015, 02:52 AM
  5. Replies: 0
    Last Post: 06-09-2015, 09:30 PM
  6. Replies: 1
    Last Post: 10-02-2013, 09:05 PM
  7. Macros: Data cleaning macros not producing expected outputes.
    By bertlogdi1 in forum Excel Programming / VBA / Macros
    Replies: 31
    Last Post: 06-17-2011, 06:52 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