Good Morning,
Can you help to develop a formula to do the below task please:
The formula will be in Cell J8, i need the formula to look into Cell I8, if the formula finds a date entered then it returns YES in Cell J8, if it finds the symbol - then it returns the - symbol and if it is blank then it returns nothing.
Im a complete novice when it comes to formulas and i know only basics, this is what me and my cohort came up with but it doesnt work as intended
=IF(ISBLANK(I8),"",IF(ISNUMBER(I8),"YES","-"))
If this can be developed further to complete the task required we would be greatful.
Thanks
Try:
=IF(ISBLANK(I8),"",IF(I8="-",I8, IF(ISERROR(DATE(YEAR(I8),MONTH(I8),DAY(I8))),"","Yes")))
There formula check if there is a date and if that date is valid. If there is anything else in there cell except -, Empty String or Valid Date you will get nothing for result.
=IF(ISBLANK(I8),"",IF(I8="-","-",IF(ISNUMBER(I8),"Yes","None")))
isnumber is not the ultimate solution for detecting date. use vba
Related
Im exploring how feasible it is to extract data from cells that consist of text. ultimately. I will apply conditional formatting rules based on the date relative to today, but right now I just need to be able to extract them.
So far I have achieved the following:
To achieve this I've used the formula found online =IFERROR(DATEVALUE(LEFT(RIGHT(B2,(LEN(B2)-(FIND("-",B2)-3))),11)),""). The issue is that if a cell contains only a date, the Length is subtracted from itself and nothing is returned. I have tried modifying the above equation but keep running into errors.
Hoping someone may be able to help me out modify this formula. Alternatively, if anyone knows how dates can be extracted used just excel formulas that would be great.
The issue is that without the other text it is a true date and a true date is a double and has no - in it.
The simple fix is to wrap change the"" return from the IFERROR to B2:
=IFERROR(DATEVALUE(LEFT(RIGHT(B2,(LEN(B2)-(FIND("-",B2)-3))),11)),B2)
If that is not sufficient you can do an IF to test if date:
=IF(ISNUMBER(B2),B2,IFERROR(DATEVALUE(LEFT(RIGHT(B2,(LEN(B2)-(FIND("-",B2)-3))),11)),""))
This is a solution I came up with with appears to work for almost Any Date format provided the date is at the top of the cell. Note this was done for dates in cell H6 of my workbook.
The formula below can be entered below to extract the date from this cell amongst text.
=TEXT(IFERROR(LEFT(H6,SEARCH(CHAR(10),H6,1)-1),H6),"dd-mmm-yyyy")
This formula checks if the date is within 3 years and returns a true of false value. This can be used to conditionally Format Cells if the date once extracted is out of date.
=IF(ISBLANK(H6),FALSE,IFERROR(IF(DATEVALUE(TEXT(IFERROR(LEFT(H6,SEARCH(CHAR(10), H6, 1)-1),H6),"dd-mmm-yyyy"))<=TODAY()-(365*3),TRUE,FALSE),TRUE))
Works really well for me!
I'm struggling with something I think should be easy, it seems to be a common problem, I've found another solution here on the website but it won't work here in my document.
I want to find the (exact) value into a range, and having a true or false result if this value was found.
I tried with the combination of the find, isnumber and sumproduct formula but the value is never found, if I use a nested if formula it's working.
I have a dutch version of Excel, that's why you see "onwaar / waar" but onwaar is "false" and waar is "true".
Also my formula is written in dutch, but I translated it through the Excel-Translator.de website, I'm not 100% sure if it's done correctly.
In cell F2 I have this formula:
=SUMPRODUCT(SUMIF(E2, $A$2:$A$11))>0
In cell G2 I have this formula:
=IF(E2=$A$2,TRUE,
IF(E2=$A$3,TRUE,
IF(E2=$A$4,TRUE,
IF(E2=$A$5,TRUE,
IF(E2=$A$6,TRUE,
IF(E2=$A$7,TRUE,
IF(E2=$A$8,TRUE,
IF(E2=$A$9,TRUE,
IF(E2=$A$10,TRUE,
IF(E2=$A$11,TRUE,FALSE))))))))))
Thanks for your help.
First use function =COUNTIF($E$2:$E$11,A2) to know if the search value column contains your value.
Then, use function =IF(F2>=1,"True","False") determine true or false.
Combined, yout get =IF((COUNTIF($E$2:$E$11,A2)),"True","False")
screenshot of working example
I am having trouble working out an error I am having with the formula below, I am a bit of a novice and its been more trial and error than anything so far but, I was hoping someone with a far greater knowledge could point out where I am going wrong.
The formula works fine without the indirect element I.e.
=SUMPRODUCT((PARROT!$o$12:$o$250<>"COMPLETE")*(PARROT!$n$12:$n$250<TODAY()))
but I want to replace the sheet name with an INDIRECT address as the name of the sheet could change
so the formula I came up with is but, it has an error:
=SUMPRODUCT(INDIRECT("'"&$A3&"'!$o$12:$o$250"),"<>"&"Complete")*(INDIRECT("'"&$A3&"'!$N$12:$N$250")<TODAY())
Help would be very much appreciated.
From your formula it seems you are just counting rows where O12:O250 is not equal Complete and N12:N250 is earlier than today. So, you can use COUNTIFS() formula with INDIRECT() easily. Try below.
=COUNTIFS(INDIRECT($A$3&"!$O$12:$O$250"),"<>Complete",INDIRECT($A$3&"!$N$12:$N$250"),"<"&TODAY())
If you need to sum values from a column then SUMIFS() will be your friend.
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 have a spreadsheet that is a general summary of all cost's in my company. All i want to do is reference a cell from another work sheet so the formula for the cell is -
='standard cost - MP'!L61
However this is the value of the cell referenced -
And the formula for this cell has a '+' after the '=' which i have never seen before, so the formula for the cell 'standard cost - MP'!L61' is -
As soon as i change it, i.e. get rid of the extra plus at the beginning the value of the cell goes to 0.
And when i try and copy the cell to another worksheet it once again does not pull through the same vaolue as below. It responds with a null value again? What is that extra '+' after the '='?
Any help would be very much appreciated.
Thanks Guys
Greg
Apparently it's a legacy lotus method and harmless. To further help your investigation use the evaluate formula functionality to assist you.
Sorry for the site but i found it to be the best one for a guide http://www.dummies.com/how-to/content/how-to-check-for-and-evaluate-errors-in-excel-2010.html.