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
Avatar of zorvek (Kevin Jones)
zorvek (Kevin Jones)
Flag of United States of America image

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

Kevin
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
Avatar of PC_Bob
PC_Bob

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of wrt1mea
wrt1mea

ASKER

Works great!!!
Microsoft Excel
Microsoft Excel

Microsoft Excel topics include formulas, formatting, VBA macros and user-defined functions, and everything else related to the spreadsheet user interface, including error messages.

144K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo