Excel - Excel Logical function

Asked By Rajesh Bhapkar on 22-Jul-12 03:29 AM
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(M2>0,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.




--
Rajesh Bhapkar


Bruno Campanini replied to Rajesh Bhapkar on 22-Jul-12 06:04 AM
Rajesh Bhapkar used his keyboard to write :

Try this:

=IF(X2="","",IF(X2>=15,TEXT(M2,"MMM"),IF(X2<15,EOMONTH(M2,-1))))

Bruno
Rajesh Bhapkar replied to Spencer101 on 22-Jul-12 09:19 AM
Spencer101;1603867 Wrote:

Thank you for your help,

It worked...




--
Rajesh Bhapkar
Rajesh Bhapkar replied to Spencer101 on 22-Jul-12 09:51 AM
Spencer101;1603867 Wrote:

Could you please help me with one more thing..

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


+-------------------------------------------------------------------+
+-------------------------------------------------------------------+



--
Rajesh Bhapkar
Spencer101 replied to Rajesh Bhapkar on 22-Jul-12 03:56 PM
Rajesh Bhapkar;1603886 Wrote:

Not a problem Rajesh.  Always happy to help. :)


+-------------------------------------------------------------------+
+-------------------------------------------------------------------+



--
Spencer101
Rajesh Bhapkar replied to Spencer101 on 23-Jul-12 04:06 PM
Spencer101;1603889 Wrote:

Back again with a question with excel formula, The earlier formula was
used to create a pivot table, which now is successfully created, but
from that pivot table i want to create a comprehensive table which gives
total of workload per person irrespective of team, i tried to create an
another pivot table from the first one but one cell in header is blank,
it is not feasible. So i decided to list down the names of person in
table 2, but the problem i cannot figure out feasible way to get an
automatic update to return me the sums of above also the header should
be repeated with out the team/group name.
Enclosing herewith an example sheet...  I know this might be frustrating
but please do help....


+-------------------------------------------------------------------+
|Filename: Book2.zip                                                |
|Download: http://www.excelbanter.com/attachment.php?attachmentid=489|
+-------------------------------------------------------------------+



--
Rajesh Bhapkar