![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 3
|
What I want is a value return if several conditions are met. If x < .25 then return 0. If x is between .299 and .399 then return .25...and so on. Is this possible?
[ This Message was edited by: firebirdone on 2002-05-02 14:36 ] [ This Message was edited by: firebirdone on 2002-05-02 14:39 ] |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Location: Southfield,MI USA
Posts: 1,030
|
Hey,
Sure thing. You can either use a nested if statement (up to 7 in one formula) or a vlookup. In your example: =IF(A2<0.25,0,IF(AND(A2>0.3,A2<0.4),0.25,IF(next criteria and so on )) I'd give you a better formula if I knew all your conditions. Hope that helps, Adam |
|
|
|
|
|
#3 |
|
New Member
Join Date: May 2002
Posts: 3
|
Let me try and I'll let you know. Thank you.
|
|
|
|
|
|
#4 |
|
New Member
Join Date: May 2002
Posts: 3
|
Thank you Asala42. It worked.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|