Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Conditional Underline

ok so in column B I have "Market" (Chicago, new york, etc.)
In column C I have Total Sales

The goals for total sales are different for each market. How do I Underline
the values in all cells that exceed a certain value depending on the market.

Example: Goal for Chicago is 4; Goal for New York is 7

Name Market Sales
John Chicago 4
Jed New York 6
Anne Chicago 5
Suzie Chicago 3
Joey New York 8

Market can be any 1 of 32 cities & Sales ranges a lot too. It takes me an
hour a day to sort through 200+ employees' stats to see who met goals and who
didnt, and then to Highlight the ones who did.

I would be willing to paste code that accomplishes this, or to use
conditional formatting but I can't figure out how to make that fit my search
conditions.

Please Help
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 180
Default Conditional Underline

In a separate worksheet in the same workbook as your daily results, create a
table with the Market in column A and the corresponding goal in column B.
Highlight the table and Insert Name Define and change the name to Goals;
hit OK.
Select cell C2 in your table of daily results. Format Conditional
Formatting. In the first drop-down, select 'Formula Is'. In the text box,
make the condition read:
=C2=VLOOKUP(B2,Goals,2). Click the Format... button and select Underline:
Single on the Font tab. Click OK twice. Copy that cell, then select the
rest of the cells in column C and Edit Paste Special, select Formats and
click OK.

"John C" wrote:

ok so in column B I have "Market" (Chicago, new york, etc.)
In column C I have Total Sales

The goals for total sales are different for each market. How do I Underline
the values in all cells that exceed a certain value depending on the market.

Example: Goal for Chicago is 4; Goal for New York is 7

Name Market Sales
John Chicago 4
Jed New York 6
Anne Chicago 5
Suzie Chicago 3
Joey New York 8

Market can be any 1 of 32 cities & Sales ranges a lot too. It takes me an
hour a day to sort through 200+ employees' stats to see who met goals and who
didnt, and then to Highlight the ones who did.

I would be willing to paste code that accomplishes this, or to use
conditional formatting but I can't figure out how to make that fit my search
conditions.

Please Help

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default Conditional Underline

Hi!

You need to create a 2 column table that lists the market and its goal
(based on your sample data):

.................H...................I
1.........Market...........Goal
2........Chicago.............4
3......New York...........7

Then, assume your other data is in the range A2:C6.
Select the range A2:A6.
Goto the menu FormatConditional Formatting
Select Formula Is and enter this formula in the box to the right:

=C2=VLOOKUP(B2,H$2:I$3,2,0)

Click the Format button.
Select the style(s) desired.
OK out

Biff

"John C" wrote in message
...
ok so in column B I have "Market" (Chicago, new york, etc.)
In column C I have Total Sales

The goals for total sales are different for each market. How do I
Underline
the values in all cells that exceed a certain value depending on the
market.

Example: Goal for Chicago is 4; Goal for New York is 7

Name Market Sales
John Chicago 4
Jed New York 6
Anne Chicago 5
Suzie Chicago 3
Joey New York 8

Market can be any 1 of 32 cities & Sales ranges a lot too. It takes me an
hour a day to sort through 200+ employees' stats to see who met goals and
who
didnt, and then to Highlight the ones who did.

I would be willing to paste code that accomplishes this, or to use
conditional formatting but I can't figure out how to make that fit my
search
conditions.

Please Help



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Conditional Underline

Wow excellent reply. Very swift and precisely laid out in a manner which
solves my problem. I will have to make adjustments to fit it completely
right but it appears to do what i want. Thank you so much; I tried to
figure this out in Excel help but it confused me.

"bpeltzer" wrote:

In a separate worksheet in the same workbook as your daily results, create a
table with the Market in column A and the corresponding goal in column B.
Highlight the table and Insert Name Define and change the name to Goals;
hit OK.
Select cell C2 in your table of daily results. Format Conditional
Formatting. In the first drop-down, select 'Formula Is'. In the text box,
make the condition read:
=C2=VLOOKUP(B2,Goals,2). Click the Format... button and select Underline:
Single on the Font tab. Click OK twice. Copy that cell, then select the
rest of the cells in column C and Edit Paste Special, select Formats and
click OK.

"John C" wrote:

ok so in column B I have "Market" (Chicago, new york, etc.)
In column C I have Total Sales

The goals for total sales are different for each market. How do I Underline
the values in all cells that exceed a certain value depending on the market.

Example: Goal for Chicago is 4; Goal for New York is 7

Name Market Sales
John Chicago 4
Jed New York 6
Anne Chicago 5
Suzie Chicago 3
Joey New York 8

Market can be any 1 of 32 cities & Sales ranges a lot too. It takes me an
hour a day to sort through 200+ employees' stats to see who met goals and who
didnt, and then to Highlight the ones who did.

I would be willing to paste code that accomplishes this, or to use
conditional formatting but I can't figure out how to make that fit my search
conditions.

Please Help

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 510
Default Conditional Underline

Hi John,

It is a two step proposal :
1. Create a reference table containing all your cities and their
related target numbers
2. Create conditional formatting for column C Total Sales as follows :
Format Conditional Formatting Formula Is
=IF(C4=VLOOKUP(B2,$ReferenceTable$,2),1,0)
Format Underline (or Color)

HTH
Cheers
Carim



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 180
Default Conditional Underline

Thanks for the feedback. Note that the vlookup formulas that Biff and Carim
supplied have a fourth argument that makes the lookup more robust... Please
change the formula in the condition to read:
=C2=VLOOKUP(B2,Goals,2,0)
That will ensure a proper match in the goals table. --Bruce

"John C" wrote:

Wow excellent reply. Very swift and precisely laid out in a manner which
solves my problem. I will have to make adjustments to fit it completely
right but it appears to do what i want. Thank you so much; I tried to
figure this out in Excel help but it confused me.

"bpeltzer" wrote:

In a separate worksheet in the same workbook as your daily results, create a
table with the Market in column A and the corresponding goal in column B.
Highlight the table and Insert Name Define and change the name to Goals;
hit OK.
Select cell C2 in your table of daily results. Format Conditional
Formatting. In the first drop-down, select 'Formula Is'. In the text box,
make the condition read:
=C2=VLOOKUP(B2,Goals,2). Click the Format... button and select Underline:
Single on the Font tab. Click OK twice. Copy that cell, then select the
rest of the cells in column C and Edit Paste Special, select Formats and
click OK.

"John C" wrote:

ok so in column B I have "Market" (Chicago, new york, etc.)
In column C I have Total Sales

The goals for total sales are different for each market. How do I Underline
the values in all cells that exceed a certain value depending on the market.

Example: Goal for Chicago is 4; Goal for New York is 7

Name Market Sales
John Chicago 4
Jed New York 6
Anne Chicago 5
Suzie Chicago 3
Joey New York 8

Market can be any 1 of 32 cities & Sales ranges a lot too. It takes me an
hour a day to sort through 200+ employees' stats to see who met goals and who
didnt, and then to Highlight the ones who did.

I would be willing to paste code that accomplishes this, or to use
conditional formatting but I can't figure out how to make that fit my search
conditions.

Please Help

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
Double accounting underline Jessee New Users to Excel 1 May 8th 06 06:23 AM
Keeping conditional formatting when sorting Andrea A Excel Discussion (Misc queries) 0 April 4th 06 03:00 PM
Conditional Format Not Working KMH Excel Discussion (Misc queries) 0 December 22nd 05 05:32 PM
Conditional formula - language needed gamebird Excel Worksheet Functions 7 October 10th 05 11:48 PM
Conditional formatting not available in Excel BAB Excel Discussion (Misc queries) 2 January 1st 05 03:33 PM


All times are GMT +1. The time now is 09:54 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"