+ Reply to Thread
Results 1 to 12 of 12

vlookup to capture asset purchase totals and depreciation

  1. #1
    Registered User
    Join Date
    10-20-2011
    Location
    Poway, CA
    MS-Off Ver
    Excel 2016
    Posts
    27

    vlookup to capture asset purchase totals and depreciation

    Trying to come up with a few formulas that will calculate depreciation based on a purchase date so it'll populate in the appropriate columns (I have the first year by quarter and the subsequent years annually). And then also to pull the asset category from the first schedule onto another page, to total the asset purchases and the depreciation, again by period. Hope this makes sense, and that my attached spreadsheet is clear! Having trouble explaining what I'm trying to do so I apologize in advance for any discrepancy!!

    Thanks for your help Excel Gurus!!
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: vlookup to capture asset purchase totals and depreciation

    What would some sample answers look like? can you add them to your file please?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    10-20-2011
    Location
    Poway, CA
    MS-Off Ver
    Excel 2016
    Posts
    27

    Re: vlookup to capture asset purchase totals and depreciation

    Sorry about that, please see revised spreadsheet attached.
    Attached Files Attached Files

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: vlookup to capture asset purchase totals and depreciation

    Edit: The first formula works for quarters indicated. After a year the elapsed months max out at 12 and $1300. My attempts to include elapsed years in the formula fails. If you need those too please let us know.

    In H4 this formula filled down and across to M6.

    =IF(H$3>$D4,(SUM(IF(FREQUENCY(MONTH(ROW(INDIRECT($D4&":"&H$3))),MONTH(ROW(INDIRECT($D4&":"&H$3)))),1,0))+(SUM(IF(FREQUENCY(YEAR(ROW(INDIRECT($D4&":"&H$3))),MONTH(ROW(INDIRECT($D4&":"&H$3)))),1,0))-1)*12)*$G4,0)


    I get different figures for the elapsed months than given in the workbook. Double check but I believe there are 5 elapsed months from 8/1/2015 to 12/31/2015. The workbook shows 3.


    In B20:G21 I used this formula.

    =SUMPRODUCT(--(TRIM($A20)=$B$4:$B$6),--(B$18>$D$4:$D$6),$C$4:$C$6)

    In B26:G27 this formula.

    =SUMPRODUCT(--(TRIM($A26)=$B$4:$B$6),H$4:H$6)

    In case you are wondering I used the TRIM function in the last two formulas. This removes leading spaces in the row headers enabling a match to headers in B4:B6.

    I copied and pasted the original sample numbers off to the right for comparison.

    The file is attached.

    Does this help?
    Last edited by FlameRetired; 08-19-2015 at 06:45 PM. Reason: formula checks
    Dave

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: vlookup to capture asset purchase totals and depreciation

    I replaced that first formula above with this in H4:M6. It takes care of the months and years ... simpler too.

    =IF(H$3>$D4,ROUND((H$3-$D4)/30.4375,0)*$G4,"")

    Re-worked book is attached. My apologies.

  6. #6
    Registered User
    Join Date
    10-20-2011
    Location
    Poway, CA
    MS-Off Ver
    Excel 2016
    Posts
    27

    Re: vlookup to capture asset purchase totals and depreciation

    Hi Flame,
    I'm a bit confused on the 30.4375 portion of this formula ..... =IF(H$3>$D4,ROUND((H$3-$D4)/30.4375,0)*$G4,"")

    Can you explain that to me? In your spreadsheet the numbers come out correctly, but when I copy the formula over into my working spreadsheet, it ends up calculating cumulatively - so that each quarter adds to the subsequent one. For example, I'm trying to get the formula to calculate just the depreciation relevant to the time period in the header. So if the header if 3/31/16, that would be a quarter end and so would only capture depreciation for Jan, Feb, and March of 2016. And then the next period would be Apr, May, June (ending 6/30/16) and would only capture depreciation for those three months. Does that make sense? The spreadsheet you attached has all the right headers and examples, but I'm not sure how to adjust the formula so it will capture just those periods in and of themselves. I think the other formulas worked out correctly because they were cumulative. Thank you again so much for your expert help!!!

  7. #7
    Registered User
    Join Date
    10-20-2011
    Location
    Poway, CA
    MS-Off Ver
    Excel 2016
    Posts
    27

    Re: vlookup to capture asset purchase totals and depreciation

    Sorry, Actually I misspoke. In what I just posted a few minutes a go, I said the numbers come out correctly in your spreadsheet and when I copy them over they end up cumulative for depreciation. Your spreadsheet is cumulative as well, so at least I'm not messing up the formula. But I'm trying to get the depreciation piece to just be per period, not cumulative. Sorry for mis-typing on that one!!

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: vlookup to capture asset purchase totals and depreciation

    Okay. I see what you are saying now. I'll work on this.

    BTW the 30.4375 part (365.25/12) is because months do not translate well in terms of days. So 30.4375 returns an "average" month ..... something close enough for ROUND to reconcile to number of months. Sorry I didn't clarify that part.

    Depreciation by period might require a different method.

  9. #9
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: vlookup to capture asset purchase totals and depreciation

    Here's my attempt.
    Add a column in between G and H (so new H)

    I5:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    *DATEDIF does not like 31-May 30-Jun as 1 month... annoyingly.

    B20:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and, B26
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    08-22-2015
    Location
    Dhaka
    MS-Off Ver
    office 8
    Posts
    33

    Re: vlookup to capture asset purchase totals and depreciation

    =(IF(H$3>$D4,DATEDIF($D4,H$3,"m"),"0"))*$G4

    put this simple code and in H4 and see the result. {never forget to drug in other cells where u want your depriciation.}

  11. #11
    Registered User
    Join Date
    08-22-2015
    Location
    Dhaka
    MS-Off Ver
    office 8
    Posts
    33

    Re: vlookup to capture asset purchase totals and depreciation

    Get your complete solution with all formula and calculations.
    Attached Files Attached Files

  12. #12
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: vlookup to capture asset purchase totals and depreciation

    Quote Originally Posted by equplay View Post
    Sorry, Actually I misspoke. In what I just posted a few minutes a go, I said the numbers come out correctly in your spreadsheet and when I copy them over they end up cumulative for depreciation. Your spreadsheet is cumulative as well, so at least I'm not messing up the formula. But I'm trying to get the depreciation piece to just be per period, not cumulative. Sorry for mis-typing on that one!!
    I believe this addresses all of the above.

    The formulas for cumulative purchases B20:G21 and cumulative depreciation B26:G27 are the same formulas as my first upload.
    I had to use 2 formulas for the depreciation by periods. In H4:K6 this
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and in the yearly periods L4:M6 this
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The workbook is attached.

+ 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. Calculate new depreciation rate for an exisitng asset
    By Goldrockon in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-05-2014, 02:19 PM
  2. Depreciation and increasing asset value for periods only.
    By blunt81st in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-25-2013, 05:58 AM
  3. Reducing balance asset - get back to purchase date
    By pbutler8 in forum Excel General
    Replies: 0
    Last Post: 12-20-2012, 07:56 AM
  4. Replies: 1
    Last Post: 05-22-2011, 12:47 PM
  5. Depreciation of fixed asset
    By nasser in forum Excel General
    Replies: 8
    Last Post: 03-20-2009, 08:17 AM
  6. asset schedule depreciation A/D retirement
    By MaureenF in forum Excel General
    Replies: 6
    Last Post: 04-14-2007, 09:05 PM
  7. Fixed Asset/Depreciation formula
    By GregR in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-07-2006, 07:35 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