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 Help with Multi-Condition Formula

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
..
So far, this is what Ive come up with:

=IF(ISNONTEXT(U12),IF(AND(TODAY()=(R12+30),P12=1) ,TODAY()-R12,IF(AND(TODAY()=(R12+45),P12=2),TODAY()-R12)))

Thanks to anyone who can help. I dont even know if what Im trying to
accomplish is possible.

--VB

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

VB,

I cannot understand from your formula how you calculate S (is it maybe
TODAY()-R12?). Anyway, leaving space for this in _your calculation_,
the following formula implements the conditions you describe:

=IF(OR(AND(P12=1,TODAY()-R1230,U12-R1230),AND(P12=2,TODAY()-
R1245,U12-R1245)),_your calculation_,"")

HTH
Kostis Vezerides

On Feb 28, 7:48 pm, VB wrote:
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
.
So far, this is what I've come up with:

=IF(ISNONTEXT(U12),IF(AND(TODAY()=(R12+30),P12=1) ,TODAY()-R12,IF(AND(TODAY()=(R12+45),P12=2),TODAY()-R12)))

Thanks to anyone who can help. I don't even know if what I'm trying to
accomplish is possible.

--VB



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

Yes. S is calculated as TODAY()-R12, based on the conditions stated. I
copied and pasted your suggestion, replacing "_your calculation_" with
"TODAY()-R12", and the result is an empty cell. Using the data below, cell
S1 should be 272, and cell S2 should be blank, because Column U is not more
than 30 days from Column R.

Row 1: P = 2; R = 6-1-2006; U = _empty cell_; V = Open; S = 272
Row 2: P = 1; R = 6-1-2006; U = 6-30-06; V = Closed; S = _empty cell_

I hope this helps. I'm trying to be as clear as I can.


--
VB


"vezerid" wrote:

VB,

I cannot understand from your formula how you calculate S (is it maybe
TODAY()-R12?). Anyway, leaving space for this in _your calculation_,
the following formula implements the conditions you describe:

=IF(OR(AND(P12=1,TODAY()-R1230,U12-R1230),AND(P12=2,TODAY()-
R1245,U12-R1245)),_your calculation_,"")

HTH
Kostis Vezerides

On Feb 28, 7:48 pm, VB wrote:
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
.
So far, this is what I've come up with:

=IF(ISNONTEXT(U12),IF(AND(TODAY()=(R12+30),P12=1) ,TODAY()-R12,IF(AND(TODAY()=(R12+45),P12=2),TODAY()-R12)))

Thanks to anyone who can help. I don't even know if what I'm trying to
accomplish is possible.

--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
match in multi-column and multi-row array sloth Excel Discussion (Misc queries) 14 September 1st 06 10:33 PM
Multi-condition vlookup Hobbeson Excel Worksheet Functions 4 July 19th 05 02:57 AM
how can I paste multi-line/multi-paragraph data into ONE cell? Theano Excel Discussion (Misc queries) 3 June 7th 05 01:10 PM
Multi Variable Formula MadCap via OfficeKB.com Excel Worksheet Functions 2 May 24th 05 09:04 PM


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