Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / March 2008

Tip: Looking for answers? Try searching our database.

IF-Then formula problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bill Elerding - 24 Mar 2008 19:47 GMT
I am using the attached formula, but need to modify it to within a range.  
Here is the existing formula:

Formula =IF((M2-L2>0),(ROUND(((M2-L2)*1440),0))," ")
I need to have the first IF statement to me like this, where MaxTAT=180
(for now):

Revision =IF((MaxTAT>M2-L2>0),(ROUND(((M2-L2)*1440),0))," ")  I want the
formula to round the answer if M2-L2 is between 0 and 180, or leave it blank
if not.  When I put the formula in as this, it appears to only consider the
M2-L2>0 part of the formula.  Am I missing something REALLY basic here?

Thanks for any help.  Bill in Northern California
Max - 24 Mar 2008 19:59 GMT
Believe you meant to do this:
=IF(AND(M2-L2>0,M2-L2<MaxTAT),ROUND((M2-L2)*1440,0),"")

[Using an AND construct, and with extra parens removed]
Signature

Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

> I am using the attached formula, but need to modify it to within a range.  
> Here is the existing formula:
[quoted text clipped - 9 lines]
>
> Thanks for any help.  Bill in Northern California
Bill Elerding - 25 Mar 2008 06:57 GMT
Thanks, Max.  It worked like a charm.  -Bill

> Believe you meant to do this:
> =IF(AND(M2-L2>0,M2-L2<MaxTAT),ROUND((M2-L2)*1440,0),"")
[quoted text clipped - 13 lines]
> >
> > Thanks for any help.  Bill in Northern California
Max - 25 Mar 2008 08:03 GMT
Good to hear that, and thanks for feeding back.
Signature

Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

> Thanks, Max.  It worked like a charm.  -Bill
Pete_UK - 24 Mar 2008 20:03 GMT
You need to amend your formula like this:

=IF(AND(MaxTAT>M2-L2,M2-L2>0),ROUND((M2-L2)*1440,0)," ")

I've also removed two pairs of redendant brackets.

Hope this helps.

Pete

On Mar 24, 6:47 pm, Bill Elerding <Bill
Elerd...@discussions.microsoft.com> wrote:
> I am using the attached formula, but need to modify it to within a range.  
> Here is the existing formula:
[quoted text clipped - 9 lines]
>
> Thanks for any help.  Bill in Northern California
Bill Elerding - 25 Mar 2008 06:59 GMT
Great, thanks for the help.  Of course, once I put in the fix, I had to also
remember to multiply the M2-L2 by 1440 to convert the times back to minutes.  
Sometimes the simplest things...  -Bill

> You need to amend your formula like this:
>
[quoted text clipped - 21 lines]
> >
> > Thanks for any help.  Bill in Northern California
Pete_UK - 25 Mar 2008 11:00 GMT
Yes, I thought you were doing something with time. Glad to hear you
got it to work.

Pete

On Mar 25, 5:59 am, Bill Elerding
<BillElerd...@discussions.microsoft.com> wrote:
> Great, thanks for the help.  Of course, once I put in the fix, I had to also
> remember to multiply the M2-L2 by 1440 to convert the times back to minutes.  
[quoted text clipped - 27 lines]
>
> - Show quoted text -
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.