Hi everyone!
Question.png
I have attached a visual example of my question. I am trying to find the number of occurrences for two numbers appearing in ROWS only.
Can anyone assist?
Hi everyone!
Question.png
I have attached a visual example of my question. I am trying to find the number of occurrences for two numbers appearing in ROWS only.
Can anyone assist?
Many members are unable to see images in the *.png format due to forum compatibility issues with some browsers.
If you need to post an image post it in the *.jpg format.
Even better than posting images... post a SMALL sample file. That way we can test solutions directly in the file with the relevant data.
Biff
Microsoft MVP Excel
Keep It Simple Stupid
Let's Go Pens. We Want The Cup.
Try this ...
=SUMPRODUCT(--(COUNTIF(OFFSET($A$3:$C$3,ROW(INDIRECT("1:55")),0),"2")
*COUNTIF(OFFSET($A$3:$C$3,ROW(INDIRECT("1:55")),0),"3")>0))
Last edited by Phuocam; 11-05-2016 at 01:16 AM.
Sorry, Tony. I have attached the file. The number combinations are along the top row.
runelady2.xlsx
Hi Phuocam,
This is very close. It's not picking up on zeros though, such as a 0/0 combo.
It doesn't seem to calculate them correctly in my sheet.
Sorry, edit ...
In A2:
=IF(LEFT(A$1)=RIGHT(A$1),SUMPRODUCT(--(COUNTIF(OFFSET($A$3:$C$3,ROW(INDIRECT("1:313")),0),RIGHT(A$1))>1)),
SUMPRODUCT(--(COUNTIF(OFFSET($A$3:$C$3,ROW(INDIRECT("1:313")),0),LEFT(A$1))
*COUNTIF(OFFSET($A$3:$C$3,ROW(INDIRECT("1:313")),0),RIGHT(A$1))>0)))
Copy cross.
Last edited by Phuocam; 11-05-2016 at 01:25 AM.
A little shorter ...
=SUMPRODUCT(--(COUNTIF(OFFSET($A$3:$C$3,ROW(INDIRECT("1:313")),0),LEFT(A$1))
*COUNTIF(OFFSET($A$3:$C$3,ROW(INDIRECT("1:313")),0),RIGHT(A$1))>0+(LEFT(A$1)=RIGHT(A$1))))
a2try this and copy towards right![]()
Please Login or Register to view this content.
Last edited by samba_ravi; 11-05-2016 at 08:18 AM.
Samba
Say thanks to those who have helped you by clicking Add Reputation star.
You are welcome!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks