Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 96
Default Calculating using a date

I am trying to write an if statement to grab a certain cell if a date is 5
and the # in cell e2 is <4. I am having trouble getting the date.

A B C
4/28/06 64 1

This is what I wrote, but it's not capturing the date the correct way.

If(A227,B2,C2)

Thanks in advance of any help anyone can give me.
  #2   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Calculating using a date

Try this...........

=If(DAY(A2)27,B2,C2)

Vaya con Dios,
Chuck, CABGx3




"Diane" wrote:

I am trying to write an if statement to grab a certain cell if a date is 5
and the # in cell e2 is <4. I am having trouble getting the date.

A B C
4/28/06 64 1

This is what I wrote, but it's not capturing the date the correct way.

If(A227,B2,C2)

Thanks in advance of any help anyone can give me.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Calculating using a date

Thank you so much, that works perfectly.
--
DMM


"CLR" wrote:

Try this...........

=If(DAY(A2)27,B2,C2)

Vaya con Dios,
Chuck, CABGx3




"Diane" wrote:

I am trying to write an if statement to grab a certain cell if a date is 5
and the # in cell e2 is <4. I am having trouble getting the date.

A B C
4/28/06 64 1

This is what I wrote, but it's not capturing the date the correct way.

If(A227,B2,C2)

Thanks in advance of any help anyone can give me.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Calculating using a date

That solves one problem, now I need to know how I can say
=If(DAY(A2)27,B2,C2)AND B2 IS < 2 THEN B2 IF NOT MAKE IT BLANK
DMM


"CLR" wrote:

Try this...........

=If(DAY(A2)27,B2,C2)

Vaya con Dios,
Chuck, CABGx3




"Diane" wrote:

I am trying to write an if statement to grab a certain cell if a date is 5
and the # in cell e2 is <4. I am having trouble getting the date.

A B C
4/28/06 64 1

This is what I wrote, but it's not capturing the date the correct way.

If(A227,B2,C2)

Thanks in advance of any help anyone can give me.

  #5   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Calculating using a date

Not real sure I understand your conditions, but give this a try...

=IF(B2=2,"",IF(AND(DAY(A2)27,B2<2),B2,C2))

Vaya con Dios,
Chuck, CABGx3


"Dianethetech" wrote:

That solves one problem, now I need to know how I can say
=If(DAY(A2)27,B2,C2)AND B2 IS < 2 THEN B2 IF NOT MAKE IT BLANK
DMM


"CLR" wrote:

Try this...........

=If(DAY(A2)27,B2,C2)

Vaya con Dios,
Chuck, CABGx3




"Diane" wrote:

I am trying to write an if statement to grab a certain cell if a date is 5
and the # in cell e2 is <4. I am having trouble getting the date.

A B C
4/28/06 64 1

This is what I wrote, but it's not capturing the date the correct way.

If(A227,B2,C2)

Thanks in advance of any help anyone can give me.

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
Calculating Difference Between Start Date & Time And End Date & Ti Samwar Excel Discussion (Misc queries) 2 December 19th 05 12:42 PM
Calculating recurring date in following month, calculating # days in that period Walterius Excel Worksheet Functions 6 June 4th 05 11:21 PM
Calculating days between current date and a date in future NETWORKDAYS() function Faheem Khan Excel Worksheet Functions 2 February 10th 05 07:18 PM
Calculating due date? Loyalise Excel Worksheet Functions 2 November 2nd 04 07:38 AM
Calculating due date? Loyalise Excel Worksheet Functions 0 November 2nd 04 03:29 AM


All times are GMT +1. The time now is 12:30 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"