Aug 05 2022 10:20 AM - edited Aug 05 2022 10:57 AM
I am currently attempting to troubleshoot an IF formula statement. I am trying to filter out different numbers from 2 separate columns. I would like to keep all values between 1000 and 10000, with a special property given to numbers in cell P that are higher than the value in cell O while still under the range of >10000. My current If statement is: =IF(AND(P2>1000,P2>O2,P2<10000),P2,O2). I have tested this on an older version of Excel for Mac, and on Google Sheets and both work properly. Only when I am on Excel for windows does it not work (Version 2206. I have gone through each of the logicals separately and have concluded that O2<10000 is the only one that displays incorrectly.
O2: 4000 P2: 4500 (Needs to display column P) [Displays O2]
O2: 4000 P2: 0 (Needs to display O) [Displays O2]
O2: 4000 P2: 20000 (Needs to display O) [Displays O2]
O2: 4000 P2: 400 (Needs to display O) [Displays O2]
EDIT: Formula has been corrected. Still wrong, but more akin to my actual setup
Aug 05 2022 10:30 AM - edited Aug 05 2022 10:33 AM
SolutionMy first thought was to check that the 4500 in B2:4500 is entered as a number and not text. This happens to me sometimes when I copy numbers from another source. Should be no leading apostrophe ('), no spaces, etc. Also, highlight all the cells and explicitly define them as a number.
Aug 05 2022 10:33 AM
Aug 05 2022 10:58 AM
Aug 05 2022 10:59 AM
Aug 05 2022 11:02 AM
Aug 05 2022 11:05 AM