Looking for an easy formula to find doubles and count X's

MrsFrankieH

Active Member
Joined
Mar 25, 2011
Messages
323
Office Version
  1. 365
Platform
  1. Windows
Hello members,

I'm using Excel 10 and my operating system is Windows 7.
Could someone please help me with a formula for my spreadsheet on Excel.

The first part of the formula would find "singles, doubles, triples, and quadruples" from a line of four numbers. When the oppropriate numbers are found, an X will be displayed in the oppropriate box.

The second part would count the X's and put the total in the oppropriate box.

Thank you for your help.

Frankie :)<a href='http://<a href="http://s213.beta.photobucket.com/user/FHands/media/mrexcelss_zpsdd953106.jpg.html" target="_blank"><img src="http://i213.photobucket.com/albums/cc188/FHands/mrexcelss_zpsdd953106.jpg" border="0" alt="Photobucket"/></a>' target="_blank">http://
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
For the count you can use the below in cell F37.

=countif(F6:F35, "X")

How are you recognizing singles, doubles, triples, & quadruples?
 
Upvote 0
Hi Frankie,

In F6 try the following array formula and drag down to F35 (note that you will need to press CTRL-SHIFT-ENTER rather than just ENTER as this is an array formula):

=IF(MAX(COUNTIF(A6:D6,A6:D6))=1,"x","")

Use the same formula in H6, J6 and L6 changing the 1 in bold above to 2,3, and 4 respectively.

rconverse has suggested the formula for counting the x's.
 
Upvote 0
For the count you can use the below in cell F37.

=countif(F6:F35, "X")

How are you recognizing singles, doubles, triples, & quadruples?

Hello rconverse!

Thank you for the formula! I really appreciate it! :)


The way i find "singles, doubles, triples, and quadruples" is by looking at the draw. For example: If the draw has four individual unique numbers, it's "singles" (0123). If the draw has two unique numbers and two duplicate numbers, it's "doubles (0133). If the draw has one unique number and three duplicate numbers, it's "triples"(1333) and if the draw has four identical numbers, it's "quadruple (3333).
Sometimes, the doubles in the draw will have two doubles (1133).

I'm going to apply the formula now. Thank you so much for your help. :)

Frankie :)
 
Upvote 0
Hello circledchicken!!

Thank you for the formula! It looks really easy and i'm sure it will work!

I really appreciate your help!!

Thanks again! :)

Frankie :)
 
Upvote 0
For the count you can use the below in cell F37.

=countif(F6:F35, "X")

How are you recognizing singles, doubles, triples, & quadruples?

Hello again rconverse!! :)

I was unsuccessful in getting the formula to work. I tried several times. Would you have another formula in your arsenal for this function?

Thank you again!! :)

Frankie
 
Upvote 0

Forum statistics

Threads
1,216,084
Messages
6,128,726
Members
449,465
Latest member
TAKLAM

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