Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-23-2012, 11:04 AM
Cosmo Cosmo is offline Formula help needed Windows Vista Formula help needed Office 2007
Competent Performer
Formula help needed
 
Join Date: Mar 2012
Posts: 240
Cosmo is on a distinguished road
Default Formula help needed

I have been given an excel document which colors a certain column based on a conditional format. If the cell's value is within the top 30%, it's colored Green, within the bottom 30% is Red, otherwise Yellow.



I need to export this color value, so I've been trying to create a formula to represent the value as either 'R', 'Y' or 'G'. I was able to get one of the other columns working (not the same formula), which was based on the cell's value:

= IF(I:I>0.45,"G",IF(I:I< 0.35,"R","Y"))

but for this column (J:J - formatted as currency) I don't know how to determine if the cell's value is within the upper or lower 30% for that column. Can someone help me with the proper formula to do this?

= IF(J:J...??,"G",IF(J:J...??,"R","Y"))
Reply With Quote
  #2  
Old 08-23-2012, 11:50 AM
Cosmo Cosmo is offline Formula help needed Windows Vista Formula help needed Office 2007
Competent Performer
Formula help needed
 
Join Date: Mar 2012
Posts: 240
Cosmo is on a distinguished road
Default

I think I figured it out... almost. The following works in most cases

=IF(J:J>=PERCENTILE(J2:J96,0.7),"G",IF(J:J<=PERCEN TILE(J2:J96,0.3),"R","Y"))

But for some reason, there are 2 rows which don't match the color of the cells using the conditional formatting. Is the 'Top 30%' and 'Bottom 30%' used for the conditions calculated differently?

I tried using 'Rank' as well to determine the values, but got the same results (I set a column to the RANK of column J:J, then used the above formula using that column - the value was the same as the original formula)

Any suggestions? I need to do the same for another excel sheet forthcoming, and I would like to get this working before that one is required.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula help needed Formula needed to merge 2 name lists into one lcolson Excel 1 06-11-2012 12:03 AM
Very simple formula needed! nicholes Excel 4 04-12-2012 08:28 AM
Serious help needed. karlyak22 Outlook 0 11-13-2011 07:32 AM
Formula help needed help needed!!! thunder14 Word 1 10-17-2009 02:57 PM
Excel formula needed. Rod Excel 1 08-03-2009 06:55 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:08 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft