Check if Unique ID has 2 values in a range

Oredo

New Member
Joined
Jan 15, 2018
Messages
13
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
 

Some videos you may like

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

alz

Board Regular
Joined
Jul 17, 2020
Messages
130
Office Version
  1. 2019
Platform
  1. Windows
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)
 

Oredo

New Member
Joined
Jan 15, 2018
Messages
13
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

Watch MrExcel Video

Forum statistics

Threads
1,127,896
Messages
5,627,512
Members
416,250
Latest member
darius_rebelo

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
Top