+ Reply to Thread
Results 1 to 8 of 8

Google sheet CountIF formula not working, and how to create changing charts

  1. #1
    Registered User
    Join Date
    12-21-2018
    Location
    edinburgh
    MS-Off Ver
    2016
    Posts
    15

    Google sheet CountIF formula not working, and how to create changing charts

    Morning

    I'm having difficulty with google sheets and using the find and replace/count if with dates.

    I'm using the formula along the lines of =countifs('Helpdesk Raw Data'!$B:$B, "=11/01/2021",'Helpdesk Raw Data'!$J:$J,"=SEAS SYS ADMIN") to find stuff in a specific date.

    I've tried to use the find using a specific cell so I can copy it along and it the cell i'm looking to match the date with changes as you go along the row (so, B4 looks for date in B1, C4 looks for the date in C1 etc) with the formula but it's not working. So instead of the "=17/01/2021" I was hoping it would pick up the from the cell Ax where x is the date in that row, and instead of "=HUBBLE BI TEAM" it searches for cell "=$A$9"

    I've included a link to a short snippet of the data where all personal info is stripped out, which doesn't impact what I'm looking for and you should be able to edit, if i've set the permissions correctly.

    https://docs.google.com/spreadsheets...it?usp=sharing

    My Second question is:
    Ultimately the data we are tracking is going to have daily, monthly and yearly data. Is it possible in google sheets to create a chart that will automatically circulate between the three sets of data or have a drop down, so the user looking could pick the dropdown daily, and it shows the daily data, then clicks the yearly button to see the yearly data?
    Last edited by loopey83; 07-26-2021 at 05:58 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Google sheet questions

    Administrative Note:

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    12-21-2018
    Location
    edinburgh
    MS-Off Ver
    2016
    Posts
    15

    Re: Google sheet questions

    apologies.

    Changed it now

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Google sheet CountIF formula not working, and how to create changing charts

    Much better - thanks.

  5. #5
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,821

    Re: Google sheet CountIF formula not working, and how to create changing charts

    I'm not sure I understand what you want with the countifs() function. Once I made sure that the date in b1 matched a date in column b of help desk raw data, it seemed to work just fine. (I'm not as familiar with sheets, but my edits may have stuck, so others will not see the original file). From what I saw in your sample file, the main key to the countifs() function is to make sure you have matching date values, and maybe remembering that spreadsheets store dates and times as numbers so that your are making sure the numbers match.

    Ad for the chart thing, I'm not sure what sheets pivot tools offer. On Excel, I would recommend a pivot table where you can select how the date field is grouped -- by day, or month.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  6. #6
    Registered User
    Join Date
    12-21-2018
    Location
    edinburgh
    MS-Off Ver
    2016
    Posts
    15

    Re: Google sheet CountIF formula not working, and how to create changing charts

    Apologies for the delay in responding. The notification got caught in my spam filter.

    for my countifs - I'm counting how many tickets are logged on a specific date for a specific team.

    So for the example data. I'd be looking for it to look at SVD assigned, find SEAS SYS ADMIN, then check the date - which I have got working by using the formula

    =countifs('Helpdesk Raw Data'!B:B,"=07/12/2018",'Helpdesk Raw Data'!J:J, "=SEAS SYS ADMIN")

    However, for the two underlined part of the formula, i want it to look at the specific cell that info is contained. So instead of "=07/12/2018" I want it to check the date in Row 1 and see if it matches as that row already contains the dates - and in google sheets if i copy and paste the formula over the rest of the cells, it retains the 07/12/2018 date in every cell where i'd want it to increase as it went along.

    So for the data on link. I'd want it to look at sheet2 cell B1 for the date instead of me typing in 01/01/2021 and instead of me writing SEAS SYS ADMIN in every cell, the test data would look at Cell A9.

    You can see my attempt in Cells B & C 9. When i hardcode the date. it picks it up, when i try to point it to specific cells it counts as 0

  7. #7
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,821

    Re: Google sheet CountIF formula not working, and how to create changing charts

    I'm not sure what difficulty you are having using references for the criteria. I can't remember if it was my edits or your original, but the current "="&B1 should work. If you were using "=B1" before my edits, that searches for the text string B1 not the cell reference. Is that the heart of this part of the question.

  8. #8
    Registered User
    Join Date
    12-21-2018
    Location
    edinburgh
    MS-Off Ver
    2016
    Posts
    15

    Re: Google sheet CountIF formula not working, and how to create changing charts

    That is exactly what i was looking for! i knew it might be something incredibly silly that i missed

+ 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. Locations in Google Sheet to Google Maps with markers and lines
    By Enounce in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 05-19-2021, 01:57 PM
  2. Google sheet: Help to attachment file from Google Drive and send email fill in Google Form
    By sbv1986 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 03-01-2021, 10:47 PM
  3. Google Sheets: Condition formatting in Google sheet
    By cyee in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 4
    Last Post: 02-18-2021, 05:35 PM
  4. Help with Formula for Google Form with 5 Questions
    By eflats1 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 03-22-2020, 12:49 PM
  5. Google Sheet & Google Docs
    By asherryan in forum Excel General
    Replies: 1
    Last Post: 09-21-2018, 08:48 AM
  6. Synchronize multiple users one particular excel work sheet in google sheet?
    By bala04msw in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-07-2018, 04:22 AM
  7. Can I ask questions about google here?
    By compact in forum Excel General
    Replies: 1
    Last Post: 07-24-2007, 11:56 AM

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