PC Review


Reply
Thread Tools Rate Thread

Date in "If" formula

 
 
Saadia
Guest
Posts: n/a
 
      27th Nov 2008
Hi,
I am trying to setup an if statement to calculate the $ amount for all jobs
approved but not yet started.

i need to know how to write ex: "if A3 has a date then calculate the
formula" into the "if statement".

Column F= Date Approved
Column G= Estimate Amount
Column L = Invoice date
Column H = Date Started

So if there is a date in F20 and no date in L20 and no date H20 then 0
otherwise G20
So far i have =if(and(L20=" ",H20=" ",f20=DATE???),G20,0)
I get lost at the date part...hopefully i'm on the right track..

*The reason i have included date started is because i have to setup a
different formula for jobs that have been started and not yet approved.
Any help would be appreciated.
Thanks
 
Reply With Quote
 
 
 
 
Sheeloo
Guest
Posts: n/a
 
      27th Nov 2008
Try
=IF(and(F20<>"",L20="",H20=""),0,G20)

"" has two " with nothing in between the pair



"Saadia" wrote:

> Hi,
> I am trying to setup an if statement to calculate the $ amount for all jobs
> approved but not yet started.
>
> i need to know how to write ex: "if A3 has a date then calculate the
> formula" into the "if statement".
>
> Column F= Date Approved
> Column G= Estimate Amount
> Column L = Invoice date
> Column H = Date Started
>
> So if there is a date in F20 and no date in L20 and no date H20 then 0
> otherwise G20
> So far i have =if(and(L20=" ",H20=" ",f20=DATE???),G20,0)
> I get lost at the date part...hopefully i'm on the right track..
>
> *The reason i have included date started is because i have to setup a
> different formula for jobs that have been started and not yet approved.
> Any help would be appreciated.
> Thanks

 
Reply With Quote
 
Saadia
Guest
Posts: n/a
 
      27th Nov 2008
Hi,
Thanks for your reply.
I tried it out, but doesn't seem to work for some reason.
On jobs that are approved it's resulting in a zero and the remaining ones
it's giving me the estimate amount. I double checked my cells and the order
of the true and false values and it all looks correct.
the date cells are formated as dates...
Any ideas?

"Sheeloo" wrote:

> Try
> =IF(and(F20<>"",L20="",H20=""),0,G20)
>
> "" has two " with nothing in between the pair
>
>
>
> "Saadia" wrote:
>
> > Hi,
> > I am trying to setup an if statement to calculate the $ amount for all jobs
> > approved but not yet started.
> >
> > i need to know how to write ex: "if A3 has a date then calculate the
> > formula" into the "if statement".
> >
> > Column F= Date Approved
> > Column G= Estimate Amount
> > Column L = Invoice date
> > Column H = Date Started
> >
> > So if there is a date in F20 and no date in L20 and no date H20 then 0
> > otherwise G20
> > So far i have =if(and(L20=" ",H20=" ",f20=DATE???),G20,0)
> > I get lost at the date part...hopefully i'm on the right track..
> >
> > *The reason i have included date started is because i have to setup a
> > different formula for jobs that have been started and not yet approved.
> > Any help would be appreciated.
> > Thanks

 
Reply With Quote
 
John
Guest
Posts: n/a
 
      27th Nov 2008
Hi Saadia
Try
> =IF(and(F20<>"",L20="",H20=""),G20,0)

I think you made a mistake in your logic. You said >>So if there is a date
in F20 and no date in L20 and no date H20 then 0
otherwise G20 but maybe you meant >>So if there is a date in F20 and no
date in L20 and no date H20 then G20
otherwise 0 >>
Just guessing, try it
Regards
John


"Saadia" <(E-Mail Removed)> wrote in message
news:96621D31-20EB-4719-9BED-(E-Mail Removed)...
> Hi,
> Thanks for your reply.
> I tried it out, but doesn't seem to work for some reason.
> On jobs that are approved it's resulting in a zero and the remaining ones
> it's giving me the estimate amount. I double checked my cells and the
> order
> of the true and false values and it all looks correct.
> the date cells are formated as dates...
> Any ideas?
>
> "Sheeloo" wrote:
>
>> Try
>> =IF(and(F20<>"",L20="",H20=""),0,G20)
>>
>> "" has two " with nothing in between the pair
>>
>>
>>
>> "Saadia" wrote:
>>
>> > Hi,
>> > I am trying to setup an if statement to calculate the $ amount for all
>> > jobs
>> > approved but not yet started.
>> >
>> > i need to know how to write ex: "if A3 has a date then calculate the
>> > formula" into the "if statement".
>> >
>> > Column F= Date Approved
>> > Column G= Estimate Amount
>> > Column L = Invoice date
>> > Column H = Date Started
>> >
>> > So if there is a date in F20 and no date in L20 and no date H20 then 0
>> > otherwise G20
>> > So far i have =if(and(L20=" ",H20=" ",f20=DATE???),G20,0)
>> > I get lost at the date part...hopefully i'm on the right track..
>> >
>> > *The reason i have included date started is because i have to setup a
>> > different formula for jobs that have been started and not yet approved.
>> > Any help would be appreciated.
>> > Thanks


 
Reply With Quote
 
Sheeloo
Guest
Posts: n/a
 
      28th Nov 2008
Did you want the opposite?
=IF(and(F20<>"",L20="",H20=""),G20,0)

This will show the value in G20 if
F20 is not bland AND L20 AND H20 are ...

"Saadia" wrote:

> Hi,
> Thanks for your reply.
> I tried it out, but doesn't seem to work for some reason.
> On jobs that are approved it's resulting in a zero and the remaining ones
> it's giving me the estimate amount. I double checked my cells and the order
> of the true and false values and it all looks correct.
> the date cells are formated as dates...
> Any ideas?
>
> "Sheeloo" wrote:
>
> > Try
> > =IF(and(F20<>"",L20="",H20=""),0,G20)
> >
> > "" has two " with nothing in between the pair
> >
> >
> >
> > "Saadia" wrote:
> >
> > > Hi,
> > > I am trying to setup an if statement to calculate the $ amount for all jobs
> > > approved but not yet started.
> > >
> > > i need to know how to write ex: "if A3 has a date then calculate the
> > > formula" into the "if statement".
> > >
> > > Column F= Date Approved
> > > Column G= Estimate Amount
> > > Column L = Invoice date
> > > Column H = Date Started
> > >
> > > So if there is a date in F20 and no date in L20 and no date H20 then 0
> > > otherwise G20
> > > So far i have =if(and(L20=" ",H20=" ",f20=DATE???),G20,0)
> > > I get lost at the date part...hopefully i'm on the right track..
> > >
> > > *The reason i have included date started is because i have to setup a
> > > different formula for jobs that have been started and not yet approved.
> > > Any help would be appreciated.
> > > Thanks

 
Reply With Quote
 
Saadia
Guest
Posts: n/a
 
      28th Nov 2008
Ok that worked, however it is giving me estimate amounts for jobs
that have no date in the approved column but some writting ex..lost bid etc...
Is there any way for it to solve only if there is a date and disregard
anything else that is in that cell?
Thanks for your help

"Saadia" wrote:

> Hi,
> I am trying to setup an if statement to calculate the $ amount for all jobs
> approved but not yet started.
>
> i need to know how to write ex: "if A3 has a date then calculate the
> formula" into the "if statement".
>
> Column F= Date Approved
> Column G= Estimate Amount
> Column L = Invoice date
> Column H = Date Started
>
> So if there is a date in F20 and no date in L20 and no date H20 then 0
> otherwise G20
> So far i have =if(and(L20=" ",H20=" ",f20=DATE???),G20,0)
> I get lost at the date part...hopefully i'm on the right track..
>
> *The reason i have included date started is because i have to setup a
> different formula for jobs that have been started and not yet approved.
> Any help would be appreciated.
> Thanks

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I save "details" View + "Date Modified" in "insert file" Kevin Clough Microsoft Outlook Discussion 1 16th Jun 2008 10:59 PM
Conditional formatting: How to set condition "formula" with is "date"formatted AA Arens Microsoft Excel Discussion 10 31st Jan 2008 01:57 AM
If changed array formula reduce ""\""\""\ - signs to #Missing, will it make ... Maria J-son Microsoft Excel Programming 2 5th Mar 2006 12:20 PM
Calulate "Start Date" by subtracting "Duration" from "End Date" =?Utf-8?B?QnJlbmRhbg==?= Microsoft Access 1 7th Jun 2005 10:16 PM
"Open" Dialog Box - Sorting by both "type" AND "date modified" Sam Microsoft Word Document Management 2 21st Jul 2004 09:53 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:20 PM.