PC Review


Reply
Thread Tools Rate Thread

Conditional more than one iif

 
 
JoeM
Guest
Posts: n/a
 
      21st Apr 2010
I need to conditional format based on if two cells are evaluated:

If in this row the value in column U is = “1” and the value in column M is >
“30” then row should be highlighted green

I probably should not wait til the end of the day to start a new excel
sheet...lol


Joe

 
Reply With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      21st Apr 2010
Hi,

Try this CF formula

=AND($U1=1,$M1=30)

Select the full row before you apply it, change the 1 to the row you are in.
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"JoeM" wrote:

> I need to conditional format based on if two cells are evaluated:
>
> If in this row the value in column U is = “1” and the value in column M is >
> “30” then row should be highlighted green
>
> I probably should not wait til the end of the day to start a new excel
> sheet...lol
>
>
> Joe
>

 
Reply With Quote
 
Bernard Liengme
Guest
Posts: n/a
 
      21st Apr 2010
No IF needed
Let's say you want this to apply to rows 2 thru 20
Select the row headers 2:20 so that the entire range is highlighted
For you Conditional Format formula use =AND($M2>30,$U2=1)
We reference cells in row 2 here because that this the first row of our
selected range
Note that the formula used in conditional formatting generally should return
TRUE or FALSE

BTW: why in your question did you but 1 and 30 in quotes. We seldom need
quotes around numbers in Excel
best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

"JoeM" <(E-Mail Removed)> wrote in message
news:2580D65E-01CE-4795-ADD5-(E-Mail Removed)...
> I need to conditional format based on if two cells are evaluated:
>
> If in this row the value in column U is = “1” and the value in column M is
> >

> “30” then row should be highlighted green
>
> I probably should not wait til the end of the day to start a new excel
> sheet...lol
>
>
> Joe
>

 
Reply With Quote
 
JoeM
Guest
Posts: n/a
 
      21st Apr 2010
I tried the both above but to no avail.

I want to select all the rows and if a value in column M are greater than 54
(>54) and the value in column V is = 1 then highlight the row.

Joe


"Bernard Liengme" wrote:

> No IF needed
> Let's say you want this to apply to rows 2 thru 20
> Select the row headers 2:20 so that the entire range is highlighted
> For you Conditional Format formula use =AND($M2>30,$U2=1)
> We reference cells in row 2 here because that this the first row of our
> selected range
> Note that the formula used in conditional formatting generally should return
> TRUE or FALSE
>
> BTW: why in your question did you but 1 and 30 in quotes. We seldom need
> quotes around numbers in Excel
> best wishes
> --
> Bernard Liengme
> Microsoft Excel MVP
> http://people.stfx.ca/bliengme
>
> "JoeM" <(E-Mail Removed)> wrote in message
> news:2580D65E-01CE-4795-ADD5-(E-Mail Removed)...
> > I need to conditional format based on if two cells are evaluated:
> >
> > If in this row the value in column U is = “1” and the value in column M is
> > >

> > “30” then row should be highlighted green
> >
> > I probably should not wait til the end of the day to start a new excel
> > sheet...lol
> >
> >
> > Joe
> >

> .
>

 
Reply With Quote
 
JoeM
Guest
Posts: n/a
 
      21st Apr 2010
BTW: why in your question did you but 1 and 30 in quotes. We seldom need
quotes around numbers in Excel

No particular reaason just wantd to note the values I was looking for,
probably some of MSAccess queries rubbing off on me, long day, sorry!

Joe

"Bernard Liengme" wrote:

> No IF needed
> Let's say you want this to apply to rows 2 thru 20
> Select the row headers 2:20 so that the entire range is highlighted
> For you Conditional Format formula use =AND($M2>30,$U2=1)
> We reference cells in row 2 here because that this the first row of our
> selected range
> Note that the formula used in conditional formatting generally should return
> TRUE or FALSE
>
> BTW: why in your question did you but 1 and 30 in quotes. We seldom need
> quotes around numbers in Excel
> best wishes
> --
> Bernard Liengme
> Microsoft Excel MVP
> http://people.stfx.ca/bliengme
>
> "JoeM" <(E-Mail Removed)> wrote in message
> news:2580D65E-01CE-4795-ADD5-(E-Mail Removed)...
> > I need to conditional format based on if two cells are evaluated:
> >
> > If in this row the value in column U is = “1” and the value in column M is
> > >

> > “30” then row should be highlighted green
> >
> > I probably should not wait til the end of the day to start a new excel
> > sheet...lol
> >
> >
> > Joe
> >

> .
>

 
Reply With Quote
 
Mike H
Guest
Posts: n/a
 
      21st Apr 2010
> I tried the both above but to no avail.

Both solutions are the same and if you have described your problem correctly
both work.

If you select a range of rows then the number in the formula must be the top
row number of the selected range


--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"JoeM" wrote:

> I tried the both above but to no avail.
>
> I want to select all the rows and if a value in column M are greater than 54
> (>54) and the value in column V is = 1 then highlight the row.
>
> Joe
>
>
> "Bernard Liengme" wrote:
>
> > No IF needed
> > Let's say you want this to apply to rows 2 thru 20
> > Select the row headers 2:20 so that the entire range is highlighted
> > For you Conditional Format formula use =AND($M2>30,$U2=1)
> > We reference cells in row 2 here because that this the first row of our
> > selected range
> > Note that the formula used in conditional formatting generally should return
> > TRUE or FALSE
> >
> > BTW: why in your question did you but 1 and 30 in quotes. We seldom need
> > quotes around numbers in Excel
> > best wishes
> > --
> > Bernard Liengme
> > Microsoft Excel MVP
> > http://people.stfx.ca/bliengme
> >
> > "JoeM" <(E-Mail Removed)> wrote in message
> > news:2580D65E-01CE-4795-ADD5-(E-Mail Removed)...
> > > I need to conditional format based on if two cells are evaluated:
> > >
> > > If in this row the value in column U is = “1” and the value in column M is
> > > >
> > > “30” then row should be highlighted green
> > >
> > > I probably should not wait til the end of the day to start a new excel
> > > sheet...lol
> > >
> > >
> > > Joe
> > >

> > .
> >

 
Reply With Quote
 
JoeM
Guest
Posts: n/a
 
      22nd Apr 2010
Maybe it's my CF formula?:
=AND($U1=1,$M1>30)


"JoeM" wrote:

> BTW: why in your question did you but 1 and 30 in quotes. We seldom need
> quotes around numbers in Excel
>
> No particular reaason just wantd to note the values I was looking for,
> probably some of MSAccess queries rubbing off on me, long day, sorry!
>
> Joe
>
> "Bernard Liengme" wrote:
>
> > No IF needed
> > Let's say you want this to apply to rows 2 thru 20
> > Select the row headers 2:20 so that the entire range is highlighted
> > For you Conditional Format formula use =AND($M2>30,$U2=1)
> > We reference cells in row 2 here because that this the first row of our
> > selected range
> > Note that the formula used in conditional formatting generally should return
> > TRUE or FALSE
> >
> > BTW: why in your question did you but 1 and 30 in quotes. We seldom need
> > quotes around numbers in Excel
> > best wishes
> > --
> > Bernard Liengme
> > Microsoft Excel MVP
> > http://people.stfx.ca/bliengme
> >
> > "JoeM" <(E-Mail Removed)> wrote in message
> > news:2580D65E-01CE-4795-ADD5-(E-Mail Removed)...
> > > I need to conditional format based on if two cells are evaluated:
> > >
> > > If in this row the value in column U is = “1” and the value in column M is
> > > >
> > > “30” then row should be highlighted green
> > >
> > > I probably should not wait til the end of the day to start a new excel
> > > sheet...lol
> > >
> > >
> > > Joe
> > >

> > .
> >

 
Reply With Quote
 
JoeM
Guest
Posts: n/a
 
      22nd Apr 2010
The formula works fine, but what i am finding out is if I start my sheet at
say A45 the formula doesn't seem to get the same results, where if I start
the sheet at A1 it works fine.

Joe

"JoeM" wrote:

> Maybe it's my CF formula?:
> =AND($U1=1,$M1>30)
>
>
> "JoeM" wrote:
>
> > BTW: why in your question did you but 1 and 30 in quotes. We seldom need
> > quotes around numbers in Excel
> >
> > No particular reaason just wantd to note the values I was looking for,
> > probably some of MSAccess queries rubbing off on me, long day, sorry!
> >
> > Joe
> >
> > "Bernard Liengme" wrote:
> >
> > > No IF needed
> > > Let's say you want this to apply to rows 2 thru 20
> > > Select the row headers 2:20 so that the entire range is highlighted
> > > For you Conditional Format formula use =AND($M2>30,$U2=1)
> > > We reference cells in row 2 here because that this the first row of our
> > > selected range
> > > Note that the formula used in conditional formatting generally should return
> > > TRUE or FALSE
> > >
> > > BTW: why in your question did you but 1 and 30 in quotes. We seldom need
> > > quotes around numbers in Excel
> > > best wishes
> > > --
> > > Bernard Liengme
> > > Microsoft Excel MVP
> > > http://people.stfx.ca/bliengme
> > >
> > > "JoeM" <(E-Mail Removed)> wrote in message
> > > news:2580D65E-01CE-4795-ADD5-(E-Mail Removed)...
> > > > I need to conditional format based on if two cells are evaluated:
> > > >
> > > > If in this row the value in column U is = “1” and the value in column M is
> > > > >
> > > > “30” then row should be highlighted green
> > > >
> > > > I probably should not wait til the end of the day to start a new excel
> > > > sheet...lol
> > > >
> > > >
> > > > Joe
> > > >
> > > .
> > >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to apply a conditional Select distinct (or conditional Where onduplicated cell values in a column) Jamie Microsoft Access Queries 3 2nd Oct 2009 07:39 PM
Conditional Formatting No Longer Conditional in 2007 Beta =?Utf-8?B?Q2FjdHVhci1Oby1KdXRzdQ==?= Microsoft Excel Crashes 0 17th Nov 2006 10:01 PM
Using query results within Conditional Statement...sequenced conditional queries rafael.farias.jr@gmail.com Microsoft Access 3 30th Aug 2006 02:08 PM
Conditional Formatting that will display conditional data =?Utf-8?B?QnJhaW5GYXJ0?= Microsoft Excel Worksheet Functions 1 13th Sep 2005 05:45 PM
Re: Multiple conditional on conditional format formula Bob Phillips Microsoft Excel Programming 0 27th Jul 2004 05:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:58 PM.