Excel Logical function

R

Rajesh Bhapkar

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 i
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 b
in Y2
2. IF date is less than 15 than the earlier month should be returne
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 di
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="","",""))) t
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
 
B

Bruno Campanini

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(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.

Try this:

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

Bruno
 
R

Rajesh Bhapkar

Spencer101;1603867 said:
Put the IF(X2="","" section at the start of the formula and all shoul
work out.

Could you please help me with one more thing..

As per the conditions provided, The EOMONTH(M2,-1) returns me
numerical value, i have formatted these cells to display it as 'mmm', s
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 a
individual month these cells were not considered under the same mont
but displayed as date separately, which is invalid date, So in pivo
table formatted the cells to get MMM, but they are as separat
columns.... Could you please help m

+-------------------------------------------------------------------
+-------------------------------------------------------------------
 
S

Spencer101

Rajesh said:
Yippe, Thanks, well i was trying with the formula from 2 days and messe
it up... Only shifting and 3M's directed it to the condition.... Than
you spencer... Thank you very very much...

Not a problem Rajesh. Always happy to help. :

+-------------------------------------------------------------------
+-------------------------------------------------------------------
 
R

Rajesh Bhapkar

Spencer101;1603889 said:
Not a problem Rajesh. Always happy to help. :)

Back again with a question with excel formula, The earlier formula wa
used to create a pivot table, which now is successfully created, bu
from that pivot table i want to create a comprehensive table which give
total of workload per person irrespective of team, i tried to create a
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 i
table 2, but the problem i cannot figure out feasible way to get a
automatic update to return me the sums of above also the header shoul
be repeated with out the team/group name.
Enclosing herewith an example sheet... I know this might be frustratin
but please do help...

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top