![]() |
![]() |
|
|||||||
| 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: Apr 2002
Posts: 28
|
=IF(D25>240,240,0)
How do I format the cell so that it comes up with 240? I currently have it formatted as Custom, m and t comes up with 8 instead of 240. 240 represents months. Cell D25 has the following formula: =DATEDIF(D22,D23,"M") |
|
|
|
|
|
#2 | |
|
Board Regular
Join Date: Feb 2002
Location: North Alabama, USA
Posts: 105
|
Quote:
__________________
Hope this helps! Rocky <h6>"Be not the first by whom the New are try'd, Nor yet the last to lay the Old aside." Alexander Pope (1688-1744).</h6> |
|
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
Your formula =IF(D25>240,240,0) comes up with 8? |
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Feb 2002
Location: Southfield,MI USA
Posts: 1,030
|
Hey Minnie,
I believe you want to format your cell with a number format. I realized that the number 240 appears as the value "8" in a cell when formated with the custom "M" format - this is because 240 is the serial number for the date 8/27/1900 - the month of that date being 8. Adam |
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Mar 2002
Location: Hellas
Posts: 553
|
hello Minnie
format the cell with the formula eith a number format. It works Andreas |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|