Solved

Conditional formatting formula comparing two columns

Posted on 2012-12-28
3
245 Views
Last Modified: 2012-12-28
I have 3 columns (A, B and C) in Excel 2010. I need to put text YES in the C column if A is less than 25% of B and text NO if it is more than 25%. What is the best way to do it?
0
Comment
Question by:MisUszatek
  • 2
3 Comments
 
LVL 22

Expert Comment

by:Flyster
ID: 38728104
You can use this formula:

=IF(A1<(B1/4),"Yes","No")

Flyster
0
 

Author Comment

by:MisUszatek
ID: 38728112
I might need to change the percentage once in a while to a different value, let say 37%. How would that look like?
0
 
LVL 22

Accepted Solution

by:
Flyster earned 350 total points
ID: 38728211
If you want to hard code it you can use:

=IF(A1<(B1*0.37),"Yes","No")

Or, you can use a reference cell:

=IF(A1<(B1*D1),"Yes","No")

Just put your .37 in cell D1. A little more flexibility that way.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VBA macro broke in Excel 2016 in windows 10 5 61
Formatting in 4 Cells for Presenting in Exel WS 3 23
time format showing wrong 12 49
increment numbers by 10 11 26
Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

943 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

9 Experts available now in Live!

Get 1:1 Help Now