Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
I am trying use the nested IF function to do the following steps:
To make clear in Cell M2, I would have the project deadline date in mm/dd/yyyy format. I want the following condition to be satisfied. 1. IF date is greater than or equal to 15 than the same month should be in Y2 2. IF date is less than 15 than the earlier month should be returned back in Y2 3. If the M2 is blank than it should return a blank Cell in Y2 So this seems a multiple if condition, got bit confusing so what i did is used =IF(M20,DAY(M2), "") which returns the date from reference cell. and used =IF(X2=15,TEXT(M2,"MMM"), IF(X2<15,EOMONTH(M2,-1), IF(X2="","",""))) to return the all the above condition, all works fine but when X2 is blank, then it returns JAN as month instead of blank cell can somebody help. |
#2
![]() |
|||
|
|||
![]() Quote:
|
#3
![]() |
|||
|
|||
![]() Quote:
It worked... |
#4
![]() |
|||
|
|||
![]()
Not a problem! Glad to help :)
|
#5
![]() |
|||
|
|||
![]() Quote:
As per the conditions provided, The EOMONTH(M2,-1) returns me a numerical value, i have formatted these cells to display it as 'mmm', so it shows me as Apr when the deadline date is 05/03/2012 (mm/dd/yyyy). But when i created a pivot table to check the workload per person in an individual month these cells were not considered under the same month but displayed as date separately, which is invalid date, So in pivot table formatted the cells to get MMM, but they are as separate columns.... Could you please help me |
#6
![]() |
|||
|
|||
![]() Quote:
|
#7
![]() |
|||
|
|||
![]()
Here's the example workbook, that is similar to the one i am working with.
|
#8
![]() |
|||
|
|||
![]() Quote:
=IF(E2="","",IF(E2=15,TEXT(D2,"MMM"),TEXT(EOMONTH (D2,-1),"MMM"))) Then refresh the pivot table and I THINK that does what you need. |
#9
![]() |
|||
|
|||
![]() Quote:
=IF(X2="","",IF(X2=15,TEXT(M2,"MMM"),IF(X2<15,TEXT(EOMONTH(M2,-1),"MMM")))) |
#10
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Rajesh Bhapkar used his keyboard to write :
I am trying use the nested IF function to do the following steps: To make clear in Cell M2, I would have the project deadline date in mm/dd/yyyy format. I want the following condition to be satisfied. 1. IF date is greater than or equal to 15 than the same month should be in Y2 2. IF date is less than 15 than the earlier month should be returned back in Y2 3. If the M2 is blank than it should return a blank Cell in Y2 So this seems a multiple if condition, got bit confusing so what i did is used =IF(M20,DAY(M2), "") which returns the date from reference cell. and used =IF(X2=15,TEXT(M2,"MMM"), IF(X2<15,EOMONTH(M2,-1), IF(X2="","",""))) to return the all the above condition, all works fine but when X2 is blank, then it returns JAN as month instead of blank cell can somebody help. Try this: =IF(X2="","",IF(X2=15,TEXT(M2,"MMM"),IF(X2<15,EOM ONTH(M2,-1)))) Bruno |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel Logical IF function | Excel Worksheet Functions | |||
Logical Function excel 2003 | Excel Worksheet Functions | |||
Help!!! - logical function for someone not very logical | Excel Worksheet Functions | |||
EXCEL 2000 - IF function returns wrong result from logical test | Excel Worksheet Functions | |||
Help with logical function | New Users to Excel |