Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Conditional formatting

Assume D1:O1 contains the text: April, May, ... March
(ie the 12 calendar months in "mmmm" format)

D2:O2, D3:O3, D4:O4, etc will contain the monthly sales achieved by
respective salesmen

P2, P3, P4, etc contains the target sales (total) for the full 12 months for
each salesman

Let's assume you want to conditionally format all the target cells P2, P3, etc
to auto-reflect whether the average monthly sales to-date
is on target (green) or not (red)

First, just normally format P2:Px with red fill/white font (via FormatCells)

Then select P2:Px, apply conditional formatting using Formula Is**:
=AVERAGE(OFFSET(D2,,,,MATCH(TEXT(TODAY(),"mmmm"),$ D$1:$O$1,0)))=P2/12
Format Green fill/automatic "black" font Ok out

**or via equivalent CF options in xl2007, as pointed out by Biff
(I don't know xl2007 as well)

--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"ellinor2304" wrote:
(SUM(D2:O2)/12)<P2/(MONTH(D1)-3)

Explanation:
D2;O2 are the totals for the twelve months the particular saleman works
I divide by 12 to get his average for the year to date
P2 is the target figure to be achieved
MONTH(D1) -3 is the thing I think I am getting wrong. What I want is the
number of months passed since the start of the trade year, taking into
account that the trade year starts in April and so will still be the same
trade year when passing from December to January.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Protect Cell Formatting including Conditional Formatting Mick Jennings Excel Discussion (Misc queries) 5 November 13th 07 05:32 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 3 January 20th 07 02:02 PM
conditional Formatting based on cell formatting Totom Excel Worksheet Functions 0 January 15th 07 04:35 PM
Conditional formatting [email protected] Excel Discussion (Misc queries) 1 May 31st 06 11:38 PM
Conditional Formatting that will display conditional data BrainFart Excel Worksheet Functions 1 September 13th 05 05:45 PM


All times are GMT +1. The time now is 02:58 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"