Closed Thread
Results 1 to 2 of 2

How to sum with variable and date

  1. #1
    Registered User
    Join Date
    05-15-2019
    Location
    Des Moines, Iowa
    MS-Off Ver
    Office 365
    Posts
    43

    How to sum with variable and date

    I have a budget file that I would like to automate. I have the month (D4:D5) where I would like for it to pull the correct data based on the month (D2). The same goes for the YTD (F4:F5) totals. So in D4 I want to be able to pull the correct account in this case 8000 and have it retrieve M3. Then on the YTD if I change it to February I need the formula in F4 to total column N3&M3. If March then it would need to total M3:O3. I can make this all work with a really long sumif formula where it looks at the account number, where I have the date hardcoded and then it's looking in just the one column. Would a sumif with index and match work>????

    Thanks,
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to sum with variable and date

    Administrative Note:

    This question was asked in your earlier thread and you are allowed only ONE thread per issue here. I am, therefore, closing this thread, but you may continue here in that original thread,
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Excel table filter by date variable through data picker date variable
    By SamanH in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-27-2018, 01:09 PM
  2. auto-populate a date based on date began and other variable
    By rcm4486 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-17-2017, 10:05 AM
  3. auto-populate a date based on date began and other variable
    By rcm4486 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-17-2017, 07:58 AM
  4. Replies: 1
    Last Post: 12-31-2014, 08:39 AM
  5. change date format of date variable to something like 3/17/14
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 09-03-2014, 11:39 AM
  6. Copy column variable number of times between start date and end date
    By gbisk in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-12-2013, 07:57 AM
  7. Replies: 2
    Last Post: 09-09-2011, 12:30 PM

Tags for this Thread

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