Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
Solved

# If statement and between

Posted on 2011-03-01
Medium Priority
310 Views
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
Question by:pdvsa
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 2

LVL 81

Accepted Solution

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

Kevin
0

LVL 58

Expert Comment

ID: 35012523
=IF(AND(I18<\$D142,\$D142<J18),250,0)
0

LVL 58

Expert Comment

ID: 35012531
And because you said "between"

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

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
###### Suggested Courses
Course of the Month11 days, 8 hours left to enroll