+ Reply to Thread
Results 1 to 5 of 5

Import Paystub Data to My Expenses and Income Spreadsheet

  1. #1
    Registered User
    Join Date
    02-17-2014
    Location
    New York
    MS-Off Ver
    Office 365
    Posts
    37

    Import Paystub Data to My Expenses and Income Spreadsheet

    Hello,

    Every two weeks I can download my paystub in Excel. Over the years I have been manually importing my pay and deductions into another Excel spreadsheet of my income and expenses. Now that I feel more comfortable with Excel, I'm turning to the Forum for the easiest way to automate this. I would prefer a non-macro solution but I'm open to trying a macro if it is simple enough. I'm guessing I will need to use 'Match' and 'Index' function for the date but I just need a little help to push me in the right direction.

    1. Based on the 'Check Date' of the paystub, I would like certain cells to be auto-populated in the Income/Expenses OR summed first and then auto-populated in the Income/Expenses in the row corresponding to that same date.

    2. This is just a made up example of a paystub and actual Income/Expenses spreadsheet. Not all columns are together or will necessarily be in this same order.


    Thanks in advance.
    Attached Files Attached Files
    Last edited by AliGW; 11-18-2020 at 09:29 AM. Reason: Irrelevant section of title removed - this is a help forum!!!

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,982

    Re: Pls. Help: Import Paystub Data to My Expenses and Income Spreadsheet

    Note that the following will only work if all of the paystubs will be kept in the same workbook as the All Income and Expenses 2020 sheet.
    1. Insert a new column A and populate from A7 down using: =IF(MOD(ROWS(A$1:A14),14)=0,MONTH(B7)&"-"&DAY(B7)&"-"&RIGHT(YEAR(B7),2)&" Payroll","")
    2. Populate column C (row 7 and down) using: =IFERROR(SUM(INDIRECT("'"&A7&"'!B23:B25")),"")
    Note that columns D, E, I, J etc. could be similarly populated.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Registered User
    Join Date
    02-17-2014
    Location
    New York
    MS-Off Ver
    Office 365
    Posts
    37

    Re: Pls. Help: Import Paystub Data to My Expenses and Income Spreadsheet

    Thank you so much JeteMc! This is perfect and I can mark this as "SOLVED." I do have two questions just for my own learning. I went through the formulas to try to write out in words your logic:

    1. For =IF(MOD(ROWS(A$1:A14),14)=0,MONTH(B7)&"-"&DAY(B7)&"-"&RIGHT(YEAR(B7),2)&" Payroll","") I have: "If the remainder of the number of rows from A1 to this row divided by 14 is 0, then return the date in B with the word "payroll", if the remainder is not 0, return a blank cell.

    2. For =IFERROR(SUM(INDIRECT("'"&A7&"'!B23:B25")),"") I get: create reference to worksheet "This week's date Payroll"!Range Oasdi:Federal Withholding and sum of that range if no error, return nothing if error.

    3. I was surprised to see that the formula in column A did not return the circular reference warning since the result is also in column A. What is the difference between "row" and "sum" that results in the difference? I sort of understand.

    Thank you so much. I never would have thought of MOD and it comes up so much in solutions on this forum. Thanks again!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,972

    Re: Import Paystub Data to My Expenses and Income Spreadsheet

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,982

    Re: Import Paystub Data to My Expenses and Income Spreadsheet

    As to #1, you are correct.
    As to #2, also correct, because without the IFERROR the formula would display #REF for cells C8 and down which either have no value in the corresponding cell in column A or which do not find the sheet name displayed in column A.
    As to #3, the ROWS function doesn't produce a circular reference because it is using the array argument (A$1:A14) to produce a value (14), it is not attempting to retrieve values from those cells as the SUM function does. (I hope that makes sense).
    As to the first sentence: You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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] Overview of past years income/expenses
    By MBaigent in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-20-2019, 04:17 PM
  2. userform checkboxes for calculations of annualizing income and expenses
    By union in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-22-2014, 11:49 PM
  3. income/expenses tracking issue
    By ibrahimyunus in forum Excel General
    Replies: 6
    Last Post: 06-03-2013, 07:10 PM
  4. how do i setup a table of daily income and expenses
    By car service in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-19-2006, 11:45 AM
  5. [SOLVED] template for monthly income/expenses corresponding to IRS Schedule
    By watchman in forum Excel General
    Replies: 2
    Last Post: 03-07-2006, 11:10 AM
  6. [SOLVED] Looking for sheet for expenses and income
    By AA Arens in forum Excel General
    Replies: 1
    Last Post: 09-28-2005, 12:05 PM
  7. [SOLVED] church expenses, income work sheets
    By First Baptist Church in forum Excel General
    Replies: 1
    Last Post: 07-19-2005, 01:05 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