Solved

If statement and between

Posted on 2011-03-01
3
270 Views
Last Modified: 2012-05-11
Experts, I need to test if D142 is between I18 and J18.  If so, then return 250 otherwise 0.
is this the correct way to write it?  I am not getting the correct answer.
=IF(I18<$D142<J18,250,0)
0
Comment
Question by:pdvsa
  • 2
3 Comments
 
LVL 81

Accepted Solution

by:
zorvek (Kevin Jones) earned 500 total points
ID: 35012520
=IF(AND($D142>I18,$D142<J18),250,0)

Kevin
0
 
LVL 58

Expert Comment

by:cyberkiwi
ID: 35012523
=IF(AND(I18<$D142,$D142<J18),250,0)
0
 
LVL 58

Expert Comment

by:cyberkiwi
ID: 35012531
And because you said "between"

=IF(AND(I18<=$D142,$D142<=J18),250,0)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now