I am trying to enter an expression to compare two strings, greater than or less than, but it sends me the following error:
Arithmetic expression ‘([Location] > “A”)’ does not have valid input types
I think this comparison only accepts numbers or dates.
Yo uare not telling enough information of what you want.
Assuming you want to compare how long are the strings (which are numbers) you can use <, > or =
# If [StringA] is "Hello" and [StringB] is "Hola"
LEN([StringA])>LEN([StringB]) # Would return true
LEN([StringA])<LEN([StringB]) # Would return false
LEN([StringA])=LEN([StringB]) # Would return false
FWIW, my understanding from various other discussions in the community is that the text expressions used in my idea as well as other replies in this conversation generally do not present performance concerns.
In case it seems preferable for any reason, here’s an alternative version of the idea I suggested trying:
Again: why? Why do you need to do this comparison? What are you trying to accomplish? We might be able to offer an alternative if we had an idea what you are trying to do.
I have a warehouse where each position has a name, and the users of my app are assigned a range of positions, and I have a spreadsheet with tasks to collect products in my warehouse, but the users can only collect products from the assigned range.
example:
my positions are called A1, A2, A3, B1, B2, B3, C1, C2, C3,…Z1,Z2,Z3
USER1 only collects products from positions between A1 and B3
USER2 only collects products from the positions that are between C1 and D3
position names are variable and can grow as users can change range