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

I have 2 sheets i need to compare values with each other.
If there is a MATCH in value then i need the cell value to be changed to
Strikethrough.

There is 3 IF conditions though.

something like this:

=IF(AND(MATCH(SHEET8.D:D.VALUE =
SHEET4.A:A.VALUE),(MATCH(SHEET8.D:D.OFFSET(1,0).VA LUE =
SHEET4.A:A.OFFSET(2,2).VALUE),(MATCHSHEET8.D:D.OFF SET(2,-3).VALUE =
SHEET4.A:A.OFFSET(2,-1).VALUE),FONT.STRIKETHROUGH=TRUE,FONT.STRIKETHROU GH=FALSE)

Can/How would i go about that ?
Each D:D and A:A needs to be a cell value that matches another cell value
from across sheets.

Possible?

Corey....


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Conditional Formatting across Sheets

In CF, you just need to return a True/False and you use the Format to set
the style. So your formula would be

=AND(condition1, condition2, condition3)

and then format for strikethrough.

One other issue is that with CF you cannot refer directly to other sheets,
so you need to create an Excel defined name (InsertNameDefine Name) for
any ranges on other sheets.

Your formula is syntactically incorrect, you MATCH a single value against a
list, not a list against a list. What is the logical requirement?



--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Corey" wrote in message
...
I have 2 sheets i need to compare values with each other.
If there is a MATCH in value then i need the cell value to be changed to
Strikethrough.

There is 3 IF conditions though.

something like this:

=IF(AND(MATCH(SHEET8.D:D.VALUE =
SHEET4.A:A.VALUE),(MATCH(SHEET8.D:D.OFFSET(1,0).VA LUE =
SHEET4.A:A.OFFSET(2,2).VALUE),(MATCHSHEET8.D:D.OFF SET(2,-3).VALUE =

SHEET4.A:A.OFFSET(2,-1).VALUE),FONT.STRIKETHROUGH=TRUE,FONT.STRIKETHROU GH=FA
LSE)

Can/How would i go about that ?
Each D:D and A:A needs to be a cell value that matches another cell value
from across sheets.

Possible?

Corey....




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 172
Default Conditional Formatting across Sheets

Bob,
The logical requirement is to MATCH a Value in a cell in sheet4 Column A
with a value in Sheet8 Column D, with the condition that other values MATCH
other values that are NEAR(Offset) the value.

In the following:
If in sheet8 D:D VALUE(X)= sheet4 A:A VALUE & THE VALUE IN sheet8
D:D.offset(-3,2) =sheet4 C:C .offset(2,-1) & sheet8 D:D.offset(0,1)=sheet4
..offset.range(2,2):(22,2)
eg.
Sheet8
A B C D E F H I J K L M N
1 Y
2
3
4 X
5 Z
6
7
8
9
10


Sheet4
A B C D E F H I J K L M N
1
2
3
4
5 Y
6 X
7
8 Z
9
10



Result to have a MATCHING value(Z) in sheet4 Column C font changed to
Strikethrough.


Corey....


"Bob Phillips" wrote in message
...
In CF, you just need to return a True/False and you use the Format to set
the style. So your formula would be

=AND(condition1, condition2, condition3)

and then format for strikethrough.

One other issue is that with CF you cannot refer directly to other sheets,
so you need to create an Excel defined name (InsertNameDefine Name) for
any ranges on other sheets.

Your formula is syntactically incorrect, you MATCH a single value against
a
list, not a list against a list. What is the logical requirement?



--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Corey" wrote in message
...
I have 2 sheets i need to compare values with each other.
If there is a MATCH in value then i need the cell value to be changed to
Strikethrough.

There is 3 IF conditions though.

something like this:

=IF(AND(MATCH(SHEET8.D:D.VALUE =
SHEET4.A:A.VALUE),(MATCH(SHEET8.D:D.OFFSET(1,0).VA LUE =
SHEET4.A:A.OFFSET(2,2).VALUE),(MATCHSHEET8.D:D.OFF SET(2,-3).VALUE =

SHEET4.A:A.OFFSET(2,-1).VALUE),FONT.STRIKETHROUGH=TRUE,FONT.STRIKETHROU GH=FA
LSE)

Can/How would i go about that ?
Each D:D and A:A needs to be a cell value that matches another cell value
from across sheets.

Possible?

Corey....






  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,726
Default Conditional Formatting across Sheets

Still struggling with the formula. Your new details do not conform to what
you originally gave.

Give an example using actual cell references, not Offsets, it will be
simpler. Something like

If A2 found in Column D of Sheet 8 And
If C3 is found in the row below in Sheet 8 column D and ...


--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Corey" wrote in message
...
Bob,
The logical requirement is to MATCH a Value in a cell in sheet4 Column A
with a value in Sheet8 Column D, with the condition that other values
MATCH other values that are NEAR(Offset) the value.

In the following:
If in sheet8 D:D VALUE(X)= sheet4 A:A VALUE & THE VALUE IN sheet8
D:D.offset(-3,2) =sheet4 C:C .offset(2,-1) & sheet8 D:D.offset(0,1)=sheet4
.offset.range(2,2):(22,2)
eg.
Sheet8
A B C D E F H I J K L M N
1 Y
2
3
4 X
5 Z
6
7
8
9
10


Sheet4
A B C D E F H I J K L M N
1
2
3
4
5 Y
6 X
7
8 Z
9
10



Result to have a MATCHING value(Z) in sheet4 Column C font changed to
Strikethrough.


Corey....


"Bob Phillips" wrote in message
...
In CF, you just need to return a True/False and you use the Format to set
the style. So your formula would be

=AND(condition1, condition2, condition3)

and then format for strikethrough.

One other issue is that with CF you cannot refer directly to other
sheets,
so you need to create an Excel defined name (InsertNameDefine Name) for
any ranges on other sheets.

Your formula is syntactically incorrect, you MATCH a single value against
a
list, not a list against a list. What is the logical requirement?



--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Corey" wrote in message
...
I have 2 sheets i need to compare values with each other.
If there is a MATCH in value then i need the cell value to be changed to
Strikethrough.

There is 3 IF conditions though.

something like this:

=IF(AND(MATCH(SHEET8.D:D.VALUE =
SHEET4.A:A.VALUE),(MATCH(SHEET8.D:D.OFFSET(1,0).VA LUE =
SHEET4.A:A.OFFSET(2,2).VALUE),(MATCHSHEET8.D:D.OFF SET(2,-3).VALUE =

SHEET4.A:A.OFFSET(2,-1).VALUE),FONT.STRIKETHROUGH=TRUE,FONT.STRIKETHROU GH=FA
LSE)

Can/How would i go about that ?
Each D:D and A:A needs to be a cell value that matches another cell
value
from across sheets.

Possible?

Corey....








  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 172
Default Conditional Formatting across Sheets

Ok,
sheet4 Column A are ID Numbers every 25 rows(rest ="")
Sheet4 Column C has Names AND numerical values
sheet8 Column's D,F,H,J&L has ID Numbers AND numerical values
sheet8 Column F has a name values


if D4 found in Column D of Sheet8 AND A2 found in Column A of Sheet4 values
MATCH
AND
if F1 found in Column F in Sheet8 AND C1 found in Column C of Sheet4 values
MATCH
AND
if D5 found in Colum D of Sheet8 AND C8 found in Column C of Sheet4 values
MATCH
then C8 found in Column C of Sheet4 is font.Strikethrough = True.


ALL values are in the SAME Columns, except for the 1st IF where i have
sheet8 Columns D,F,H,J&L with a value from sheet4



Corey....


"Bob Phillips" wrote in message
...
Still struggling with the formula. Your new details do not conform to what
you originally gave.

Give an example using actual cell references, not Offsets, it will be
simpler. Something like

If A2 found in Column D of Sheet 8 And
If C3 is found in the row below in Sheet 8 column D and ...


--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Corey" wrote in message
...
Bob,
The logical requirement is to MATCH a Value in a cell in sheet4 Column A
with a value in Sheet8 Column D, with the condition that other values
MATCH other values that are NEAR(Offset) the value.

In the following:
If in sheet8 D:D VALUE(X)= sheet4 A:A VALUE & THE VALUE IN sheet8
D:D.offset(-3,2) =sheet4 C:C .offset(2,-1) & sheet8
D:D.offset(0,1)=sheet4
.offset.range(2,2):(22,2)
eg.
Sheet8
A B C D E F H I J K L M N
1 Y
2
3
4 X
5 Z
6
7
8
9
10


Sheet4
A B C D E F H I J K L M N
1
2
3
4
5 Y
6 X
7
8 Z
9
10



Result to have a MATCHING value(Z) in sheet4 Column C font changed to
Strikethrough.


Corey....


"Bob Phillips" wrote in message
...
In CF, you just need to return a True/False and you use the Format to
set
the style. So your formula would be

=AND(condition1, condition2, condition3)

and then format for strikethrough.

One other issue is that with CF you cannot refer directly to other
sheets,
so you need to create an Excel defined name (InsertNameDefine Name)
for
any ranges on other sheets.

Your formula is syntactically incorrect, you MATCH a single value
against
a
list, not a list against a list. What is the logical requirement?



--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Corey" wrote in message
...
I have 2 sheets i need to compare values with each other.
If there is a MATCH in value then i need the cell value to be changed
to
Strikethrough.

There is 3 IF conditions though.

something like this:

=IF(AND(MATCH(SHEET8.D:D.VALUE =
SHEET4.A:A.VALUE),(MATCH(SHEET8.D:D.OFFSET(1,0).VA LUE =
SHEET4.A:A.OFFSET(2,2).VALUE),(MATCHSHEET8.D:D.OFF SET(2,-3).VALUE =

SHEET4.A:A.OFFSET(2,-1).VALUE),FONT.STRIKETHROUGH=TRUE,FONT.STRIKETHROU GH=FA
LSE)

Can/How would i go about that ?
Each D:D and A:A needs to be a cell value that matches another cell
value
from across sheets.

Possible?

Corey....













  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 172
Default Conditional Formatting across Sheets

Not sure if this assists, but what ever selection from this combobox code is
chosen, i need that value in sheet(InspectionData) to change to
Strikethrough.

Thought it may be easier via CD than Code??


Private Sub ComboBox6_DropButtonClick()
Application.ScreenUpdating = False
If ComboBox6.ListCount 0 Then Exit Sub
'Place the References in here for the Roll Numbers and Lengths
Dim lastcell As Long
Dim myrow As Long

lastcell = workSheets("InspectionData").Cells(Rows.Count,
"A").End(xlUp).Row

With ActiveWorkbook.workSheets("InspectionData")
For myrow = 2 To lastcell
If .Cells(myrow, 1) < "" Then
If .Cells(myrow, 1).Offset(-1, 2).Text = ComboBox28.Text And
..Cells(myrow, 1).Offset(-1, 6).Text = ComboBox1.Text And .Cells(myrow,
1).Offset(0, 0).Value = ComboBox5.Text And IsNumeric(Trim(Mid(.Cells(myrow,
1), 2))) = True Then
For i = 2 To 22
If Cells(myrow, 3).Offset(i, 0).Font.Strikethrough =
False And Cells(myrow, 3).Offset(i, 0).Value < "" Then
ComboBox6.AddItem Cells(myrow, 3).Offset(i, 0)
End If
Next i
End If
End If
Next
End With
Application.ScreenUpdating = True
End Sub

CHOSEN Value to Change sheet(InspectionData) value to Strikethrough font, so
it will NOT list AGAIN.

Corey....

"Bob Phillips" wrote in message
...
Still struggling with the formula. Your new details do not conform to what
you originally gave.

Give an example using actual cell references, not Offsets, it will be
simpler. Something like

If A2 found in Column D of Sheet 8 And
If C3 is found in the row below in Sheet 8 column D and ...


--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Corey" wrote in message
...
Bob,
The logical requirement is to MATCH a Value in a cell in sheet4 Column A
with a value in Sheet8 Column D, with the condition that other values
MATCH other values that are NEAR(Offset) the value.

In the following:
If in sheet8 D:D VALUE(X)= sheet4 A:A VALUE & THE VALUE IN sheet8
D:D.offset(-3,2) =sheet4 C:C .offset(2,-1) & sheet8
D:D.offset(0,1)=sheet4 .offset.range(2,2):(22,2)
eg.
Sheet8
A B C D E F H I J K L M N
1 Y
2
3
4 X
5 Z
6
7
8
9
10


Sheet4
A B C D E F H I J K L M N
1
2
3
4
5 Y
6 X
7
8 Z
9
10



Result to have a MATCHING value(Z) in sheet4 Column C font changed to
Strikethrough.


Corey....


"Bob Phillips" wrote in message
...
In CF, you just need to return a True/False and you use the Format to
set
the style. So your formula would be

=AND(condition1, condition2, condition3)

and then format for strikethrough.

One other issue is that with CF you cannot refer directly to other
sheets,
so you need to create an Excel defined name (InsertNameDefine Name)
for
any ranges on other sheets.

Your formula is syntactically incorrect, you MATCH a single value
against a
list, not a list against a list. What is the logical requirement?



--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Corey" wrote in message
...
I have 2 sheets i need to compare values with each other.
If there is a MATCH in value then i need the cell value to be changed
to
Strikethrough.

There is 3 IF conditions though.

something like this:

=IF(AND(MATCH(SHEET8.D:D.VALUE =
SHEET4.A:A.VALUE),(MATCH(SHEET8.D:D.OFFSET(1,0).VA LUE =
SHEET4.A:A.OFFSET(2,2).VALUE),(MATCHSHEET8.D:D.OFF SET(2,-3).VALUE =

SHEET4.A:A.OFFSET(2,-1).VALUE),FONT.STRIKETHROUGH=TRUE,FONT.STRIKETHROU GH=FA
LSE)

Can/How would i go about that ?
Each D:D and A:A needs to be a cell value that matches another cell
value
from across sheets.

Possible?

Corey....










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
Keeping conditional formatting when sorting Andrea A Excel Discussion (Misc queries) 0 April 4th 06 03:00 PM
conditional formatting Rich Excel Discussion (Misc queries) 2 April 1st 06 10:27 AM
Conditional Formatting Ant Excel Worksheet Functions 4 December 8th 05 08:44 PM
cannot use ISEVEN or ISODD functions in Conditional Formatting Scott Paine Excel Worksheet Functions 6 December 6th 05 09:44 PM
enhanced conditional formatting Stuart Excel Discussion (Misc queries) 13 November 13th 05 07:20 PM


All times are GMT +1. The time now is 10:48 AM.

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"