We’d like to remind Forumites to please avoid political debate on the Forum.
This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
The Forum now has a brand new text editor, adding a bunch of handy features to use when creating posts. Read more in our how-to guide
Excel formating into groups
Blakespops
Posts: 394 Forumite
in Techie Stuff
I have a worksheet in excel that each column a-h has 3 values 1.0,2.0,2.1 shared equally over 36 rows but I have been asked to work out the best way to divide the 12 of each value in each column to make it so out of every row I can link a minimum of three results no matter what the value is however no more than three of any value are repeated in the final result so it is an instant fail if out of the 36 rows any one value is repeated more than 3 times in any given row. example below although not fully sorted as doing manually as can not do formulas in excel so please help
1.0 1.0 2.1 2.0 2.0 2.1 2.1 2.0
1.0 1.0 2.0 2.1 2.0 2.0 2.1 2.0
1.0 2.0 1.0 2.0 2.0 2.1 2.1 2.1
1.0 2.0 2.0 2.0 2.1 2.0 2.0 2.1
2.0 2.0 2.1 2.1 2.1 2.0 2.1 2.0
2.0 2.0 2.0 2.1 2.1 2.1 2.0 2.0
2.0 2.1 2.0 1.0 2.0 2.0 2.1 2.1
2.0 2.1 2.1 1.0 2.0 2.1 2.0 2.1
2.1 1.0 2.0 1.0 2.1 2.0 2.1 2.1
2.1 1.0 2.0 1.0 2.1 2.1 2.0 2.0
2.1 2.0 2.0 1.0 2.1 2.1 2.0 2.1
2.1 2.0 2.0 1.0 2.1 2.1 2.1 2.0
1.0 1.0 2.1 2.0 2.0 2.1 2.1 2.0
1.0 1.0 2.0 2.1 2.0 2.0 2.1 2.0
1.0 2.0 1.0 2.0 2.0 2.1 2.1 2.1
1.0 2.0 2.0 2.0 2.1 2.0 2.0 2.1
2.0 2.0 2.1 2.1 2.1 2.0 2.1 2.0
2.0 2.0 2.0 2.1 2.1 2.1 2.0 2.0
2.0 2.1 2.0 1.0 2.0 2.0 2.1 2.1
2.0 2.1 2.1 1.0 2.0 2.1 2.0 2.1
2.1 1.0 2.0 1.0 2.1 2.0 2.1 2.1
2.1 1.0 2.0 1.0 2.1 2.1 2.0 2.0
2.1 2.0 2.0 1.0 2.1 2.1 2.0 2.1
2.1 2.0 2.0 1.0 2.1 2.1 2.1 2.0
Only through Christ can we find freedom
0
Comments
-
If I've understood you correctly, try this in Cell I1...
=IF( OR( COUNTIF(A1:H1,1.0)>3, COUNTIF(A1:H1,2.0)>3, COUNTIF(A1:H1,2.1)>3), "FAIL", "PASS")
...then drag it down against all rows.0
This discussion has been closed.
Confirm your email address to Create Threads and Reply
Categories
- All Categories
- 353.5K Banking & Borrowing
- 254.2K Reduce Debt & Boost Income
- 455.1K Spending & Discounts
- 246.6K Work, Benefits & Business
- 603K Mortgages, Homes & Bills
- 178.1K Life & Family
- 260.6K Travel & Transport
- 1.5M Hobbies & Leisure
- 16K Discuss & Feedback
- 37.7K Read-Only Boards