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

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
Only through Christ can we find freedom

Comments

  • EchoLocation
    EchoLocation Posts: 901 Forumite
    Part of the Furniture 500 Posts Combo Breaker
    edited 14 October 2011 at 5:43PM
    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.
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

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

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.