Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-14-2017, 05:58 PM
bjsauer bjsauer is offline sumifs question Windows 10 sumifs question Office 2013
Novice
sumifs question
 
Join Date: Oct 2017
Posts: 2
bjsauer is on a distinguished road
Default sumifs question

right now I am working on writing up a sheet that I am using the sumifs function a lot in because it makes it simple to be able to add up cells on another sheet based on date. what I am looking to see if it is possible so that I don't have to go threw 53 different cells to change that date ranges for each formula so that it will calculate what I am looking for. ill be showing an example as reference

=SUMIFS(Daily!F:F,Daily!A:A,">=1/1/18",Daily!A:A,"<=1/7/18")
=SUMIFS(Daily!F:F,Daily!A:A,">=1/8/18",Daily!A:A,"<=1/14/18")


=SUMIFS(Daily!F:F,Daily!A:A,">=1/15/18",Daily!A:A,"<=1/21/18")

what I would like to have happen is for the dates to auto change when I drop down copy the formula threw the rest of the cells. I color changed what I would like to auto fill and change accordingly the date gap that is in these dates is the same gap that I am looking for basically for a years worth of weeks
Reply With Quote
  #2  
Old 10-15-2017, 12:52 AM
ArviLaanemets ArviLaanemets is offline sumifs question Windows 8 sumifs question Office 2016
Expert
 
Join Date: May 2017
Posts: 932
ArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant future
Default

Use defined Tables (Be sure there is no gaps - empty rows or columns - in your datarange. Select any cell in your datarange, and then from Menu Insert > Table. Check 'My table has headers'. OK. The table is created and Design Menu tab is activated. Change the table name in left top in menu bar to meaningful one.)

P.e.
You create a table tDaily on sheet Daily, with header DaySum in column F and DayDate in column A;
On another sheet, you create another table, p.e.
tRepWeekly, with column headers DateFrom, DateTo, WeekSum.
Into columns DateFrom, DateTo, you enter dates for first and last day of week (you can use formulas there too).
Into any of cells in column WeekSum enter the formula
=SUMIFS(tDaily[DaySum],tDaily[DayDate],">=" & [@DateFrom], tDaily[DayDate],"<=" & [@DateTo])
The column WeekSum will be filled with formula automatically.

Whenever you press Tab when last cell of table is selected, or whenever you enter something into next row below table, the table is expanded automatically. All formulas, formats, conditional formattings, and data validations, which apply for whole column of table, are expanded to new row too.

NB. When using Tables, you can't share your workbook for multi-user regime.

Edit. When you enter dates into tRepWeekly manually, and you have at least 2 rows of data in tRepWeekly, select 2 last rows for columns DateFrom and DateTo and drag down - for every row 7 days will be added to both dates.
Reply With Quote
  #3  
Old 10-15-2017, 07:45 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is online now sumifs question Windows 7 64bit sumifs question Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,917
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

@Arvi
Are these duplicate posts and can one be deleted?

@bjsauer
You might also try a Pivot Table if that is OK for your purpose
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #4  
Old 10-15-2017, 12:11 PM
ArviLaanemets ArviLaanemets is offline sumifs question Windows 8 sumifs question Office 2016
Expert
 
Join Date: May 2017
Posts: 932
ArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant future
Default

Quote:
Originally Posted by Pecoflyer View Post
Are these duplicate posts and can one be deleted?
Yes. The one without paragraph starting with "Edit." (the shorter one) is abundant.

Don't understand how the second one was created - but I think I remember that I had to log on anew when editing the post
Reply With Quote
  #5  
Old 10-16-2017, 05:34 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is online now sumifs question Windows 7 64bit sumifs question Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,917
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Arvi's second post deleted.
I'll keep an eye on other posts to see if this happens again
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #6  
Old 10-16-2017, 07:59 AM
bjsauer bjsauer is offline sumifs question Windows 10 sumifs question Office 2013
Novice
sumifs question
 
Join Date: Oct 2017
Posts: 2
bjsauer is on a distinguished road
Default

I don't think a defined tables will work in my situation. ive done a lot of research on how to create this workbook as efficiently as possible. to help with coming up with the solution to my problem I have included a copy of the worksheet that I am writing now.

the first page of this workbook is intentionally left blank so that I can input the data on a daily basis, hence the page name daily. The sheet labeled weekly is the sheet that my sumifs question comes into play. the 2 highlighted rows are the 2 left to do date corrections on. if you look at the column labeled total miles it has the correct date configuration done all the way down. I'm looking to see if there is a faster way to write this up so that I don't have to go threw each cell and do date corrections to get the outcome that I am looking for. I'm sorry if I gave any confusion to this question and hopefully now that I have included and shown what I am looking for and explained it a lot better there is an answer that will work for this scenario.
Attached Files
File Type: xlsx 2018 Lease Pay.xlsx (20.7 KB, 13 views)
Reply With Quote
  #7  
Old 10-18-2017, 09:44 AM
Debaser's Avatar
Debaser Debaser is offline sumifs question Windows 7 64bit sumifs question Office 2010 32bit
Competent Performer
 
Join Date: Oct 2015
Location: UK
Posts: 221
Debaser will become famous soon enough
Default

You could use helper columns for the start and end dates, then refer to them in the SUMIFS formula, or just use a pivot table and group the dates in blocks of 7 days.
Reply With Quote
  #8  
Old 10-20-2017, 02:22 AM
Roger Govier Roger Govier is offline sumifs question Windows 10 sumifs question Office 2016
Novice
 
Join Date: Oct 2017
Location: Abergavenny, Wales, UK
Posts: 13
Roger Govier is on a distinguished road
Default

@bjsauer
With your dates in column A, just enter

=SUMIFS(Daily!F:F,Daily!A:A,">="&A2,Daily!A:A,"<"& A3)
and copy down.
The dates will adjust in line with the entries you have made for the date in each row.

Note:
One of your formulae must be just "<" and not "<=" otherwise you are duplicting the value being summed
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with SUMIFS OTPM Excel 8 05-27-2016 07:54 AM
Sumifs lynchbro Excel 1 07-02-2014 09:27 AM
sumifs question Help with SUMIFS LeFoah Excel 2 10-20-2013 09:22 AM
sumifs question I need help with =SUMIFS docwhit Excel 2 01-05-2013 12:58 PM
sumifs question SumIFS Questions Kheinrich119 Excel 2 12-12-2012 10:00 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:42 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft