If A1 contained the number 5 and A2 contain the date 7/1/23 when we reached the date of 7/1/23 I want to delete the number 5 in cell A1. Can anyone assist with a simple formula for this? Thank you!
Hey there!
What you want to do within the same cell as the value 5 may require some more skilled coding that allows the cell to hold data and a formula that updates itself. However I can recommend another way that achieves what you want but also retains some history.
The left set is what your result would look like if the date is older than todays date. The right being if todays date has not reached the date you specified.
Before row contains the points that would currently exist, while after would contain the points after the date affects the "drop off" you would like.
Then an If statement just compares whether todays date is older/same/or newer than the target date. (To make this formula more dynamic, you can replace B5 with "today()")
=IF(B5>=B3,"",B1)
or
=IF(TODAY()>=B3,"",B1)
Hope this helps!
What it should look like:
Related
So, I have a range of monthly dates that span several years. Then I have a dollar value in the next cell lets call it A1:B100. I want to find the cell in B that corresponds with today's date. What I've used that works in finding the correct date is: AND(MONTH(a1)=MONTH(TODAY()),YEAR(a1)=YEAR(TODAY())) I just need to put it in a lookup function that spans the date range, but I'm stumped
Any help would be great.
These functions look for the value in b that matches today's date and then pull in the value from a. xlookup has an easier syntax, but you may need index/match if you don't have the newest version of excel.
=INDEX(A1:A5,MATCH(TODAY(),B1:B5,0))
=XLOOKUP(TODAY(),B1:B5,A1:A5)
Edit: I re-read your post, and if your data in a is by month (ie 1/1/2021, 2/1/201), just make sure it is in order, and change the match type to less than. If your data is in a different format, please post a screenshot of your data.
=INDEX(A1:A8,MATCH(TODAY(),B1:B8,1))
=XLOOKUP(TODAY(),B1:B8,A1:A8,,-1)
I know this is a simple question, but, what I mean is how do you copy a cell, but when that cell changes, it doesn't affect the copy.
To make it a bit easier to understand, If I had A1 that said "Hi", and I wanted A2to say "Hi" also, I would put =A1. However, if I changed A1, it would change A2 along with it, and that is what I don't want.
I am asking this as I have a formula that says that something is so and so weeks overdue, but when a checkbox is ticked, the weeks counter stops and doesn't add any more.
Here is what I mean and the paragraph underneath states what it means and what I need from it.
The cell that says "13/02/2019" is =TODAY() and the cell that says "06/02/2019" is a date I manually entered. The problem I have is that if I came back in 1 week, it would say "Handed in late by 2 weeks." and that is what I want to prevent. However, I only want this =TODAY() to freeze when that check box is ticked.
Today() reports today's date and it will always update to the current date. Today() is a volatile function that will recalculate on every worksheet change, even cells entirely unrelated to the function. Formulas referencing a cell containing Today() will also update to reflect the current date like you are experiencing now.
You appear to be looking for a process that will snapshot the date at the time of an action (checking a box). If you want it to be a formula, you will need to input the date of return as well and create a formula comparing the difference between to two inputs. There is already a shortcut to insert today's date in a non-formula method: Select the cell and press Control + ; (semi-colon). A simple formula that references the difference between the check-out and check-in dates on a per line basis with rounding and concatenate functions, should accomplish the described purpose.
A1 = (Checkout date)
B1 = (Return Date)
C1 =IF(ROUNDUP((B1-A1)/7,0)=1,CONCATENATE(ROUNDUP((B1-A1)/7,0)," Week"),CONCATENATE(ROUNDUP((B1-A1)/7,0)," Weeks"))
This function checks the difference between A and B, divides by 7 to get number of weeks, rounds it up to a whole number, and checks if the number of weeks is 1 or not. If it is one the text will say " week" otherwise it will say " weeks". This also avoids using a volatile function which in larger projects would cause incessant and potentially resource demanding calculating.
I got an answer for a previous question regarding an IF function on my excel tracking sheet.
I would like to further this by adding another formula to the existing formula.
I am looking for some help regarding an IF function on an Excel
document.
Basically if the Date Listed cell is dated over 1 month ago (eg: Date
Listed 6-Aug but today is 6-Sep) and the Date Sold cell is blank, then
I would like the Mark Down cell to say 'MARK DOWN', which at the
moment it does but it is only 10-Aug today.
If the Date Listed cell and the Date Sold cell both contain dates I
would like the Mark Down cell to say 'OK'.
So far I have this written:
=IF(AND(DATE(YEAR(G2),MONTH(G2),DAY(G2)), ISBLANK(H2)),"MARK DOWN","OK")
I know I'm not far off but I need help sorting out the
last parts..
Bonus if you can help me add a highlighted cell formatting to it :)!
Example Image
******Original formula:
=IF(AND((TODAY()-G11)>31,ISBLANK(H11)),"Mark Down","No")******
My additional query is:
If this item hadn't been uploaded yet, therefore there would be no date in the Date Listed cell, I would like to have an ISBLANK function which returns with "Not Required".
I have read something about ampersands and joining functions but not sure how to use them properly.
Here is what I have so far:
=IF(AND((TODAY()-G19)>31,ISBLANK(H19)),"Mark Down","No"), OR(ISBLANK(G19)),"Not Required")
Thanks again.
My spreadsheet is to show me how many days active a certain field has been.
For this I am trying to find a formula which will automatically take the entered date from one cell and deduct it from "todays" date.
As an example I have used =DATEVALUE("22/04/2017")-TODAY() - and although this works, i am unable to drag the formula down into other cells, to auto populate when a date has been entered/ amended. I'm having to enter the formula above every time, and if the date changes, as an example from the 22/04/2017 to the 20/04/2017, I would have to manually amend the formula too. How can I get it just pick up the date in that particular cell and deduct "today" from it?
Sorry if i'm rambling, I just don't know if I'm explaining myself properly.
Thank you
Typically, 'how many days active a certain field has been' would be a positive number (i.e. the number of days). Reverse the subtrahend and minuend to get a positive integer like this,
=today()-a3
To avoid getting 5/15/2017 or 42,870 as the result when A3 is blank, check to see if there is something in A3 before attempting subtraction.
=if(len(a3), today()-a3, text(,))
VBA can turn over Excel anyway you want .SO pl understand this question is NOT the duplicate of a similar question that asks how to get it done using VBA.
I would like to assign the current date to a cell and PRESERVE that value
That means after opening the file a few days , on the value should NOT change How do I get this done using a NON VBA formula based approach
a1=Date()
but the date value does not change.
Thank you both. You both rock. But stack will not let you do > 1
Both answers are practicable but given the reqs, I had - I just wanted to
'dirty stick in' the date wherever I want without scratching around .
The 1st answer is useful if you have a conditional logic 1 col
update should get a date in ,the other column. The 2nd one does the
quick stick of the date.
I don't see the problem. If you want a static date in a cell, just click on the cell and enter something like:
2/11/2016
The date will not change unless you change it.
If you are not certain of the current date, then click on the cell and touch:
Ctrl + ;
Like said many times at this side:
Goto options -> formulas -> enable iterative calculation
Then in A1:
=IF(A2="","",IF(A1="",NOW(),A1))
If you put anything in A2 then A1 will become the actual date/time and stay with this value as long as A2 is not empty... it will not change in later calculations ;)
You can try this with the actual formula (showing also time including seconds) it will not change. If you empty out A2 and reinsert something, it will jump to the new time and then stay with that value as long as you want (even close/open will not change that)