Solved

Big IF

Posted on 2013-11-22
6
126 Views
Last Modified: 2013-11-25
=IF(ED2="SCC","SCC",IF(LARGE(V2:$AG2,3)>Analysis!$D$32,"High",IF(LARGE(V2:AG2,3)<Analysis!$E$32,"Low","Medium")))

Hi,

this IF works nicely for me but i have just realised a flaw, i can only check against the large value of D32 + E32 if column D2 = 2

And to add, if column D2 = 1,3,4,5 or 6, i must check against D31 + E31
                   if column D2 <> 2,1,3,4,5 OR 6 then i must check against D33 + E33

---------------------

So, my formula must first check to see the client type in column D, then get the large number from the array, then based on client type, check the large number against

D31/E31
D32/E32
D33/E33
 
Thanks
Seamus
0
Comment
Question by:Seamus2626
  • 3
  • 2
6 Comments
 

Author Comment

by:Seamus2626
ID: 39669440
Attached sample file
Analysis-Template-EE.xlsm
0
 
LVL 50

Expert Comment

by:Lowfatspread
ID: 39669518
so why not create an extra column which produces the correct sum ...

e.g. az2  =iif(d2 = 2 , d32+e32,iif(d2=1 or d2=3 or d2=4 or d2=5 or d2=6 , d31+e31,d33+e33))

and then just use the az2 value in your existing formula...
0
 
LVL 23

Expert Comment

by:NBVC
ID: 39669520
Do you mean?

=IF(ED2="SCC","SCC",IF(LARGE(V2:$AG2,3)>IF(ISNUMBER(MATCH(D2,{1,3,4,5,6},0)),Analysis!$D$31,IF(D2=2,Analysis!$D$32,Analysis!$D$33)),"High",IF(LARGE(V2:AG2,3)<>IF(ISNUMBER(MATCH(D2,{1,3,4,5,6},0)),Analysis!$E$31,IF(D2=2,Analysis!$E$32,Analysis!$E$33)),"Low","Medium")))
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:Seamus2626
ID: 39669555
Hi NB_VC, the first column produces a score of Low, which is incorrect, it should be medium, i must go now but will look through monday morning, thanks
0
 
LVL 23

Accepted Solution

by:
NBVC earned 500 total points
ID: 39669714
Sorry Seamus, not sure how I inserted a <>, should be <

here is the updated formula:

=IF(ED2="SCC","SCC",IF(LARGE(V2:$AG2,3)>IF(ISNUMBER(MATCH(D2,{1,3,4,5,6},0)),Analysis!$D$31,IF(D2=2,Analysis!$D$32,Analysis!$D$33)),"High",IF(LARGE(V2:AG2,3)<IF(ISNUMBER(MATCH(D2,{1,3,4,5,6},0)),Analysis!$E$31,IF(D2=2,Analysis!$E$32,Analysis!$E$33)),"Low","Medium")))
0
 

Author Closing Comment

by:Seamus2626
ID: 39674025
poiffect, many thanks :-)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now