LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Junior Member
 
Location: India
Posts: 11
Default Excel Logical function

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.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Logical IF function Stuck! Excel Worksheet Functions 2 March 20th 10 09:26 AM
Logical Function excel 2003 Denver Excel Worksheet Functions 4 June 30th 09 07:01 PM
Help!!! - logical function for someone not very logical ECH123 Excel Worksheet Functions 3 May 11th 09 04:14 PM
EXCEL 2000 - IF function returns wrong result from logical test Sean Duffy Excel Worksheet Functions 8 October 15th 08 09:58 PM
Help with logical function PT New Users to Excel 2 February 22nd 08 02:13 AM


All times are GMT +1. The time now is 10:30 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"