Looking to show date that a cell is updated - macros

I'm looking for a way to display the date that a cell was modified, in another cell. For example:
if I make a change to A1 on the 1st of January then A2 would show 01/01/2014.
I would also like to know how to have a cell which displays the date something was modified, but only if in a certain way. For example:
only when A1 is changed to read yes then A2 shows that change.

You can use a formula, put in A2:
=IF(A1<>"";IF(A2<>"";A2;NOW());"")
This will
only do something, if A1 is filled,
check if A2 is already filled... then leave it
else insert a timestamp
For your second question - just add the condition:
=IF(A1="yes";IF(A2<>"";A2;NOW());"")
edit: This will work for OpenOffice (Apache, LibreOffice, .org), if you switch on "iterative references" [Tools...>Options...>Calc>Calculate]

Related

How to auto-fill the row's column based on the row above?

I have a Google sheet where the 1st row is the date and it will autofill every day. So does the row "Value 1" & "Value 2". Now, I've added manually a row name "SUM" with sum formula.
My question is, how can the row be automated every day so that I do not need to manually drag the formula to the right?
Here's the example sheet:-
https://docs.google.com/spreadsheets/d/1gkKn-tDxosXQGvOdYMj8CupEdG9YXi4sB8PegojDS58/edit?usp=sharing
paste in B1 cell:
=ARRAYFORMULA(TRANSPOSE(TEXT(ROW(INDIRECT("A"&
DATEVALUE("2019-9-1")&":A"&
DATEVALUE(TODAY()))), "d/m/yy")))
paste in B4 cell:
=ARRAYFORMULA(MMULT(TRANSPOSE(ROW(
INDIRECT(ADDRESS(2, 2)&":"&ADDRESS(ROW()-1, MAX(IF(1:1<>"", COLUMN(1:1), ))))))^0,
INDIRECT(ADDRESS(2, 2)&":"&ADDRESS(ROW()-1, MAX(IF(1:1<>"", COLUMN(1:1), ))))))

LibreOffice hide #VALUE

Can someone tell me how to hide in the cell the #VALUE! with conditional formatting or somehow?
A1 - DATE | B1 number (for ex.60) | C1 - DATE
When A1 cell which is DATE contains data (for example 2019.03.20) and the
B1 is for example 60 than C1=2019.05.19
I think it is okay to add sixty days to cell A1
But by default the A1 is empty and in this case, the C1 shows this error: #VALUE!
My question is, how to hide the #VALUE! text?
Thank you!
In any situation where you need to catch problems and show something else instead, use IFERROR.
For example, set C1 to
=IFERROR(A1+B1,"Missing date or days")
or to have it be blank,
=IFERROR(A1+B1,"")

Set column default value in Google Sheets

I have a finance tracking worksheet that has a number of formulas for each row. What I'd like to add is have these formulas replicate whenever a new row is inserted (fill it with a "default value").
Sheet before adding the row:
Sheet after adding the row:
I'd like some of these cells (B28 in this case) to contain a formula. for this row the formula is:
=IF(ISBLANK(C27), "", CONCATENATE(YEAR(C27), "-", MONTH(C27)))
You might want to consider an ArrayFormula. Here's a place for getting detail. In your case, the big trick is knowing that you can run the formula through all of Column C using the notation something like C1:C. Doing it this way is far more self documenting than burying it in a Google function and it's way more general.
Because the formula is the same for all rows, I added a function that just does the following:
function addRow() {
SpreadsheetApp.getActiveSheet().getRange('B7:B').setValue('=IF(ISBLANK(C7), "", CONCATENATE(YEAR(C7), "-", MONTH(C7)))');
}
I set this function to run on a trigger whenever the sheet is edited. The row numbers increment themselves so not problem there either.
Used this SO question for help: Default cell values when Inserting new row in Google Sheets
delete everything in your B column and paste this into B1 cell:
={"Date", ARRAYFORMULA(IF(C2:C<>"", YEAR(C2:C)&"-"&MONTH(C2:C)))}

SSRS 2208: Export to excel assign Cell Name

Using SSRS 2008 Environment, when exporting to Excel i want the name of the cell assigned.
How can i achieve this?
Ex: When you open excel and click on the cell, we see name of each and every cell being A1 or A2 and so on. what if i want to change the name to something else.
Can you tell me what you're planning on using the cell names for? Do you want the cells to have 'Defined Names' or do you want to see the names in the cell Name/Value in the top bar?
One of the things you should do is to name every item in the report in Properties > Name. I'm not sure if you export to XML, but if you do you can set the Data Element names. I haven't been able to assign defined names to all my cells, but I got most of them. Let me know if that helps, thanks.

How to design textbox visibility expression in SSRS?

I have an RDL with a table/textbox visibility set to:
=iif(Fields!question_caption.Value = "OBJECTIVE 1",false,true)
I am trying to make this textbox display the value named "narrative" only if the question_caption record = "OBJECTIVE 1". How can I do this? Currently this textbox displays nothing with the above logic. I have the narrative field stored in a Placeholder if that makes any difference.
Here is some sample data for you:
create table #dummy_data
(
question_caption varchar(max),
narrative varchar(max)
)
insert #dummy_data values('1st week dates','week 1'),('2nd week dates','week 2'),('3rd week dates','week 3'),('OBJECTIVE 1','obj 1'),
('5th week dates','week 5')
select * from #dummy_data
I don't see anything wrong with your visibility expression. However, in your question, you're discussing two separate things as one (i.e., visibility & displaying a value in a placeholder).
The hidden property will show an object (tablix, textbox, image, chart, container, etc) if the expression returns false and will hide an object when the expression returns true. When I say hide, I mean that it will remove the object from the grid and, if all is setup properly, the surrounding objects will be shifted to fill the now empty space of the hidden object.
To display (or not) a value is an entirely different thing. To show or hide a value, you would put the following expression in the value property of the placeholder:
=IIF(Fields!question_caption.Value = "OBJECTIVE 1",Fields!narrative.Value,"")
Notice that I've set it up such that if the desired value of the question_caption field is present, it will display the value of the narrative field. Otherwise, it will return an empty string. This will maintain the layout of the report but simply display the desired value or an empty string, based on some criteria.
As for the issues you're current experiencing, I'm not sure why that would be happening. I would first check that you don't have a typo in the Objective 1 hardcoded value in your expression.
If this doesn't help, please comment and let me know some more information about your problem and I'll do my best to help.