Solved

Excel automatic formatting

Posted on 2014-11-25
4
150 Views
Last Modified: 2014-11-26
Hi all!

I've prepared a formula that colors my cell following various rules

Everything works great but if I copy the formula for all the column it won't work for all the rows...

I need this formula to work on both Excel and Libre Office Calc.

What am I doing wrong?

See example attached.
test.xlsx
0
Comment
Question by:ltpitt
  • 2
4 Comments
 
LVL 15

Expert Comment

by:WalkaboutTigger
ID: 40465953
I opened your attached file and saw no conditional formatting and no VBA (opened Visual Basic Editor from the Developer tab.

Please save your working example as a Macro-enabled Excel workbook (XLSM extension).
0
 
LVL 27

Accepted Solution

by:
Glenn Ray earned 500 total points
ID: 40466012
You only need to change the relative/absolute cell referencing in two of your conditional format formulas.

First, open the Conditional Formatting Rules Manager (Menu: Home, Styles group, Conditional Formatting, Manage Rules...)
Change the top filter to "This Worksheet"
CFRMDouble-click the first rule and change the greater than formula to =$H2 and click OK.
CF rule 1Double-click the second rule and change the last formula to =$H2 and click OK.
CF rule 2Your final rule can be left as-is.
Click the "OK" button to close.

You can now copy the cell down as many rows as needed and the conditional formatting rule will follow.

Regards,
-Glenn
0
 
LVL 1

Author Closing Comment

by:ltpitt
ID: 40466304
That's what a perfect solution should be!

Thanks :D
0
 
LVL 27

Expert Comment

by:Glenn Ray
ID: 40467029
You're welcome.  Happy Thanksgiving!
-Glenn
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
excel filters 2 28
how to delete specific files and folders with VBA 3 24
Excel - Data Validation 3 26
Request to review costing formula 3 31
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now