Solved

If statement and between

Posted on 2011-03-01
3
288 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

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.
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

785 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