#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 78
Default If And Formula

O35 = Sunday

T25 = 06:00:00

R 35 = End time of fault ie 05:21:00

What i want to do is check cell O35, if it is sunday and the end time
is after 06:00:00 i want the end value to be 06:00:00 or if the end
time is before 06:00:00 i want the end time to equal r 35

i am trying this formula
iF(AND(O35 ="Sunday",R35T25),T25,R35)
but getting nowhere
can anyone help please

thanks

kevin

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 40
Default If And Formula

Kevin
Formula is correct, I simulated it and that works fine. Looks like
that there is something wrong with the Time Format you are entering.
Ensure that you are entering time as a value not as a text.

AQIB RIZVI


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default If And Formula

hi,
i plugged your formula in a blank worksheet and it works. needs an equal
sign in front but other than than it works.
what are you having problems with?
check your formating.
regards
FSt1


"kevcar40" wrote:

O35 = Sunday

T25 = 06:00:00

R 35 = End time of fault ie 05:21:00

What i want to do is check cell O35, if it is sunday and the end time
is after 06:00:00 i want the end value to be 06:00:00 or if the end
time is before 06:00:00 i want the end time to equal r 35

i am trying this formula
iF(AND(O35 ="Sunday",R35T25),T25,R35)
but getting nowhere
can anyone help please

thanks

kevin


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
Default If And Formula

Hi,

Looks like O35 is actually a date formatted as dddd and not text so try this:

=iF(AND(WEEKDAY(O35) =1,R35T25),T25,R35)


HTH
Jean-Guy


"kevcar40" wrote:

O35 = Sunday

T25 = 06:00:00

R 35 = End time of fault ie 05:21:00

What i want to do is check cell O35, if it is sunday and the end time
is after 06:00:00 i want the end value to be 06:00:00 or if the end
time is before 06:00:00 i want the end time to equal r 35

i am trying this formula
iF(AND(O35 ="Sunday",R35T25),T25,R35)
but getting nowhere
can anyone help please

thanks

kevin


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default If And Formula

The OP should move to O35 and tell us what he sees in the Formula Bar
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"pinmaster" wrote in message
...
Hi,

Looks like O35 is actually a date formatted as dddd and not text so try
this:

=iF(AND(WEEKDAY(O35) =1,R35T25),T25,R35)


HTH
Jean-Guy


"kevcar40" wrote:

O35 = Sunday

T25 = 06:00:00

R 35 = End time of fault ie 05:21:00

What i want to do is check cell O35, if it is sunday and the end time
is after 06:00:00 i want the end value to be 06:00:00 or if the end
time is before 06:00:00 i want the end time to equal r 35

i am trying this formula
iF(AND(O35 ="Sunday",R35T25),T25,R35)
but getting nowhere
can anyone help please

thanks

kevin






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default If And Formula

=IF(O35="Sunday",MIN(R35,T25),R35)


"kevcar40" wrote:

O35 = Sunday

T25 = 06:00:00

R 35 = End time of fault ie 05:21:00

What i want to do is check cell O35, if it is sunday and the end time
is after 06:00:00 i want the end value to be 06:00:00 or if the end
time is before 06:00:00 i want the end time to equal r 35

i am trying this formula
iF(AND(O35 ="Sunday",R35T25),T25,R35)
but getting nowhere
can anyone help please

thanks

kevin


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 78
Default If And Formula

On 11 Nov, 16:53, Teethless mama
wrote:
=IF(O35="Sunday",MIN(R35,T25),R35)



"kevcar40" wrote:
O35 = Sunday


T25 = 06:00:00


R 35 = End time of fault ie 05:21:00


What i want to do is check cell O35, if it is sunday and the end time

Thanks All


is after 06:00:00 i want the end value to be 06:00:00 or if the end
time is before 06:00:00 i want the end time to equal r 35


i am trying this formula
iF(AND(O35 ="Sunday",R35T25),T25,R35)
but getting nowhere
can anyone help please


thanks


kevin- Hide quoted text -


- Show quoted text -



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
Default If And Formula

Hi,

What is in O35? is it text? or a date formatted as "dddd" which would give
days of the week? If it is text then the formula is sound, if it is a date
then try the formula I gave you in my first post!

=IF(AND(WEEKDAY(O35)=1,R35T25),T25,R35)

Regards!
Jean-Guy

"kevcar40" wrote:

On 11 Nov, 16:53, Teethless mama
wrote:
=IF(O35="Sunday",MIN(R35,T25),R35)



"kevcar40" wrote:
O35 = Sunday


T25 = 06:00:00


R 35 = End time of fault ie 05:21:00


What i want to do is check cell O35, if it is sunday and the end time

Thanks All


is after 06:00:00 i want the end value to be 06:00:00 or if the end
time is before 06:00:00 i want the end time to equal r 35


i am trying this formula
iF(AND(O35 ="Sunday",R35T25),T25,R35)
but getting nowhere
can anyone help please


thanks


kevin- Hide quoted text -


- Show quoted text -




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



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