+ Reply to Thread
Results 1 to 3 of 3

Formula to calculate new worth based on today's date

  1. #1
    Forum Contributor
    Join Date
    12-02-2022
    Location
    USA
    MS-Off Ver
    2021
    Posts
    168

    Formula to calculate new worth based on today's date

    I have a list of assets and there values and would like a formula that calculates the SUM based on today's date

    I have uploaded a sample spreadsheet.

    For example if today = February, then sum of all February amounts.

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Formula to calculate new worth based on today's date

    This problem was solved by a series of INDEX / MATCH applied to static named ranges.

    First I applied the name Month_List to cells A9:20 and then applied the names A1_list, A2_list and A3_List to columns containing the amount.

    Then I used helper cells in column J - I left them there to "show my work." Cell J3 contains the formula: =TEXT($F$3,"mmm") - this converts the current date into a month name.

    Cell J4 =MATCH($J$3,Month_List,0) - this finds the row on which the month is found in the named range Month List.

    Cell J5 =INDEX(A1_List,J4) - this finds the dollar value for Asset 1 on the same row with the month. Cells J6 and J7 do the same thing only for the other two assets.

    Finally, Cell J8 =J5+J6+J7 or the sum of the three assets for the indicated month.

    I put this formula into Cell F5 and then kept substituting the subformulas until I got =INDEX(A1_List,MATCH(TEXT($F$3,"mmm"),Month_List,0))+INDEX(A2_List,MATCH(TEXT($F$3,"mmm"),Month_List,0),1)+INDEX(A3_List,MATCH(TEXT($F$3,"mmm"),Month_List,0),1)

    You can remove Column J and this formula will still work.

    This is a case where I recommend using helper cells. It makes it easier to see the logic and debug it if something goes wrong. Also note that the Match function is called three times to do the same calculation. It's not a big deal here, but could become an issue in a much larger spreadsheet.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  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
    28,151

    Re: Formula to calculate new worth based on today's date

    Try

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by JohnTopley; 02-02-2023 at 04:00 PM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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 fiscal year based on today's date
    By justinkgreen in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-26-2021, 05:44 PM
  2. [SOLVED] Excel formula to calculate year to date depreciation based on today's date
    By sunboy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-07-2021, 05:35 PM
  3. Replies: 12
    Last Post: 08-05-2015, 05:15 PM
  4. [SOLVED] I need a formula to always calculate exactly 21 days from today's date.
    By phxfitness in forum Excel General
    Replies: 7
    Last Post: 06-26-2015, 07:00 PM
  5. calculate data in cells based on today's date
    By stewdizzle in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-02-2015, 03:50 PM
  6. Calculate Reporting Period based on Today's Date
    By jeversf in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-22-2013, 08:03 PM
  7. Replies: 6
    Last Post: 03-04-2010, 03:04 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