问题
I'm trying to look at the number of users who are on screens larger than 1400. I have my Excel sheet, and tried doing an IF statement, but because of the "x" in the middle, it's not working properly and is instead just pulling all of the cells, even the ones with screen sizes less than 1400. I've attached my formula and data example for reference. I've also tried putting a space after the fourth integer to separate things that way, but that also goofs things up since there are some screen sizes with only three numbers.
This is my formula: =IF(A2>=1400,A2,"No")
回答1:
The values in Column A are strings. A string will always be larger than a number to Excel. You need to parse the string to pull the first number:
=IF(--LEFT(A2,SEARCH("x",A2&"x")-1)>1400,A2,"No")
来源:https://stackoverflow.com/questions/65587439/how-to-use-an-if-statement-to-pull-cells-only-with-xxxx