A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Help with Conditional Format Formula



 
 
Thread Tools Display Modes
  #1  
Old May 3rd, 2010, 10:23 PM posted to microsoft.public.excel.worksheet.functions
David K.[_5_]
external usenet poster
 
Posts: 7
Default Help with Conditional Format Formula

Hi,

How can I highlight cells in a list of numbers on Sheet1 where the number of
occurrences of that number on Sheet2 is not equal to 1?

Sheet1 has a list of unique numbers that will not change.
Sheet2 is an entry sheet were a list will be entered.
Assuming both lists will start in A1 and continue in column A.

On Sheet1 how can I highlight cells in the list where the number of
occurrences of that number on Sheet2 is not equal to 1?

In other words, using the list on Sheet1, I want to know if a number has not
been entered or entered more than once on Sheet2.

Hope this makes sense to someone. Thanks for any ideas.
--
David K.



  #2  
Old May 3rd, 2010, 11:44 PM posted to microsoft.public.excel.worksheet.functions
David K.[_5_]
external usenet poster
 
Posts: 7
Default Help with Conditional Format Formula

There's probably a better way but this seems to work. On Sheet1: conditional
format formula
=SUMPRODUCT(--(A1='Sheet2'!A1:A3000),'Sheet2'!A1:A3000)A1

Don't tell my wife that I answered myself.


"David K." wrote in message
...
Hi,

How can I highlight cells in a list of numbers on Sheet1 where the number
of occurrences of that number on Sheet2 is not equal to 1?

Sheet1 has a list of unique numbers that will not change.
Sheet2 is an entry sheet were a list will be entered.
Assuming both lists will start in A1 and continue in column A.

On Sheet1 how can I highlight cells in the list where the number of
occurrences of that number on Sheet2 is not equal to 1?

In other words, using the list on Sheet1, I want to know if a number has
not been entered or entered more than once on Sheet2.

Hope this makes sense to someone. Thanks for any ideas.
--
David K.





  #3  
Old May 3rd, 2010, 11:47 PM posted to microsoft.public.excel.worksheet.functions
Teethless mama
external usenet poster
 
Posts: 3,722
Default Help with Conditional Format Formula

=COUNTIF(INDIRECT("Sheet2"&"!A:A"),A1)1


"David K." wrote:

Hi,

How can I highlight cells in a list of numbers on Sheet1 where the number of
occurrences of that number on Sheet2 is not equal to 1?

Sheet1 has a list of unique numbers that will not change.
Sheet2 is an entry sheet were a list will be entered.
Assuming both lists will start in A1 and continue in column A.

On Sheet1 how can I highlight cells in the list where the number of
occurrences of that number on Sheet2 is not equal to 1?

In other words, using the list on Sheet1, I want to know if a number has not
been entered or entered more than once on Sheet2.

Hope this makes sense to someone. Thanks for any ideas.
--
David K.



.

  #4  
Old May 3rd, 2010, 11:48 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default Help with Conditional Format Formula

There are a couple of extenuating circumstances that make this a bit more
complicated than it should be.

You can't *directly* refer to another sheet when applying conditional
formatting.

You can get around this by using defined names *but* you need a defined
formula that uses *relative references*.

Try this...

Rng refers to Sheet2!$A$1:$A$20

***This is important***

Select cell A1 on the sheet where you want the formatting to apply. Even if
cell A1 is not one of the cells you need formatted, we need to make this
named formula relative and you do that by making cell A1 the active cell
when you define the name.

So, Select cell A1 on the sheet where you want the formatting to apply.

Create this named formula
Goto InsertNameDefine
Name: IsNotZero
Refers to: =COUNTIF(Rng,A1)0
**Make sure you use cell A1 as the criteria argument**
Ok out

Now, apply the conditional formatting...

Let's assume the range to format is A10:A20

Select the *entire* range A10:A20 starting from cell A10. Cell A10 will be
the
active cell. The active cell is the one cell in the selected range that is
not shaded. The formula will be relative to the active cell.

Goto the menu FormatConditional Formatting
Select the Formula Is option
Enter this formula in the box on the right:
=IsNotZero
Click the Format button
Select the desired style(s)
OK out

--
Biff
Microsoft Excel MVP


"David K." wrote in message
...
Hi,

How can I highlight cells in a list of numbers on Sheet1 where the number
of occurrences of that number on Sheet2 is not equal to 1?

Sheet1 has a list of unique numbers that will not change.
Sheet2 is an entry sheet were a list will be entered.
Assuming both lists will start in A1 and continue in column A.

On Sheet1 how can I highlight cells in the list where the number of
occurrences of that number on Sheet2 is not equal to 1?

In other words, using the list on Sheet1, I want to know if a number has
not been entered or entered more than once on Sheet2.

Hope this makes sense to someone. Thanks for any ideas.
--
David K.





  #5  
Old May 3rd, 2010, 11:59 PM posted to microsoft.public.excel.worksheet.functions
David K.[_5_]
external usenet poster
 
Posts: 7
Default Help with Conditional Format Formula

The magic of microsoft seems to be preventing the exchange of replies
between the web inteface and Outlook Express again.
My thanks to Teethless mama for the response.
=COUNTIF(INDIRECT("Sheet2"&"!A:A"),A1)1
Very nice.


"David K." wrote in message
...
There's probably a better way but this seems to work. On Sheet1:
conditional format formula
=SUMPRODUCT(--(A1='Sheet2'!A1:A3000),'Sheet2'!A1:A3000)A1

Don't tell my wife that I answered myself.


"David K." wrote in message
...
Hi,

How can I highlight cells in a list of numbers on Sheet1 where the number
of occurrences of that number on Sheet2 is not equal to 1?

Sheet1 has a list of unique numbers that will not change.
Sheet2 is an entry sheet were a list will be entered.
Assuming both lists will start in A1 and continue in column A.

On Sheet1 how can I highlight cells in the list where the number of
occurrences of that number on Sheet2 is not equal to 1?

In other words, using the list on Sheet1, I want to know if a number has
not been entered or entered more than once on Sheet2.

Hope this makes sense to someone. Thanks for any ideas.
--
David K.







  #6  
Old May 4th, 2010, 12:06 AM posted to microsoft.public.excel.worksheet.functions
David K.[_5_]
external usenet poster
 
Posts: 7
Default Help with Conditional Format Formula

Thanks Biff. I think I've run into that little 'conditional format
referncing' issue before. I'll apply this concept.
Thanks again.

"T. Valko" wrote in message
...
There are a couple of extenuating circumstances that make this a bit more
complicated than it should be.

You can't *directly* refer to another sheet when applying conditional
formatting.

You can get around this by using defined names *but* you need a defined
formula that uses *relative references*.

Try this...

Rng refers to Sheet2!$A$1:$A$20

***This is important***

Select cell A1 on the sheet where you want the formatting to apply. Even
if cell A1 is not one of the cells you need formatted, we need to make
this named formula relative and you do that by making cell A1 the active
cell when you define the name.

So, Select cell A1 on the sheet where you want the formatting to apply.

Create this named formula
Goto InsertNameDefine
Name: IsNotZero
Refers to: =COUNTIF(Rng,A1)0
**Make sure you use cell A1 as the criteria argument**
Ok out

Now, apply the conditional formatting...

Let's assume the range to format is A10:A20

Select the *entire* range A10:A20 starting from cell A10. Cell A10 will be
the
active cell. The active cell is the one cell in the selected range that is
not shaded. The formula will be relative to the active cell.

Goto the menu FormatConditional Formatting
Select the Formula Is option
Enter this formula in the box on the right:
=IsNotZero
Click the Format button
Select the desired style(s)
OK out

--
Biff
Microsoft Excel MVP


"David K." wrote in message
...
Hi,

How can I highlight cells in a list of numbers on Sheet1 where the number
of occurrences of that number on Sheet2 is not equal to 1?

Sheet1 has a list of unique numbers that will not change.
Sheet2 is an entry sheet were a list will be entered.
Assuming both lists will start in A1 and continue in column A.

On Sheet1 how can I highlight cells in the list where the number of
occurrences of that number on Sheet2 is not equal to 1?

In other words, using the list on Sheet1, I want to know if a number has
not been entered or entered more than once on Sheet2.

Hope this makes sense to someone. Thanks for any ideas.
--
David K.







  #7  
Old May 4th, 2010, 03:46 AM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default Help with Conditional Format Formula

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"David K." wrote in message
...
Thanks Biff. I think I've run into that little 'conditional format
referncing' issue before. I'll apply this concept.
Thanks again.

"T. Valko" wrote in message
...
There are a couple of extenuating circumstances that make this a bit more
complicated than it should be.

You can't *directly* refer to another sheet when applying conditional
formatting.

You can get around this by using defined names *but* you need a defined
formula that uses *relative references*.

Try this...

Rng refers to Sheet2!$A$1:$A$20

***This is important***

Select cell A1 on the sheet where you want the formatting to apply. Even
if cell A1 is not one of the cells you need formatted, we need to make
this named formula relative and you do that by making cell A1 the active
cell when you define the name.

So, Select cell A1 on the sheet where you want the formatting to apply.

Create this named formula
Goto InsertNameDefine
Name: IsNotZero
Refers to: =COUNTIF(Rng,A1)0
**Make sure you use cell A1 as the criteria argument**
Ok out

Now, apply the conditional formatting...

Let's assume the range to format is A10:A20

Select the *entire* range A10:A20 starting from cell A10. Cell A10 will
be the
active cell. The active cell is the one cell in the selected range that
is
not shaded. The formula will be relative to the active cell.

Goto the menu FormatConditional Formatting
Select the Formula Is option
Enter this formula in the box on the right:
=IsNotZero
Click the Format button
Select the desired style(s)
OK out

--
Biff
Microsoft Excel MVP


"David K." wrote in message
...
Hi,

How can I highlight cells in a list of numbers on Sheet1 where the
number of occurrences of that number on Sheet2 is not equal to 1?

Sheet1 has a list of unique numbers that will not change.
Sheet2 is an entry sheet were a list will be entered.
Assuming both lists will start in A1 and continue in column A.

On Sheet1 how can I highlight cells in the list where the number of
occurrences of that number on Sheet2 is not equal to 1?

In other words, using the list on Sheet1, I want to know if a number has
not been entered or entered more than once on Sheet2.

Hope this makes sense to someone. Thanks for any ideas.
--
David K.









 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:40 AM.


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