Days before today in Sheets - google-sheets

I am trying to make a finance tracker in sheets. I have checkboxes for each thing that needs to be done with values set for if the checkbox is checked or unchecked. I want to be able to see how much I am behind by adding up the values of the unchecked boxes. However because I have dates in the future I can't just add all. I just want to see how far behind I am compared with today. So if I haven't put the money in my savings and the box is unchecked then it will add to the amount, however only if the week is from before today, not next week's or next months included.
I have tried looking into how to account for today's date and found a function however that's only to find today's date, not to look for times before today's date along with I could do if functions but I would need to compare each individual checkbox and considering I have several for each week, that wouldn't do any good either. I have no clue if this is even possible but I have to assume this would be for accounting finance trackers.

Related

Google Sheet auto-refresh calculated fields

I have a google sheet that has 20 columns. Most of these columns are calculated fields. Whenever I open the sheet, even the sheet hasn't been touched at all since I last opened it, it refreshes most of the columns automatically. How do I prevent this from happening? The sheet is huge so it takes forever to refresh these fields. I don't understand why it does this even when the data hasn't changed at all. Any help is appreciated.
I am hoping the sheet is only refreshed when I update the base data that is used to populate the calculated fields.
There is no way to prevent formulas from recalculating when their source data changes. Formulas automatically recalculate when they detect a change in their parameters, and when there is a lot of data and many interconnections, you get a cascading effect.
There are many things that may slow down a spreadsheet. If you had a magic way to prevent recalculation, that would only treat the symptoms but not the disease. To improve spreadsheet performance, see these optimization tips.

Vacation tracker

So I have an issue I cannot wrap my brain around. I am creating an employee vacation tracker, and I have already multiple sheets with different data, i.e. one consists of Google Form answers about when the employee wants to take time off work for holidays. Please note that I also already have data on employee availability each standard day of the workweek.
Alright, onto the problem. Let's say 'Lukas' is a part-time employee and only works Tuesdays, Wednesdays, and Fridays. He sends in his vacation plan: he will be enjoying the seaside from 1.8. until 15.8. How on earth can I combine multiple sheets and data in such a way, to only count his holidays by his actual workdays? I can not even begin to write the formula - this is where I should note I am a beginner at Sheets.
Alright - I took a look at your mock-up sheet, I must admit it's still felt somewhat unorganized.
Due to the lack of enough dummy data and without being certain whether or not you empty/refresh the weekly availability tabs (I'd recommend you not to do so), it wasn't fully clear what you wanted.
Nonetheless, I couldn't resist, I've been working on several projects and your topic gave me some creative inspiration, so I went ahead and did a major rebuild in your mock-sheet.
Should you want to use or implement it, here's some info good to know:
The Employees tab is meant as an input field for any coming and going employees; just add any names there and they will be automatically added to the main schedule.
I mocked some more data, so the output might not be what you expected, but;
In the Holiday overview tab you can see all employees with the days they've taken, planned, and left.
In the Schedule Dashboard tab, you will find three main sections.
The working schedule based on the data from the Weekly Availability tab of which I guess you manually move over data to from the Availability Responses tab.
The Holiday schedule; this fully takes into account whether or not it overlaps with a supposed working day, or if the person was off already anyhow. Therefore; Holiday is shown when it overlaps with a scheduled working day and Day Off is shown when it doesn't. Only the Holidays are deducting the remaining holidays.
The right one I did based on my own experiences; it works like an alerting sign that whill show you if holidays are approved while still being scheduled, where I work we do this the other way around. Holiday Request > We unschedule > We approve holidays > No overlaps should exist.
I posted some comments in the sheet here and there on orange tiles.
Curious to know if this helped!

Retrieve number of Mondays in a particular month

I want to retrieve number of Mondays of a particular month.
You haven't stated what you've tried and why it didn't work - which is the way SO works. Remember for next time.
In finding a solution to your problem ask yourself the following:
What is the minimum number of Mondays (or any other day) in a month? How about the maximum?
Can you determine the day of the 1st of any month using library/framework functions?
How about the number of days in any month?
Using the answers to the above could you design and implement the algorithm?
If you get stuck ask a new question, show what you've tried, where it failed, and someone will undoubtedly help you out.
HTH

Charting amount of dated events in columns/bars

I want to create bar charts similar to web server logs. I have events in my database which all took place at a certain moment, I would like to grab all these events and then chart how many occurred each day, week, month, whatever on a bar (column) graph.
For example I want to chart how many visitors I had in a month in 31 columns, each representing one day.
Is there a charting application whereby I can grab all the visits for the month and give these dates to the library, and it will divide them into time periods of my choosing (e.g. view by day)?
If not then what is the simplest way of creating the data? 31 DB queries? One DB query and then checking the dates and divide the events up into 31 lists?
I'm using Groovy and Grails.
You may query your database to get Map which maps number of events to a certain date. Use criteria builder to make a query that returns grouped by date.
I would just add Google Analytics to my website and use their interface.
To develop the software for handling these queries is a big question that I can't answer here. It's a product in itself.

Charting Progress in JIRA

With JIRA, there are features that allow you to Start Progress and Stop Progress on an issue or various issues at any given time. Is there a way for me to go back and see a chart or a graphical representation of how my time was spent over a set period of time?
If I wanted to see how many bugs I worked on in April, and see how much time (graphically) was spent on each bug, could that be done, and if so, which version of JIRA would allow me to do that?
I dont think you can see for a given month how much time was spend on a task. You can see how much time was spent on a task, but not what time period it was for.
I'm sure you've already seen this:
http://www.atlassian.com/software/jira/docs/v3.13.3/timetracking_report.html
There's a Time Sheet Summary report that comes with the Timesheet Report and Portlet plugin - it shows you a list of the JIRA issues you've been working on together with the time per day for a configurable period. No charts, though, I'm afraid.
I think in general that time tracking is ripe for someone to write a really good JIRA plugin; I'm not totally happy with any of the current ones.
Go with the Tempo plug-in for jira. It is brilliant.
You can implement this visualization with the JIRA PDF View Plugin, like this:
Create a filter that returns the issues to be used for this visualization. Run it and invoke the plugin from the "View" dropdown menu.
Write a little Groovy script that iterates over the returned collection of issues, and:
Builds a mapping from "month" (key) to a data structure which holds a triplet of "totalTimeSpent, issuesWorkedOn, issuesFixed" (value).
At each issue compute the sum of the "time spent" records and add it to "totalTimeSpent".
Increment the two other counters accordingly.
When your script completes you have all input data to draw a timeseries chart.
Generate a JFreeChart TimeSeriesCollection dataset. It should contain 3 TimeSeries (3 lines) for the 3 types of values.
Create a simple PDF template that displays a single timeseries chart, which takes the dataset returned by the previous script to render a timeseries chart. Check the timeseries chart example in the tutorial for directions.
The final chart will be something like this:
Disclaimer: this is a paid add-on for JIRA, and I'm a developer working on it.

Resources