on 07-17-2019 10:37 PM
Hi,
can someone please help me with the following:
I want to say:
=If [In Production Date] >= "2015-12-14" Then "Closed" Else "Open"
But, I keep getting this error: The expression or sub-expression at position 28 in the '>=' function uses an invalid data type. (IES 10037).
Any idea how to fixit?
Thanks,
Hi Nina,
Try this
=If([In Production Date]>= ToDate("8/20/17"; "d/M/yy")) Then "Closed" Else "Open"
Thanks,
Mahboob Mohammed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nina,
You need to use ToDate() function.
=If[In Production Date]>= ToDate("12/14/2015";"dd/MM/yyyy") Then "Closed" Else "Open"
You can use the date format similar to In Production Date.
https://blogs.sap.com/2016/07/28/formatdate-and-todate-a-simple-guide/
Thanks,
Mahboob Mohammed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What data type is [In Production Date] and is it a string?
Because you're comparing it to a string "2015-12-14"
If it's not a string, format your fixed date as a date type
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.