Urgent Help
I don't know why you want a macro to do this. Presumably you just want to
simplify it with a UDF. Suggested simplified array formula follows instead.
For this example, you enter the criteria in cell ranges instead of hard
coding them into the formula. This makes it easier to edit the values and
simplifies the formula.
In cells J1:J7 enter:
IncidentLow
IncidentMedium
IncidentHigh
IncidentUrgent
RequestLow
RequestMedium
RequestHigh
In cells K1:K7 enter:
168
24
8
4
600
120
40
In the desired cell enter the following array formula. Commit with
Ctrl+Shift+Enter instead of just Enter:
=IF(SUM((A2=J1:J7)*(B2<=K1:K7)), "Pass", "Fail")
Greg
|