How to return a "Y" if 2 values are on the same row

nathanhogan

New Member
Joined
Dec 27, 2012
Messages
9
Hello, I'm trying to do a table of data of users vs applications. users are listed in column A and the applications are along the top in Row A. I also have the data listed in 2 columns on anther sheet. What I need to do is where the cell lines up with a user and is under an application their name appears next to in the main data I want to return a Y.

This is my data layout


12
AUsernameApplication
BUser1App1
CUser1App2
DUser1App3
EUser2App2
FUser2App4
GUser2App5
HUser2App6
IUser3App2
JUser3App5
KUser3App7
Letc..etc..etc..etc

<TBODY>
</TBODY>




This is how I want to present the data

12345678
AApp1App2App3App4App5App6App7
BUser1YYY
CUser2YYYY
DUser3YYY
Eetc..etc..

<TBODY>
</TBODY>



So where cell B2 is I need a formula thats say IF the data has a row that has the username and the application in it return a Y.

Any help is very much appreciated. I am using Office 2010. I have tried adding it into a pivot table, I get the right layout however when I select count it doesn't fill anything in. I'm doing this for over 5500 users hence requirement for a formula.

Thank You.
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Sheet2

*ABCDEFGH
1*App1App2App3App4App5App6App7
2User1YYY****
3User2*Y*YYY*
4User3*Y**Y*Y

<tbody>
</tbody>

Spreadsheet Formulas
CellFormula
B2=SUMPRODUCT(--(Sheet1!$A$2:$A$11=$A2),--(Sheet1!$B$2:$B$11=B$1))
C2=SUMPRODUCT(--(Sheet1!$A$2:$A$11=$A2),--(Sheet1!$B$2:$B$11=C$1))
D2=SUMPRODUCT(--(Sheet1!$A$2:$A$11=$A2),--(Sheet1!$B$2:$B$11=D$1))
E2=SUMPRODUCT(--(Sheet1!$A$2:$A$11=$A2),--(Sheet1!$B$2:$B$11=E$1))
F2=SUMPRODUCT(--(Sheet1!$A$2:$A$11=$A2),--(Sheet1!$B$2:$B$11=F$1))
G2=SUMPRODUCT(--(Sheet1!$A$2:$A$11=$A2),--(Sheet1!$B$2:$B$11=G$1))
H2=SUMPRODUCT(--(Sheet1!$A$2:$A$11=$A2),--(Sheet1!$B$2:$B$11=H$1))
B3=SUMPRODUCT(--(Sheet1!$A$2:$A$11=$A3),--(Sheet1!$B$2:$B$11=B$1))
C3=SUMPRODUCT(--(Sheet1!$A$2:$A$11=$A3),--(Sheet1!$B$2:$B$11=C$1))
D3=SUMPRODUCT(--(Sheet1!$A$2:$A$11=$A3),--(Sheet1!$B$2:$B$11=D$1))
E3=SUMPRODUCT(--(Sheet1!$A$2:$A$11=$A3),--(Sheet1!$B$2:$B$11=E$1))
F3=SUMPRODUCT(--(Sheet1!$A$2:$A$11=$A3),--(Sheet1!$B$2:$B$11=F$1))
G3=SUMPRODUCT(--(Sheet1!$A$2:$A$11=$A3),--(Sheet1!$B$2:$B$11=G$1))
H3=SUMPRODUCT(--(Sheet1!$A$2:$A$11=$A3),--(Sheet1!$B$2:$B$11=H$1))
B4=SUMPRODUCT(--(Sheet1!$A$2:$A$11=$A4),--(Sheet1!$B$2:$B$11=B$1))
C4=SUMPRODUCT(--(Sheet1!$A$2:$A$11=$A4),--(Sheet1!$B$2:$B$11=C$1))
D4=SUMPRODUCT(--(Sheet1!$A$2:$A$11=$A4),--(Sheet1!$B$2:$B$11=D$1))
E4=SUMPRODUCT(--(Sheet1!$A$2:$A$11=$A4),--(Sheet1!$B$2:$B$11=E$1))
F4=SUMPRODUCT(--(Sheet1!$A$2:$A$11=$A4),--(Sheet1!$B$2:$B$11=F$1))
G4=SUMPRODUCT(--(Sheet1!$A$2:$A$11=$A4),--(Sheet1!$B$2:$B$11=G$1))
H4=SUMPRODUCT(--(Sheet1!$A$2:$A$11=$A4),--(Sheet1!$B$2:$B$11=H$1))

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4

Format the cells as follows:
Code:
"Y";;
 
Upvote 0
Thank you for the help, I have amended my formulas to the following - =SUMPRODUCT(--(data=$A2),--(data=B$1)) and I have done a format on the cell formatting under custom to say "Y";; however every cell returns a blank. Do you have any further tips at all please?
 
Upvote 0
Thank you for the help, I have amended my formulas to the following - =SUMPRODUCT(--(data=$A2),--(data=B$1)) and I have done a format on the cell formatting under custom to say "Y";; however every cell returns a blank. Do you have any further tips at all please?

What's 'data'? You can't refer to the same named range in both arguments, you need separate ranges for columns A and B.
 
Upvote 0
Hi again, this worked perfectly in the end (despite being a huge amount of data and slowing down massively)

However, I need to do again but add the number of times the text in cells A2 & B1 appear on the same row and so on and so on up to BB1 A58.

I hope this makes sense, any help much appreciated....again!
 
Upvote 0
Here is a little cut of the table and in each cell it counts the number of times the column header and leftmost text appears on the same row
Alton Water</SPAN>Anglian House</SPAN>AWG Property Ltd</SPAN>Basildon</SPAN>Beccles District Office</SPAN>Broadholme</SPAN>Cambridge</SPAN>
AcrobatDistiller</SPAN>
ACTIVControl</SPAN>
Actiview</SPAN>
Adobeacrobatpro</SPAN>
AdobeCSSuite5</SPAN>
Adobephotoshop</SPAN>
AdobePhotoshopElements10</SPAN>
Autodesk</SPAN>
Autoroute</SPAN>
AWSecurityTaskpad</SPAN>
AWSScan</SPAN>

<TBODY>
</TBODY><COLGROUP><COL><COL><COL><COL span=5></COLGROUP>
 
Upvote 0

Forum statistics

Threads
1,215,471
Messages
6,125,002
Members
449,202
Latest member
Pertotal

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