Check if Unique ID has 2 values in a range

Oredo

New Member
Joined
Jan 15, 2018
Messages
14
Hello Everyone,

I have survey data arround 400k rows and i would like, where Column A has user ID (unique) and Column B has 2 answer options : 1. Fundamental , 2. Advanced

I would like to find out:

How many Users given only fundamental answers and how many there was who answered fundamental and advanced.

For example User A has 3 rows of data and all his answers were "Fundamental" only in all 3, where User B had 4 rows of data 2 rows as "Fundamental" and other 2 with "Advanced"

i want in column C to say "Only Basic" for user A and "Both" for user B .

Data is sorted by survey send date, so User A can appear in row 20 or row 200,000 etc.

Thank you guys
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
How about this approach?

Excel Message boardgfgf.xlsm
ABCDEF
1User IDAnswerUser IDFundamentalAdvanced
2AFundamentalA30
3BAdvancedB22
4AFundamentalC01
5AFundamentalD10
6BFundamental
7BFundamental
8CAdvanced
9BAdvanced
10DFundamental
11
25
Cell Formulas
RangeFormula
E2:F5E2=COUNTIFS($B:$B,E$1,$A:$A,$D2)
 
Upvote 0
How about this approach?

Excel Message boardgfgf.xlsm
ABCDEF
1User IDAnswerUser IDFundamentalAdvanced
2AFundamentalA30
3BAdvancedB22
4AFundamentalC01
5AFundamentalD10
6BFundamental
7BFundamental
8CAdvanced
9BAdvanced
10DFundamental
11
25
Cell Formulas
RangeFormula
E2:F5E2=COUNTIFS($B:$B,E$1,$A:$A,$D2)
Much obliged Alz,

I was reaching too far in arrays, where CountIfs works just fine.
You have a great day sir :)
 
  • Like
Reactions: alz
Upvote 0

Forum statistics

Threads
1,214,611
Messages
6,120,509
Members
448,967
Latest member
screechyboy79

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