Nested If w/ VLOOKUP & Ranges

mhasham

Board Regular
Joined
Feb 28, 2013
Messages
63
Hello Folks,

Im looking to create a group based of the following categories with a specific set of range rules.

E= IF column (e) is >5
and column (c) <5
and SUM column (es1+es2) <5
else BLANK

C= IF column (c) is >5
and column (e) <5
and SUM column (es1+es2) <5
else BLANK

EC= IF column (c) is >5
and column (e) >5
and SUM column (es1+es2) <5
else BLANK

ES= IF SUM column (es1+es2) >5
else BLANK

Userelectronics (e)cats (c)special 1 (es)special 2 (es)
Brett Hart1766600
Charlie Murphy34400
Sam Pelt605353
Max Keller34500

<tbody>
</tbody>


SOLUTION that I'm trying to strive for is listed below. This would be on a separate worksheet and where the formula would be placed. This would be reading off of the data worksheet. I am thinking it probably requires a Nested IF statement in combination with a VLOOKUP for the User names and the ability to read column headers or column numbers or something to that nature.

UserGroup
Brett HartEC
Charlie MurphyE
Sam PeltES
Max KellerC

<tbody>
</tbody>


Any help would be much appreciated

Regards Mo.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Hi mhasham,

This works on my sheet the trick will be getting the sheet references right between sheets. I recommend getting this working on the same sheet first, then we amend to suit across sheets after.

If you let me know what you're sheets are called and the specific range of your data I could try to adjust for you;


Book1
ABCDE
1Userelectronics (e)cats (c)special 1 (es)special 2 (es)
2Brett Hart1766600
3Charlie Murphy34400
4Sam Pelt605353
5Max Keller34500
6
7UserGROUP
8Brett HartEC
9Charlie MurphyE
10Sam PeltES
11Max KellerC
Sheet1
Cell Formulas
RangeFormula
B8=IF(SUM((VLOOKUP(A8,$A$2:$E$5,4,0)+(VLOOKUP(A8,$A$2:$E$5,5,0))))>5,"ES",IF(AND(VLOOKUP(A8,$A$2:$E$5,2,0)<5,VLOOKUP(A8,$A$2:$E$5,3,0)>5,SUM((VLOOKUP(A8,$A$2:$E$5,4,0)+(VLOOKUP(A8,$A$2:$E$5,5,0))))<5),"C",IF(AND(VLOOKUP(A8,$A$2:$E$5,2,0)>5,VLOOKUP(A8,$A$2:$E$5,3,0)<5,SUM((VLOOKUP(A8,$A$2:$E$5,4,0)+(VLOOKUP(A8,$A$2:$E$5,5,0))))<5),"E",IF(AND(VLOOKUP(A8,$A$2:$E$5,2,0)>5,VLOOKUP(A8,$A$2:$E$5,3,0)>5,SUM((VLOOKUP(A8,$A$2:$E$5,4,0)+(VLOOKUP(A8,$A$2:$E$5,5,0))))<5),"EC",""))))
 
Upvote 0
Sorry for the late reply. This worked wonders!!!!
I changed the hard coded values into a percentage threshold.

Thanks again.
 
Upvote 0

Forum statistics

Threads
1,214,545
Messages
6,120,132
Members
448,947
Latest member
test111

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