#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default if statement

I have a question. here is what i have so far. I want to know if the change
for a specific account meets or doesnt meet the criteria. for example for the
first data i want it to lookup the account number 7400852 in the table and
then see if the change falls in between those values. if it does than it does
not meet the criteria and if it doesn't then it meets criteria. Anyone help
me out?

Table

Account# Description % Decrease $ Increase $
7400700 Housekeeping 25% ($1,000) $1,000
7400852 Disposal 25% ($500) $500
7400853 Inf waste 25% ($800) $1,000
7400854 Cleaning 25% ($1,000) $2,000
7400856 Security 25% ($1,000) $1,000



Data
account change meet criteria?
7400852 1200
7400856 300
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Date based IF Statement

maybe you can help solve this one..

=IF(TODAY()=C3,0,NOW()-C3-1)

the days open are counted based on a start date manually inputed in C3, a closed date is manually inputed in a separate cell, for instance C4. I am trying to craft my IF statement to stop counting days open based on the closure date. Any suggestions? Thx

for example:

DtOpen Days Open DtClosed
05/1/08 26
05/1/08 24 05/25/08
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,345
Default Date based IF Statement

If I understand you correctly, with the Start date in C3, and a Closed date
in E3 then in D2 enter the formula:

=IF(TODAY()<C3,"",IF(AND(E3<"",E3<C3),"Error in
dates!",IF(E3="",TODAY()-C3,MIN(TODAY(),E3)-C3)))

This will display the number of days since the start date, wherther of not
there is a Closed date entered, but will stop counting when the Closed date
is reached. That is even if there is a Closed date entered, it will still
only show the number of days since the Start date until the Closed date is
reached.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


<FXone wrote in message .. .
maybe you can help solve this one..

=IF(TODAY()=C3,0,NOW()-C3-1)

the days open are counted based on a start date manually inputed in C3, a
closed date is manually inputed in a separate cell, for instance C4. I am
trying to craft my IF statement to stop counting days open based on the
closure date. Any suggestions? Thx

for example:

DtOpen Days Open DtClosed
05/1/08 26
05/1/08 24 05/25/08



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
Can an If statement answer an If statement? M.A.Tyler Excel Discussion (Misc queries) 2 June 24th 07 04:14 AM
appending and IF statement to an existing IF statement spence Excel Worksheet Functions 1 February 28th 06 11:00 PM
If Statement Jeff Excel Discussion (Misc queries) 1 September 19th 05 04:37 PM
If statement and Isblank statement Rodney C. Excel Worksheet Functions 0 January 18th 05 08:39 PM
Help please, IF statement/SUMIF statement Brad_A Excel Worksheet Functions 23 January 11th 05 02:24 PM


All times are GMT +1. The time now is 02:07 AM.

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

About Us

"It's about Microsoft Excel"