+ Reply to Thread
Results 1 to 9 of 9

Sumifs Issue in a daily spend file

  1. #1
    Registered User
    Join Date
    02-15-2015
    Location
    Chicago
    MS-Off Ver
    Excel 2013
    Posts
    8

    Angry Sumifs Issue in a daily spend file

    Hi Everyone,

    Just a note this file looks rather complex but it is all using some version of sumifs (so I dont have to deal with pivot tables and updates easier). There are 3 tabs, only one contains all the formulas (Pacing Sheet). The other two tabs labels MTD Ad Group and PLA's are data files that I get directly from our data management platform.

    My problem cells are highlighted in yellow and there are also notes in the file. Basically I am trying to use the sumifs using names ranges to return data that is between yesterday and the prior 7 days in one cell and yesterday and the prior 14 days in the other problem cells, and refer to a certain name with in a column. The named ranges are entire columns because they expand each day, the important named ranges are listed in the sheet. I have previously worked with sumifs and know how to apply the formula ex) =Sumifs(Impressions, Date, ">="&(Today()-7), Date, "<="&(Today()), Account Name, "*Business XYZ") of note instead of using Today() I reference a cell that has the formula in the file. The * are used before the text and makes it work similar to an advanced filter.

    Can you please look at the yellow cells and help me get these sumifs to work? I think that the issue may be from the Date range in the MTD ad Group tab (the data comes in a funny format from the platform but I always just pate values) because I am able to get other sumifs to work when referring to only one date. Also the sumifs work when referring to the PLA tab. I would greatly appreciate any help! I have had others look at this as well and we cannot figure it out maybe we are missing something dumb. There are other problem cells but if we can just get the yellow ones to work I can figure out the rest.Pacing File Help.xlsb

    PS I haven't gotten the file yet today for the MTD ad group so I adjusted the reporting dates in the sheet.

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Sumifs Issue in a daily spend file

    A quick comment upon inspection: I'm assuming you are using wildcards in some of your SUMIFS...try implementing them like ..."*"&"pure"&"*"... and see what that returns.
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Sumifs Issue in a daily spend file

    The dates in named range "Date" are formatted as text which means your formula calculates as 0/0 which of course results in a DIV/0 error.

    BSB

  4. #4
    Registered User
    Join Date
    02-15-2015
    Location
    Chicago
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: Sumifs Issue in a daily spend file

    In reference to the dates .. for example in the yesterday spend column I search then named range for the date of just 2/17/2014 and it returns the proper value. How would changing that format make a difference? I change the column to the date format and the formulas dont work still? However I did find something interesting after doing this when I click into a cell and press enter it shift from left to right orientation, but I dont want to do this thousands of times it would take forever.

  5. #5
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Sumifs Issue in a daily spend file

    Quote Originally Posted by wat View Post
    but I dont want to do this thousands of times it would take forever.
    You don't need to..
    1) Highlight the column
    2) Select "Data / Text To Columns / Next / Next / Date"
    3) Chose the relevant date type (MDY?)
    4) Click OK
    5) Revel in the fact you've not had to edit each individual cell one after the other.

    You could probably even record/write a macro to do that for all for you.

    BSB

  6. #6
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Sumifs Issue in a daily spend file

    Going off of BSB's post, you could try this in G11 to get around the date stored as text problem.

    Please Login or Register  to view this content.
    SUMPRODUCT is good for this since you don't have to enter it as an array formula (with your column referencing named ranges taken out).

    However, SUMPRODUCT is not good with wildcards. SUMIFS is, but SUMIFS cannot accept DATEVALUE as a criteria range. This will leave you with using something along the lines of SUM(IF(... entered with CSE as an array formula.

  7. #7
    Registered User
    Join Date
    02-15-2015
    Location
    Chicago
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: Sumifs Issue in a daily spend file

    BSB thank you so much... I had actually did loop through this manually just for pure campaigns before refreshing the thread, ugh lol

    Your help made the formulas work just as I need them to. Thank you so much, and the tip above was a lifesaver. I still have a lot tot learn haha. Problem solved though, PROPS

  8. #8
    Registered User
    Join Date
    02-15-2015
    Location
    Chicago
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: Sumifs Issue in a daily spend file

    mcmahobt Thanks for your time and suggestion using the sum product formula. I am not as familiar with them and will do more research and try to apply your idea as well after a little study. Thanks again for the help

    WAT

  9. #9
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Sumifs Issue in a daily spend file

    No problem at all. We've all been there!

    mcmahobt's approach works well too. I'm a big advocate of SUMPRODUCT as it's often a great lifesaver.

    One other thing. You may want to consider dynamic named ranges to account for not having to manually adjust formulas when you add new data rather than referring to entire columns. In a complex workbook it can speed things up quite a bit.

    BSB

+ 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. Daily totals using an array & SumIfs
    By jginrey in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-13-2014, 03:10 PM
  2. Replies: 1
    Last Post: 08-29-2013, 07:29 AM
  3. Issue with Sumifs Function
    By ExcelFinWizzard in forum Excel General
    Replies: 11
    Last Post: 07-09-2012, 03:31 PM
  4. Replies: 2
    Last Post: 01-09-2010, 04:06 AM
  5. How do I estimate the year spend if spend is $26000 as of May?
    By Felicia Pickett in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-19-2006, 11:15 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