Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 26
Default Multiple IF statement

Hi guys,
A little help required please.
I have a worksheet that looks like this;

J L
10 Y 1
11 Y 2
12 N 4
13 Y 3
14 N 5

Our staff will be inputting a Y or a N in column J and then selecting a
reason for that from a drop down menu in column L. A Y in Col J should only
be followed by a 1 or 2 in Col L (but some errors occur!). I want to add a
conditional format to Col J where if they enter a Y but then select something
from Col L that isnt a 1 or 2, for the Y to turn red.

Have tried a couple of IF statements but no joy.
Many thanks and keep up the great work!

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 269
Default Multiple IF statement

for conditional formatting suing a formula you just need to make the formula
evaluate to true to turn on the formatting

for Cell J10 use the formula =AND(J10="Y",L102) for your conditional format
formula and set the shading to red.
Once you have this, just set the Applies To range as needed. Make sure your
references are relative, not absolute (i,e. J10 and not $j$10).

--
If this helps, please remember to click yes.


"J.Scargill" wrote:

Hi guys,
A little help required please.
I have a worksheet that looks like this;

J L
10 Y 1
11 Y 2
12 N 4
13 Y 3
14 N 5

Our staff will be inputting a Y or a N in column J and then selecting a
reason for that from a drop down menu in column L. A Y in Col J should only
be followed by a 1 or 2 in Col L (but some errors occur!). I want to add a
conditional format to Col J where if they enter a Y but then select something
from Col L that isnt a 1 or 2, for the Y to turn red.

Have tried a couple of IF statements but no joy.
Many thanks and keep up the great work!

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
I think I need a multiple IF statement, or is there another way? Carl Waring Excel Worksheet Functions 5 March 18th 10 10:57 AM
If statement with multiple criteria and multiple results Tickfarmer Excel Discussion (Misc queries) 3 January 28th 09 08:11 PM
Multiple If statement John Gregory Excel Discussion (Misc queries) 8 October 10th 08 05:57 PM
Multiple IF Statement John Excel Worksheet Functions 4 June 9th 07 02:33 PM
Help with a multiple OR statement. Pank Excel Discussion (Misc queries) 2 July 11th 06 03:10 PM


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