#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Conditional DAY

Hi Group,

I am trying to set up a conditional statement that reads the DAY from a
date in a cell, and my formula is not working.

I am trying to make the cell return 1 if the day is 15 and 2 if the
day is =<15

C2 is formatted as a Date cell (type M/DD/YYYY)

My forumula is:
=IF(DAY(C215),1,2

Thank you,
Dan

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron de Bruin
 
Posts: n/a
Default Conditional DAY

Use it like this

=IF(DAY(C2)15,1,2)

--
Regards Ron de Bruin
http://www.rondebruin.nl


wrote in message oups.com...
Hi Group,

I am trying to set up a conditional statement that reads the DAY from a
date in a cell, and my formula is not working.

I am trying to make the cell return 1 if the day is 15 and 2 if the
day is =<15

C2 is formatted as a Date cell (type M/DD/YYYY)

My forumula is:
=IF(DAY(C215),1,2

Thank you,
Dan



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Conditional DAY

=IF(DAY(C2)15,1,2)


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

wrote in message
oups.com...
Hi Group,

I am trying to set up a conditional statement that reads the DAY from a
date in a cell, and my formula is not working.

I am trying to make the cell return 1 if the day is 15 and 2 if the
day is =<15

C2 is formatted as a Date cell (type M/DD/YYYY)

My forumula is:
=IF(DAY(C215),1,2

Thank you,
Dan



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bernard Liengme
 
Posts: n/a
Default Conditional DAY

Hi Dan,
A simple misplaced parenthesis
Use =IF(DAY(C2)15,1,2)
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

wrote in message
oups.com...
Hi Group,

I am trying to set up a conditional statement that reads the DAY from a
date in a cell, and my formula is not working.

I am trying to make the cell return 1 if the day is 15 and 2 if the
day is =<15

C2 is formatted as a Date cell (type M/DD/YYYY)

My forumula is:
=IF(DAY(C215),1,2

Thank you,
Dan



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Conditional DAY

Thanks so much everyone! Problem solved... I am new to excel formulas
and appreciate your patience.

Reply
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
Conditional Formatting when inserting a row zahoulik Excel Worksheet Functions 2 January 7th 06 03:01 PM
Conditional Format Not Working KMH Excel Discussion (Misc queries) 0 December 22nd 05 05:32 PM
Conditional formula - language needed gamebird Excel Worksheet Functions 7 October 10th 05 11:48 PM
VLOOKUP & Conditional Formating Help. Excel'ed Failures Excel Discussion (Misc queries) 6 August 16th 05 04:46 PM
Conditional formatting not available in Excel BAB Excel Discussion (Misc queries) 2 January 1st 05 03:33 PM


All times are GMT +1. The time now is 11:32 AM.

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

About Us

"It's about Microsoft Excel"