Formula Help: multiple cells with a < or > then Return statement

ldavis1227

New Member
Joined
May 29, 2014
Messages
19
I want to know if any of the values in (I1, J1, K1) is (< then L1) return "Yes", if (> then L1) return "No".

I1 = .02
J1 = .08
K1 = 1.13
L1 = 0

Of note: each of these cell have a formula behind them also and the value will change.
 
Correct the formula first, to have < instead of >
And repost it.

Based on the formula that was posted, I'd say NO, they would BOTH return "Yes"
Because in each row the AND is FALSE because not ALL 3 cells are >= the value in D
 
Upvote 0

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Sheet1

ABCDE
1TAT for F3TAT for G3TAT for H3TAT ReqIssue with TAT?
2141214No
3493130No

<colgroup><col style="width: 30px;"><col style="width: 64px;"><col style="width: 64px;"><col style="width: 64px;"><col style="width: 64px;"><col style="width: 64px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
E2=IF(AND(A1 <= D1, B1 <= D1, C1 <= D1), "No", "Yes")
E3=IF(AND(A2 <= D2, B2 <= D2, C2 <= D2), "No", "Yes")

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 
Upvote 0
The formula in E2 is referring to the cells in Row 1 (A1 B1 C1 and D1)
Those cells contain your text strings "TAT for F3" and "TAT for G3" etc..

So E2 is just non sensicle.

E2 should be
=IF(AND(A2 <= D2, B2 <= D2, C2 <= D2), "No", "Yes")

E3 should be
=IF(AND(A3 <= D3, B3 <= D3, C3 <= D3), "No", "Yes")
 
Upvote 0
I would like the formula to tell if any of them are greater than the TAT requirement time. Maybe it's not possible to do what I'm looking for.

There is a possibility that all A:C fields will have data or just one.
 
Upvote 0
Thanks for trying to help but I'm giving up. It's too confusing and every time I try to fix the formula I type it wrong. I'm obviously off by a row and didn't catch it. I just needed to figure out how to automate this by close of business and I'm just going to have to tell them I can't figure it out in time.

At this point, I'm just wasting your time and I apologize.
 
Upvote 0
Don't give up.

It's just a matter of getting an accurate sample, and a clear explaination of what you want.

I think this will get what you're after.
In E2
=IF(MAX(A2:C2)<=D2,"No","Yes")


Excel Workbook
ABCDE
1TAT for F3TAT for G3TAT for H3TAT ReqIssue with TAT?
2141214No
3493130Yes
Sheet2
 
Upvote 0
Thanks for not giving up on me and your tremendous amount of patience. I'm going to try it out and I'll let you know if that works!
 
Upvote 0
Glad to help, definately don't give up.

It CAN be done.

Again, it's just a matter of giving an accurate sample and a 'clear' definition of your expectations.
Stop switching between > or <, and "All" or "Any"
It can be done with any combination of those, we just need a final choice to be made.
Just describe in words what results you expect to see and why based on an accurate sample provided.

So if this latest effort still doesn't work.
Don't give up.
Take a deep breath
Walk around the office or something and then come back and try again.
 
Last edited:
Upvote 0
your formula worked in my test spreadsheet. Here is the Master I'm working on.

UR & Letter Review

CDEFGHIJKLM
3Date UR Request ReceivedType of UR Request*Type of Service Request; e.g.,
IP=Inpatient
IOP=Intensive OP
OP=Outpatient
CTSS
CD Res.
Date of Determination (If DTR, psychiatrist determination required)Date Verbal &/or Written Notice to Provider
(If DTR, verbal w/in one BD & written notice required)
Date Verbal (if IP) and/or Written Notice to Member TAT for F3TAT for G3TAT for H3TAT ReqIssue with TAT?
46/1/141 6/1/146/2/2014 010No
56/1/14 8:002 6/5/14 8:30 4 3No
66/1/14 0:003 6/5/14 0:00 4 3No
76/1/14 0:004 6/2/14 0:006/5/14 0:006/13/2014141214No
86/1/14 0:005 6/5/14 0:006/10/14 0:007/2/2014493130No

<colgroup><col style="width: 30px;"><col style="width: 67px;"><col style="width: 73px;"><col style="width: 93px;"><col style="width: 73px;"><col style="width: 84px;"><col style="width: 76px;"><col style="width: 56px;"><col style="width: 56px;"><col style="width: 56px;"><col style="width: 45px;"><col style="width: 45px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
I4=IF(ISBLANK(F4)=TRUE, "",F4-C4)
J4=IF(ISBLANK(G4)=TRUE, "",G4-C4)
K4=IF(ISBLANK(H4)=TRUE, "",H4-C4)
L4=LOOKUP(D4,{1,2,3,4,5},{"0","3","3","14","30"})
M4=IF(MAX(I4:K4)<=L4,"No","Yes")
I5=IF(ISBLANK(F5)=TRUE, "",F5-C5)
J5=IF(ISBLANK(G5)=TRUE, "",G5-C5)
K5=IF(ISBLANK(H5)=TRUE, "",H5-C5)
L5=LOOKUP(D5,{1,2,3,4,5},{"0","3","3","14","30"})
M5=IF(MAX(I5:K5)<=L5,"No","Yes")
I6=IF(ISBLANK(F6)=TRUE, "",F6-C6)
J6=IF(ISBLANK(G6)=TRUE, "",G6-C6)
K6=IF(ISBLANK(H6)=TRUE, "",H6-C6)
L6=LOOKUP(D6,{1,2,3,4,5},{"0","3","3","14","30"})
M6=IF(MAX(I6:K6)<=L6,"No","Yes")
I7=IF(ISBLANK(F7)=TRUE, "",F7-C7)
J7=IF(ISBLANK(G7)=TRUE, "",G7-C7)
K7=IF(ISBLANK(H7)=TRUE, "",H7-C7)
L7=LOOKUP(D7,{1,2,3,4,5},{"0","3","3","14","30"})
M7=IF(MAX(I7:K7)<=L7,"No","Yes")
I8=IF(ISBLANK(F8)=TRUE, "",F8-C8)
J8=IF(ISBLANK(G8)=TRUE, "",G8-C8)
K8=IF(ISBLANK(H8)=TRUE, "",H8-C8)
L8=LOOKUP(D8,{1,2,3,4,5},{"0","3","3","14","30"})
M8=IF(MAX(I8:K8)<=L8,"No","Yes")

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4

Based on the type of request (D3) there are defined TAT requirements (pre-defined in L3 in days). The 0 is an actual TAT of 24 hours and the 3 is 72 hours. The rest were in days, which is why I converted them from hours to days.
Based on the type of request (D3) they may have a date to enter or they may leave it blank (F3:H3)
I need to track when TAT's are not met based on L3

I hope that explains better what I'm trying to accomplish.
 
Upvote 0
There we go, here's the root of the problem

The formula in L is NOT returning a number.
=LOOKUP(D4,{1,2,3,4,5},{"0","3","3","14","30"})
The quotes around those numbers make the result a TEXT string.

So for example in Row 5, 4 IS greater than the NUMBER 3, but it is NOT greater than the TEXT String "3"

Remove all those quotes in the lookup formula
=LOOKUP(D4,{1,2,3,4,5},{0,3,3,14,30})
 
Upvote 0

Forum statistics

Threads
1,215,242
Messages
6,123,830
Members
449,127
Latest member
Cyko

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top