Basically, I'm having a table where A1 shows the status (active / inactive). C1 has a date and when that date comes (lets say it's tomorrow), the value of A1 should change from active to inactive. Can someone please help out with this one. I tried playing around with =INDEX formula but can't get it to work. Thanks in advance.
try this formula:
=IF(C1>TODAY(),"Inactive","Active")
Use an if() statement like so:
=if(C1<now(),"Active","Inactive")
You may need to check the formatting of C1 or the cell with the date.
Related
Is it possible to check if cell formula is a specific formula, and not just "isformula" ?
My example:
In cell A1 I have, normally, "=B2".
But during the use of this sheet the formula might be overwritten to "=D4".
How can I get a simple TRUE result if the formula in cell A1 is "=D4", and FALSE if it's something else ?
I get fix it with VBA but I prefer to use standard formulas first (if it's possible obviously).
Thanks for your time.
Using FORMULATEXT:
=FORMULATEXT(A1)="=D4"
I have a sheet where I'm counting if a value in a cell is older than today.
This formular that I'm using looks like this:
=COUNTIFS(H:H;"Not Started";G:G;">F2")
It is clearly not working, and I get an error if I remove the quotation marks ("").
The first condition should be working with the H:H,"Not Started", but the second condition is not.
In the G:G area is a date where the value has a deadline before an action has to be made, and the F2 is the today function (=TODAY()).
How do I check if the value in G:G is older than F2?
Thank you :)
Rewrite you formula as below, may help
=COUNTIFS(H:H;"Not Started";G:G;">" & F2)
I want to update the cell reference in C3 depending on the 'Current Day'.
For example, if 'Current Day' is 'Thu' then I'd like C3 to be 'Z3'
Any suggestions to get me started? webpages to read?
To get the value on the basis of Current Day use the following formula:
=HLOOKUP(H3,$I$2:$O$3,2,FALSE)
See image for reference
On seeing the formula in image attached probably you are looking for INDIRECT function:
=INDIRECT("'5+ 000""s By Day'!" & C3)
You can combine both in one formula as
=INDIRECT("'5+ 000""s By Day'!" & HLOOKUP(H3,$I$2:$O$3,2,FALSE))
For details on INDIRECT function see this.
A hlookup() would do it - =HLOOKUP(TEXT(TODAY(),"DDD"),I2:O3,2,0)
I need to write a formula in Excel that returns a numerical value in B1 for a day of the week entered in A1. For example:
A1=Sun so B1=0;
A1=Mon so B1=1;
A1=Tues so B1=2; etc.
I've set up a drop-down in A1 to keep the data consistent. I tried writing a nest IF and OR function in B1, but can't seem to make it work.
Any suggestions?
Please try:
=MATCH(A1,{"Sun","Mon","Tues","Wed","Thu","Fri","Sat"},0)-1
I would setup a lookup table (maybe where you dropdown data is) and use vlookup
=VLOOKUP(A1,Dates!$A$1:$B$3,2)
Type this code into cell B1.
=LOOKUP(A1,{"Sun","Mon","Tues","Wed","Thurs","Fri","Sat";0,1,2,3,4,5,6})
Then you can copy it down the column as needed.
I have in cel A1 with the following contents:
7:30:43
which is a time.
But now i want to use a formula to add one hour. What is the best way or how can i do this?
=A1+TIME(1,0,0)
Although, maybe this should be posted on Super User.
In cell A1, enter the time.
In cell B2, enter =A1+1/24
This may help you as well. This is a conditional statement that will fill the cell with a default date if it is empty but will subtract one hour if it is a valid date/time and put it into the cell.
=IF((Sheet1!C4)="",DATE(1999,1,1),Sheet1!C4-TIME(1,0,0))
You can also substitute TIME with DATE to add or subtract a date or time.