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

Hi guys,
want to run something like this for a conditional format:


=IF(vlookup($B70,Rec!$N$10:$Q$89,4,false)="A")

Obviously it`s vlooking up the value of "A" up another worksheet.
This comes up with an error: highlighting the "A" part.
Is there a syntax error (probably).
Or is there a problem in running a condition from another worksheet?

Thanks.
RR1
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Conditional format formula problem

You cannot directly refer another sheet. Instead create a named range for
Rec!$N$10:$Q$89
(menu InsertNameDefine) Refers to Rec!$N$10:$Q$89 name as myRange.

Copy paste the below formula in CF condition1

=VLOOKUP($B70,myRange,4,0)="A"

If this post helps click Yes
---------------
Jacob Skaria


"Romileyrunner1" wrote:

Hi guys,
want to run something like this for a conditional format:


=IF(vlookup($B70,Rec!$N$10:$Q$89,4,false)="A")

Obviously it`s vlooking up the value of "A" up another worksheet.
This comes up with an error: highlighting the "A" part.
Is there a syntax error (probably).
Or is there a problem in running a condition from another worksheet?

Thanks.
RR1

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default Conditional format formula problem

You don't use If in a conditional format. You want an equation that
evaluates to True or False, as in:
=a16="A"

You can use a vlookup formula, as in:
=vlookup($b70,$n$10:$q$89,4,false)="A"

Unfortunately, you can't reference another worksheet in a conditional
format. If you need to do this, then do the Vlookup in another cell (say
B10), then use:
=$B$10="A"

However, what's the formula in the cell that you're applying conditional
formatting to? If it's the Vlookup formula itself, then simply use:
="A"

Regards,
Fred.

"Romileyrunner1" wrote in message
...
Hi guys,
want to run something like this for a conditional format:


=IF(vlookup($B70,Rec!$N$10:$Q$89,4,false)="A")

Obviously it`s vlooking up the value of "A" up another worksheet.
This comes up with an error: highlighting the "A" part.
Is there a syntax error (probably).
Or is there a problem in running a condition from another worksheet?

Thanks.
RR1


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Conditional format formula problem

Well, you have a syntax error *plus* you're referencing another sheet.

The correct syntax would be:

=VLOOKUP($B70,Rec!$N$10:$Q$89,4,FALSE)="A"

However, even though you now have a syntax that will work Excel will
complain about referencing another sheet. You can get around that by giving
your lookup table a defined name.

InsertNameDefine
Name: LookupTable
Refers to: =Rec!$N$10:$Q$89
OK

Then use this as the CF formula:

=VLOOKUP($B70,LookupTable,4,FALSE)="A"

--
Biff
Microsoft Excel MVP


"Romileyrunner1" wrote in message
...
Hi guys,
want to run something like this for a conditional format:


=IF(vlookup($B70,Rec!$N$10:$Q$89,4,false)="A")

Obviously it`s vlooking up the value of "A" up another worksheet.
This comes up with an error: highlighting the "A" part.
Is there a syntax error (probably).
Or is there a problem in running a condition from another worksheet?

Thanks.
RR1



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
Conditional Format Problem E.Q. Excel Discussion (Misc queries) 1 September 9th 06 05:41 AM
conditional format problem John New Users to Excel 4 July 16th 06 05:23 PM
Conditional Format Problem. Big Rick Excel Discussion (Misc queries) 8 October 14th 05 08:05 PM
Conditional format problem PJ Excel Discussion (Misc queries) 2 March 11th 05 02:05 PM
help please with conditional format problem Graham Warren Excel Worksheet Functions 1 November 7th 04 05:57 PM


All times are GMT +1. The time now is 10:29 PM.

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"