Avatar of wrt1mea
wrt1mea asked on

I need to update the following formula

I am trying to come up with an IF statement to look at column A and see if its between two numbers...

=IFERROR(IF(2000<=$A2>=1000,$E2/$A2,""),"")

What I am using doesnt seem to be working correctly. I have tried to swap the < >, but it doesnt seem to work.
Microsoft Excel

Avatar of undefined
Last Comment
wrt1mea

8/22/2022 - Mon
zorvek (Kevin Jones)

=IFERROR(IF(AND(2000<=$A2,$A2>=1000),$E2/$A2,""),"")

Kevin
zorvek (Kevin Jones)

Or...

=IF(AND($A2>=1000,$A2<=2000),$E2/$A2,"")

because you don't need to worry about #DIV/0 if A2 is always between 1000 and 2000.

Kevin
ASKER CERTIFIED SOLUTION
PC_Bob

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
wrt1mea

Works great!!!
Your help has saved me hundreds of hours of internet surfing.
fblack61