The NOW formula provides a date and time stamp at the time of execution or when the NOW() function is entered into the sheet.
The TODAY formula provides just the date at the time of execution or when the TODAY() formula is entered into the sheet.
That’s all well and good but I want this formula to occur when a user enters something in a cell.
To achieve this, we can use an IF statement. First, we will state if the cell is empty, then no date should appear. However, if the cell has a value in it, then the date and/or time the value was entered will appear in the corresponding cell.
Here’s the formula:
=IF(A2="","",TODAY()) <<Formula is celll D2
ِAs you can see in the IF statement we are saying; if there is nothing in cell A2 then don’t do anything, otherwise if it contains a value then add today’s date in this cell, D2.
Now, if you want to have this ready for all rows for when a user adds to your data, then drag the formula all the way down to the bottom of the sheet.
Here is an example:
Ready to add some data? Here is what is would look like:
The NOW() and TODAY() functions are Dynamic. This means that they will update automatically. To keep these dates from changing, copy the cell and press <CTRL>+<SHIFT>+<V> or paste special> paste as value.
A Warning on NOW() and TODAY()
These two functions are Dynamic and will update constantly. If you are looking to get the date or time of something so that it does not update automatically then check out this tutorial :
Ever been faced with an issue where you can’t move your column to the far left in order to Vlookup? I just came across this issue recently.
The Problem – Vlookup
I needed to add teachers to a list of students who had to move into their class for two tests because their teacher (Hanna John-Kamen) would be absent on the test day.
Essentially, I was splitting the students into the remainder of the classes for that session time. In this student list sheet (Hannah 302-15) I had allocated the students new rooms and each room had a new teacher.
I couldn’t change the teacher proctors test list sheet ( Q2U1 Teacher) because the teachers who reference it would get confused. Unfortunately the teachers name I wanted was in column B and the reference (The Speaking classroom) was in column I.
I need to put my first Vlookup in M2 of the Hannah 302-15 sheet. If I tried to Vlookup it might look like this: =VLOOKUP(L2,‘Q2U1 Teacher’!B:I,–8,False). Where L2 is the class I am searching for in the Hannah 302-15 sheet. ‘Q2U1 Teacher’!B:I is the range where B is the name column and I is the Class number. –8 is clearly wrong. Vlookup will not accept a negative reference (It’s stupid, I know). False: because the list was not sorted.
Spacer is a Free Google Add-On that creates row spaces by column categories.
I use it as an academic administrator to create a space or two at the end of each class section to create a visual break between sections. This makes it easier for my staff to quickly identify class sections.
Allow you to select a column with the categories you want to use to space your data.
Set the height of your header – so that is not spaced too.
Set the thickness of your spaces.
Set the color of your spaces
Set starting and end position of your color filler.
How to use Spacer
Before You Start:
Before you start, create a Google Sheet with the data in it you want to space.
Select All the data.
Go to the menu bar and select: Data>Sort Range... and select the column you want to sort by. This will be the column you will use to space your data by the categories in that column.
In a Google Sheet, select the Add-Ons menu.
Select: Spacer>Create Spaces
A sidebar will appear to the right.
Choose the column you want to use to Space your data.
Choose how high your header is.
Chose how thick or deep your want your header to be.
If you want a color, select a color that you want to add to your spaces.
Select where you want to start the color and end the color.
If you are not happy with the color, space, color width or made a mistake, simply click: UNDO
I keep getting the following popup:
This is because the starting value of your Color Width is greater than your End value:
I have a list of people with their favorite color and fruit. Let’s say I want to sort the Google Sheet by favorite color (Fav Color) and put a space at the end of each color category to make it easier to read.
My data looks like this:
To space this data we must do the following:
Select all the data: ctrl+shift + a
Sort the data by column B. Select: Data> Sort range
Click the: Data has a header row tick box. Select the column: Fav Color. Then click the Sort button.
Your data is now sorted by favorite color:
Time to use the Spacer. Select: Add-ons > Spacer > Create spaces
Spacer will open at Sidebar on the right:
We want to space our data by Fav Color which is column B. For Column, select: B
We have a single Row Header so we can leave the header selection at 1:
We want to give our spaces a thickness of 2 rows:
Next, we choose a color. Let’s choose purple. A color picker will pop up (the picker may vary depending on your system) select the color and click: OK:
This is the result:
Now choose where to start and finish the color fill for the space. I’ll start it at column A and end it at column E.