Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
VB VB is offline
external usenet poster
 
Posts: 10
Default Fine-Tune Multi-Condition Formula

vezerid gave me the following solution to my initial post (copied below),
which works wonderfully, but I forgot to mention 1 other criteria: I need the
formula to put a result in Column S based on the date in Column U (if there
is one), and stop calculating elapsed days as of that date.

vezerid's solution:
=IF(OR(AND(P15=1,TODAY()-R1530,U15-R1530),AND(P15=2,TODAY()-R1545,U15-R1545)), TODAY()-R15,"")

I am trying to write a conditional formula that calculates the number of days
outstanding, as described below. Here are the pertinent column designations:

Column P = Priority level (1 or 2)
Column R = Date Assigned
Column U = Date Closed
Column V = Status (Open or Closed)
Column S = Days Outstanding

If Column P is 1, and today is more than 30 days past Column R, and Column U
is more than 30 days past Column R, calculate Column S, BUT

If Column P is 2, and today is more than 45 days past Column R, and Column U
is more than 45 days past Column R, calculate Column S


--
VB
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default Fine-Tune Multi-Condition Formula

VB,
I am a bit confused. I thought the formula I suggested WAS for column
S. Do you now want a different calculation? What do you mean when you
say "I need the formula to put a result in Column S based on the date
in Column U (if there is one), and stop calculating elapsed days as of
that date."

So, given a date in column U:U, how do you want it to affect the
result?
Stop calculating elapsed days: do you mean that you want to put a
minimum value?

Please explain:
1. The result(s) that you would like to appear in S
2. The conditions under which each result should appear.

HTH
Kostis

On Mar 1, 8:13 pm, VB wrote:
vezeridgave me the following solution to my initial post (copied below),
which works wonderfully, but I forgot to mention 1 other criteria: I need the
formula to put a result in Column S based on the date in Column U (if there
is one), and stop calculating elapsed days as of that date.

vezerid'ssolution:
=IF(OR(AND(P15=1,TODAY()-R1530,U15-R1530),AND(P15=2,TODAY()-R1545,U15-R1545)), TODAY()-R15,"")

I am trying to write a conditional formula that calculates the number of days

outstanding, as described below. Here are the pertinent column designations:


Column P = Priority level (1 or 2)
Column R = Date Assigned
Column U = Date Closed
Column V = Status (Open or Closed)
Column S = Days Outstanding


If Column P is 1, and today is more than 30 days past Column R, and Column U
is more than 30 days past Column R, calculate Column S, BUT


If Column P is 2, and today is more than 45 days past Column R, and Column U
is more than 45 days past Column R, calculate Column S


--
VB



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
VB VB is offline
external usenet poster
 
Posts: 10
Default Fine-Tune Multi-Condition Formula

First of all, thanks for your help. Please see more info directly following
your questions below (to help put my answers in context).
--
VB


"vezerid" wrote:

VB,
I am a bit confused. I thought the formula I suggested WAS for column
S. Do you now want a different calculation? What do you mean when you
say "I need the formula to put a result in Column S based on the date
in Column U (if there is one), and stop calculating elapsed days as of
that date."

So, given a date in column U:U, how do you want it to affect the
result?


S should either calculate a value, or remain blank, based on whether U is
less than 30 or less than 45 days (depending on the value in P) from R, and
the other conditions in response to your question 2 below.

Stop calculating elapsed days: do you mean that you want to put a
minimum value?


Perhaps, but Im not sure of your question. Ive tried to explain more
clearly in response to your question 2 below.

Please explain:
1. The result(s) that you would like to appear in S


The number of days from the date in R

2. The conditions under which each result should appear.


The result should be based on the number of days over 30 if P=1, or over 45
if P=2, and today is greater than R plus either 30 or 45 (depending on the
value in P), and U is blank; however, if U <30 or <45 (depending on the value
in P), leave S blank.


HTH
Kostis

On Mar 1, 8:13 pm, VB wrote:
vezeridgave me the following solution to my initial post (copied below),
which works wonderfully, but I forgot to mention 1 other criteria: I need the
formula to put a result in Column S based on the date in Column U (if there
is one), and stop calculating elapsed days as of that date.

vezerid'ssolution:
=IF(OR(AND(P15=1,TODAY()-R1530,U15-R1530),AND(P15=2,TODAY()-R1545,U15-R1545)), TODAY()-R15,"")

I am trying to write a conditional formula that calculates the number of days

outstanding, as described below. Here are the pertinent column designations:


Column P = Priority level (1 or 2)
Column R = Date Assigned
Column U = Date Closed
Column V = Status (Open or Closed)
Column S = Days Outstanding


If Column P is 1, and today is more than 30 days past Column R, and Column U
is more than 30 days past Column R, calculate Column S, BUT


If Column P is 2, and today is more than 45 days past Column R, and Column U
is more than 45 days past Column R, calculate Column S


--
VB




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
Help with Multi-Condition Formula VB Excel Worksheet Functions 2 February 28th 07 08:58 PM
Macro fine Run fine from Select but not from KB Shortcut? [email protected] Excel Discussion (Misc queries) 8 August 31st 06 02:06 AM
Want to fine tune VLOOKUP formula given last week Serge New Users to Excel 9 March 12th 06 08:52 AM
What is wrong with this IF formula, it worked fine for a while? AC man Excel Discussion (Misc queries) 4 January 10th 06 01:19 AM
Multi-condition vlookup Hobbeson Excel Worksheet Functions 4 July 19th 05 02:57 AM


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