![]() |
![]() |
|
|||||||
| 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 |
|
Board Regular
Join Date: Feb 2002
Posts: 232
|
hi,
I'm trying to nest these statements...is it possible... 1) DATEDIF(A1,B1,"d") and 2) IF(AND(B2>30,B2>=60),"x","") Thanks Matt |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Apr 2002
Location: Trussville, AL
Posts: 134
|
=IF(AND(B3>30,B3>=60),DATEDIF(A2,B2,"d"),"")
[EDIT] - Tested and works great on '97. [ This Message was edited by: PDuPre' on 2002-05-24 06:42 ] |
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,319
|
Quote:
By the way, B2>=60 is not needed in the AND(B2>30,B2>=60) bit of the second formula, because B2>30 already covers what B2>=60 covers. |
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Apr 2002
Location: Trussville, AL
Posts: 134
|
This formula will only perform the DatedIf statement if the value is >=60. So really the >30 is not needed. No point.
|
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Feb 2002
Posts: 232
|
there are 4 cells it's being entered into.
30,60,90,90+ days Hence a greater than less than senario. I'll try my luck with the other one and go from there.... thanks both for your help. Matt |
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Apr 2002
Location: Trussville, AL
Posts: 134
|
What "other" one?
Anything worth sharing? Philip [ This Message was edited by: PDuPre' on 2002-05-24 16:30 ] |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|