Forum Discussion
Keep Calm
Mar 08, 2018Copper Contributor
If function for text field
I have a column in which the cells contain image dimensions e.g. 5320 x 3500. I want to create a formula which is if 'number 1' is bigger than 'number 2' the result is 'Landscape', else the result is 'Portrait'. I understand basic if functions, but his is beyond me!
use this =IF((LEFT(B5,4)+0)>(RIGHT(B5,4)+0),"Landscape","Portrait") formula in C5 of the example file.
i have also attached the file.
- JamilBronze Contributorlets say you cell number 1 is in A2 and number 2 is in B2
so here you can build your formula like this and put it in whatever cell you want, e,g C2
=IF(A2>B2, "Landscape","Portrait")