+ Reply to Thread
Results 1 to 7 of 7

Formulas stopped working on spreadsheet! Help!

  1. #1
    Registered User
    Join Date
    01-30-2014
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    4

    Formulas stopped working on spreadsheet! Help!

    Hi, I made a spreadsheet to track costs. Its been working fine for months but has randomly stopped woring. Its been driving me crazy for 3 days now. I can't see the issue! Please help before i lose my mind!

    I have uploaded the file

    Thanks,
    Gareth
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Formulas stopped working on spreadsheet! Help!

    Your dates, you cant say this

    =SUMIFS(Purchase!$H$7:$H$631,Purchase!$G$7:$G$631,"CAPEX",Purchase!$I$7:$I$631,">=01-Apr",Purchase!$I$7:$I$631,"<=30-Apr")

    01-Apr is a string but the value in Purchase! column I are dates, ie numbers.

    Since 01-Apr is a string so is 01-Jan.
    But you'll find 01-Jan is greater than 01-Apr yet Jan comes before Apr

    You should correct ALL your formulas to this, changing the month where necessary.

    =SUMIFS(Purchase!$H$7:$H$631,Purchase!$G$7:$G$631,"CAPEX",Purchase!$I$7:$I$631,">="&DATEVALUE("01/04/2017"),Purchase!$I$7:$I$631,"<=DATEVALUE("30/04/2017"))
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Formulas stopped working on spreadsheet! Help!

    Your dates look dodgy to me. Try specific dates or variables that produce dates. I went with the following in D5:

    =COUNTIFS(Purchase!$G$7:$G$631,"CAPEX",Purchase!$I$7:$I$631,">="&$C$2,Purchase!$I$7:$I$631,"<="&EOMONTH($C$2,0))

    Better yet:

    =COUNTIFS(Purchase!$G$7:$G$631,$C5,Purchase!$I$7:$I$631,">="&$C$2,Purchase!$I$7:$I$631,"<="&EOMONTH($C$2,0))
    Last edited by CAntosh; 03-21-2017 at 01:13 PM. Reason: Made "type" variable so you can fill down...

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Formulas stopped working on spreadsheet! Help!

    In D5 and copied down that section:
    =COUNTIFS(Purchase!$G$7:$G$631,$C5,Purchase!$I$7:$I$631,">="&$C$2,Purchase!$I$7:$I$631,"<="&EOMONTH($C$2,0))

    Now adjust that starting formula for the top cell of each section, then copy down within the section.


    The main problem is your dates in the original formulas, but this solves other small issues as well.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  5. #5
    Registered User
    Join Date
    01-30-2014
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Formulas stopped working on spreadsheet! Help!

    Hi Guys,

    Thanks for that, the COUNTIFS are working great. Have adapted the formula for the SUMIFS and thats working for April but May and beyond are working but as a running total (ie adding April to Mays etc.) Im having a brain fart of a day on this, cant see teh wood for the trees

    =SUMIFS(Purchase!$H$7:$H$631,Purchase!$G$7:$G$631,"CAPEX",Purchase!$I$7:$I$631,"<="&EOMONTH($G$2,0))

    Thanks,
    Gareth

  6. #6
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Formulas stopped working on spreadsheet! Help!

    It looks like you're missing the 'greater than' term, so it's just giving you everything prior to May 31. Try the following in I5:

    =SUMIFS(Purchase!$H$7:$H$631,Purchase!$G$7:$G$631,G5,Purchase!$I$7:$I$631,">="&$G$2,Purchase!$I$7:$I$631,"<="&EOMONTH($G$2,0))

    or:

    =SUMIFS(Purchase!$H$7:$H$631,Purchase!$G$7:$G$631,"CAPEX",Purchase!$I$7:$I$631,">="&$G$2,Purchase!$I$7:$I$631,"<="&EOMONTH($G$2,0))

  7. #7
    Registered User
    Join Date
    01-30-2014
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Formulas stopped working on spreadsheet! Help!

    All sorted. Thanks to everyone!

+ 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. formulas have stopped working
    By dbwach in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-20-2013, 07:59 AM
  2. Formulas Stopped Working
    By lordtopcat in forum Excel General
    Replies: 4
    Last Post: 02-07-2011, 12:07 AM
  3. Excel 2007 : Formulas stopped working
    By Van in forum Excel General
    Replies: 3
    Last Post: 02-26-2010, 02:35 PM
  4. formulas stopped working
    By powerpro in forum Excel General
    Replies: 2
    Last Post: 12-31-2009, 09:54 PM
  5. Formulas stopped working
    By pcpwp in forum Excel General
    Replies: 4
    Last Post: 04-01-2009, 01:04 PM
  6. Formulas have stopped working
    By pooky73 in forum Excel General
    Replies: 5
    Last Post: 07-02-2008, 04:08 AM
  7. formulas stopped working
    By yayawatson in forum Excel General
    Replies: 3
    Last Post: 12-05-2006, 06:43 PM
  8. My formulas stopped working
    By gmoexcel in forum Excel General
    Replies: 1
    Last Post: 11-22-2006, 10:59 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