+ Reply to Thread
Results 1 to 5 of 5

SUMIF amount if name is found and is in the last 6 days giving incorrect total

  1. #1
    Registered User
    Join Date
    10-22-2019
    Location
    Leicester,England
    MS-Off Ver
    Office 365
    Posts
    18

    Post SUMIF amount if name is found and is in the last 6 days giving incorrect total

    Afternoon all hope someone can help.

    I am trying to get the totals for 6 names on Tab "Live Snapshot" Columns E-J Row 3.
    I Have told it to look on the "Cohorts" Tab to find the name in Column B, for the example i've attached it is "Apprenticeships" and give the total number of learners from Column E but only if the Date in Column A is within 6 days of today(the current day).

    I have tried this. =SUMIFS(Cohorts!$E:$E,Cohorts!$B:$B,J2,Cohorts!$A:$A,">="&(TODAY()-6))

    However the formula I have made is wrong as it is including future dates when adding up the total. It is saying 11 for Apprenticeships when it should be 7. Could someone kindly point out where I have messed up please?

    I have attached an example spreadsheet for you to see.

    Thank you for any help you may be able to give.
    Attached Files Attached Files

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: SUMIF amount if name is found and is in the last 6 days giving incorrect total

    Try this in E3:

    =SUMIFS(Cohorts!$E:$E,Cohorts!$B:$B,E2,Cohorts!$A:$A,">="&(TODAY()-6),Cohorts!$A:$A,"<="&TODAY())

    Drag to the right.

  3. #3
    Registered User
    Join Date
    10-22-2019
    Location
    Leicester,England
    MS-Off Ver
    Office 365
    Posts
    18

    Re: SUMIF amount if name is found and is in the last 6 days giving incorrect total

    Wow that was fast! Thank you so much that did the trick!

    First time using the TODAY function so I need to practice on that a bit more.

    Thanks again

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: SUMIF amount if name is found and is in the last 6 days giving incorrect total

    You're welcome. Happy to help.

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

    Oh, and welcome to the forum!

  5. #5
    Registered User
    Join Date
    10-22-2019
    Location
    Leicester,England
    MS-Off Ver
    Office 365
    Posts
    18

    Thumbs up Re: SUMIF amount if name is found and is in the last 6 days giving incorrect total

    Yes all taken care off. Will close the thread.

    Thank you!

+ 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. SumIF vba giving incorrect values
    By bjjc51192 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-26-2019, 09:26 AM
  2. [SOLVED] If and formula giving incorrect result
    By Sintek in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-31-2017, 06:08 AM
  3. Excel giving incorrect answers?!
    By zakeyebrat in forum Excel General
    Replies: 5
    Last Post: 05-15-2017, 10:41 AM
  4. [SOLVED] Subtract dates to give a total amount of days - Multiple Data
    By t_man000 in forum Excel General
    Replies: 2
    Last Post: 07-23-2015, 11:14 PM
  5. SUMIF formuka is giving the incorrect result?
    By Aland2929 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-17-2013, 10:47 AM
  6. Array Formulas Giving incorrect value
    By ChemistB in forum Excel General
    Replies: 6
    Last Post: 02-28-2011, 01:16 PM
  7. Replies: 1
    Last Post: 06-19-2008, 04:13 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