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

I have a two sheet workbook. Sheet one contains a list of parts. Sheet two
contains two columns, A and B, with a generic part name and the status of
that part. Example:

Sheet 1
A B
Rubber Hose Low Stock
Garden Hose In Stock

On sheet Two I have:
A B
Hose In Stock

I'm using the following to conditionally format "Low Stock" to change the
background to red:

=VLOOKUP(B4:G104,myRange2,2,0)="Low Stock"

So far, this works great if the cell contains the value "Hose" only. But if
there's anything infront of the word Hose such as "Garden Hose" it won't
work. I've attempted the following:

=VLOOKUP("*"&B4:G104,myRange2,2,0)="Low Stock"

But it's not Concatenating properly.

I've also got the issue that the cells on sheet 1 contain an "Alt+Enter" for
multi-line cells. However, I'm willing to change the format if this is going
to pose a problem.

Any help would be appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Conditional Formatting Issues

=VLOOKUP("*"&B4:G104,myRange2,2,0)="Low Stock"

The lookup_value has to be a single reference, not an array:

=VLOOKUP("*"&B4,myRange2,2,0)="Low Stock"

Or:

=VLOOKUP("*"&B4&"*",myRange2,2,0)="Low Stock"

--
Biff
Microsoft Excel MVP


"Dmox" wrote in message
...
I have a two sheet workbook. Sheet one contains a list of parts. Sheet
two
contains two columns, A and B, with a generic part name and the status of
that part. Example:

Sheet 1
A B
Rubber Hose Low Stock
Garden Hose In Stock

On sheet Two I have:
A B
Hose In Stock

I'm using the following to conditionally format "Low Stock" to change the
background to red:

=VLOOKUP(B4:G104,myRange2,2,0)="Low Stock"

So far, this works great if the cell contains the value "Hose" only. But
if
there's anything infront of the word Hose such as "Garden Hose" it won't
work. I've attempted the following:

=VLOOKUP("*"&B4:G104,myRange2,2,0)="Low Stock"

But it's not Concatenating properly.

I've also got the issue that the cells on sheet 1 contain an "Alt+Enter"
for
multi-line cells. However, I'm willing to change the format if this is
going
to pose a problem.

Any help would be appreciated.



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
Formatting Issues cware Excel Discussion (Misc queries) 2 March 13th 09 05:32 PM
excel print formatting issues Dave Murto Excel Discussion (Misc queries) 1 July 30th 08 09:20 PM
EXCEL WORKSHEETS - FORMATTING ISSUES LLOLA Excel Discussion (Misc queries) 1 May 10th 07 05:07 AM
formatting issues Olive Excel Worksheet Functions 0 September 22nd 06 02:22 PM
Conditional Formatting Issues merlot Excel Worksheet Functions 1 October 7th 05 03:05 AM


All times are GMT +1. The time now is 06:49 PM.

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

About Us

"It's about Microsoft Excel"