Function Help: Data validation, nested if's, and lookup two table request

Revelation343

New Member
Joined
Aug 18, 2015
Messages
4
Table 1: (Data)

UserRankTrainingsPresentationsTotalRequirements Met?
RobInstuctor033
BillTeacher121527

<tbody>
</tbody>

Table 2: Requirements

RankTrainingsPresentationsTotal Points
Instructor6630
Teacher7730
Student Teacher8630
Student Presenter8630
Student Aide8525
Intern8520
Student8315
Basic4210

<tbody>
</tbody>


Excel version: 2013 (Windows)

Background:
I am looking for a quick way to make sure the criteria of my role-play group is met through Excel. I'm not exactly sure how to combine the necessary lookup/array/nested if functions to make it happen. I haven't done anything moderately challenging in Excel since 2007 and my brain is at a loss on this one.

Results I am Looking For: I want Table 1, Column 6 to use an excel formula to: Lookup the Rank of the user, then verify that all criteria has been met. If it has not been met, then I would like it to tell me which criteria has not been met. I would be content with it just saying "NO" but if it could say "Trainings not met" or "Presentations not met" or "Total Points not met" or if there is a function advanced enough to identify that two or more have not been met then "Trainings not met" AND/OR "Presentations not met" AND/OR "Total Points not met". If the criteria is met, then a simple "Yes" is all I need there.

This seems like a lot to me, I remember it being possible, I just don't remember how I did it before and I don't know that I had this many criteria to meet the last time I did it.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
You could put all this in one function, but it would be a whopper - at least 3 nested IF statements, 6 or so VLOOKUPs...... ick.

I've written them, but I almost always regret doing so - they're really difficult to error check or alter later on, because they're so impossible to read.

It might be simpler to add some 2 columns to compare the requirements; use a VLOOKUP to pull out the actual requirements (call these columns G and H)

Once you've done that, then you could build a much simpler set of IF statements, eg:

=IF(AND(G2>C2,H2>D2),"Neither requirement met",IF(G2>C2,"Trainings not met",IF(H2>D2,"Presentations not met","All requirements met")))





"I'm not a genius. I'm a chicken"
Pinky Pie
 
Upvote 0
I see what you mean, and maybe going with more columns and vlookups is a better option because the data table I pulled is two rows of about 50 and the point is for it to automatically check the rank. Total points needs to be validated as well.

What sort of VLOOKUP statements would I use to make the additional columns?
 
Upvote 0
I apologize for the double post but I did not see an edit button. I figured the VLOOKUP out and used 3 columns to look up whether Trainings, Presentations, and Totals have been met.

I used this: =VLOOKUP(B2,$N$3:$Q$10,3,FALSE)

Considering the Three new columns:

Presentations Met? Trainings Met?Total Met?Quota Met?
YesYesNo
NoYesYes

<tbody>
</tbody>


Is there another nested IF you could provide with this validation?

I need the following results:

All requirements met
Need more presentations (If total points and trainings are met)
Need more trainings (If presentation and total points are met)
Need total points (If trainings and presentations are met)
Need trainings and total points (If only presentations are met)
Need presentations and total points (If only trainings are met)
No requirements met (If no requirements are met)


Seems like on heck if an IF statement to me to make, but um...maybe? :) And if not and we need more columns or what not I will put forth whatever effort I can to learn more.

In the meantime I am simply using conditional formatting for the Yes and No's which is easy enough to glance at and know who needs what, just want to see if I can clean it up further.
 
Upvote 0
The problem is that nested IF's get more complicated when you have more than 2 variables. Again, you can do them, but they're very complex and difficult to trouble shoot.

Conditional Formatting is a good way to go, and Excel 2007 and after can sort/filter by colour.

If you want some text to filter/sort by, I'd suggest creating a second lookup table with the possible combinations on it:

Combo |Text
NoYesYes |Need more presentations
NoNoNo |No requirements met

etc etc


Then use a VLOOKUP with a concatenated text string as a search term to find the right text:

=VLOOKUP(G2&H2&I2,'Lookups'!$A$2:$B$8,2,0)



Hope that makes some sense.





"I'm not a genius. I'm a chicken"
Pinky Pie
 
Last edited:
Upvote 0
The problem is that nested IF's get more complicated when you have more than 2 variables. Again, you can do them, but they're very complex and difficult to trouble shoot.

Conditional Formatting is a good way to go, and Excel 2007 and after can sort/filter by colour.

If you want some text to filter/sort by, I'd suggest creating a second lookup table with the possible combinations on it:

Combo |Text
NoYesYes |Need more presentations
NoNoNo |No requirements met

etc etc


Then use a VLOOKUP with a concatenated text string as a search term to find the right text:

=VLOOKUP(G2&H2&I2,'Lookups'!$A$2:$B$8,2,0)



Hope that makes some sense.





"I'm not a genius. I'm a chicken"
Pinky Pie


Never knew about the combos with the & & & inside the function. Very interesting. You have made my tool work 100% as described in the original post. Thank you very much for your help!
 
Upvote 0

Forum statistics

Threads
1,215,157
Messages
6,123,340
Members
449,097
Latest member
thnirmitha

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