![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 22
|
I have been racking my brain to try to figure this formula out, it probably is very simple.
A1:A10 will have values of 1-4. B1:B10 will have values of 1-3 I require a formula that will tell me in A1:A10 there are "3" "1's" and in the B Column the number of corresponding numbers for the 1's. So, the 3 - 1's have a 2-1's corresponding and 1-2 corresponding in the B column. Hopefully this makes sense and I appreciate your help. Peter |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
To see the formula in the cells just click on the cells hyperlink The above image was automatically generated by [HtmlMaker V1.22] If you want this code, click here and Colo will email the file to you. This code was graciously allowed to be modified: by Ivan F Moala All credit to Colo E2 houses the formula =COUNTIF($A$2:$A$11,D2) which is copied down for distinct A-items. F2 houses the formula =SUMPRODUCT(($A$2:$A$11=$D2)*($B$2:$B$11=F$1)) that counts the co-occurrence of A-items and B-items. This can also be done with PivotTables. Give that too a try. Aladin |
|
|
|
|
|
|
#3 |
|
New Member
Join Date: May 2002
Posts: 22
|
Thank you, I can sleep again in peace! It works great. I actually wanted to replace a pivot table with a formula and now it is done.....Peter
[ This Message was edited by: PeterD on 2002-05-15 21:30 ] |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|