In excel, conditionally format numbers if they are less than or greater than another number by 10%

Please see the attached file.  I’d like to
-      conditionally format the numbers in column A such that for each group of three numbers if the lowest number is more than 10% lower than the next nearest number the low number turns yellow, and
-      conditionally format the numbers in column A such that for each group of three numbers if the highest number is greater than 10% higher than the next nearest number the high number turns yellow
-      drag the conditional formatting from the first group of three numbers to the bottom of the column

Thanks for your help.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

can you enforce a sorting of the three items in each set?
DaveAuthor Commented:
Not for this situation.
Each group will need to have a conditional formatting formula that is based on the cell value being equal to something like this:

Open in new window

Each block of three would need to have its own conditional formatting with a different range ($A$4:$A$6, $A$7:$A$9, etc.)

There might be a way to generalize the formula, so that the ranges self-adjust to blocks of three
For your examples, column A and column C conditional formats would be:

Open in new window

barry houdiniCommented:
It might be better to do this with a helper column on the worksheet, because, as Aikimark says, it's tricky to make the formula apply to each range of 3 cells only.....but you can use OFFSET to do that.

I selected column A and applied this conditional format formula with yellow fill


That highlights the cells you wanted.....and if you now add more blocks of 3 it should work all the way down the column, see attached

regards, barry

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.