#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default VB coding

i am trying to do a bank rec where i match on:
check number (exact match)
deposit amount and date (both field need to match)
Column A = check #
column B = date
column C= amount
I may need to tell the macro if
check (c) or deposit (d)
if (c) match on column A
if (d) match on column B and C

i need to highlight the cells that match in both sheets.

thanks,

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default VB coding

You don't have to use a macro. Using conditional formating could give you
the same results

With the check you are looking for in Row 1 and the list of checks in Row 3
to 100

Add the formula in cell A3 inusing Format - Conditional formating and then
change Value IS to Formula IS

=And($A$1=$A3,$B$1=$B3,$C$1=$C3)

the in conditional formating choose the Pattern Tab and select a color.

Then copy cell A3 and select the rest of the table A3:C100 and use
PasteSpecial and coose Format. When you change cells A1:A3 the rows that
match will automatically hightlight.
"ricky" wrote:

i am trying to do a bank rec where i match on:
check number (exact match)
deposit amount and date (both field need to match)
Column A = check #
column B = date
column C= amount
I may need to tell the macro if
check (c) or deposit (d)
if (c) match on column A
if (d) match on column B and C

i need to highlight the cells that match in both sheets.

thanks,

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default VB coding

i am comparing two sheets.
checks = (sheet1.column A) looking for a match in (sheet2.column A)
Deposits = (sheet1.column B and C) looking for a match in (sheet2.column B
and C)

thanks,
"Joel" wrote:

You don't have to use a macro. Using conditional formating could give you
the same results

With the check you are looking for in Row 1 and the list of checks in Row 3
to 100

Add the formula in cell A3 inusing Format - Conditional formating and then
change Value IS to Formula IS

=And($A$1=$A3,$B$1=$B3,$C$1=$C3)

the in conditional formating choose the Pattern Tab and select a color.

Then copy cell A3 and select the rest of the table A3:C100 and use
PasteSpecial and coose Format. When you change cells A1:A3 the rows that
match will automatically hightlight.
"ricky" wrote:

i am trying to do a bank rec where i match on:
check number (exact match)
deposit amount and date (both field need to match)
Column A = check #
column B = date
column C= amount
I may need to tell the macro if
check (c) or deposit (d)
if (c) match on column A
if (d) match on column B and C

i need to highlight the cells that match in both sheets.

thanks,

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default VB coding

you can still use conditional formating. I usully get the formula working
correctly on the worksheet and then convert to conditional formating.

You can use countif for a simple column to column comparision
I you are in sheet 2 cell A5 comparing again sheet 1 colun A

=IF(COUNTIF(Sheet1!$A:$A,A5)0,TRUE,FALSE)

for two column comparision use sumproduct

=if(Sumproduct(--(sheet1!B1:B1000=B5),--(sheet1!C1:C1000=C5))0,True,True)


"ricky" wrote:

i am comparing two sheets.
checks = (sheet1.column A) looking for a match in (sheet2.column A)
Deposits = (sheet1.column B and C) looking for a match in (sheet2.column B
and C)

thanks,
"Joel" wrote:

You don't have to use a macro. Using conditional formating could give you
the same results

With the check you are looking for in Row 1 and the list of checks in Row 3
to 100

Add the formula in cell A3 inusing Format - Conditional formating and then
change Value IS to Formula IS

=And($A$1=$A3,$B$1=$B3,$C$1=$C3)

the in conditional formating choose the Pattern Tab and select a color.

Then copy cell A3 and select the rest of the table A3:C100 and use
PasteSpecial and coose Format. When you change cells A1:A3 the rows that
match will automatically hightlight.
"ricky" wrote:

i am trying to do a bank rec where i match on:
check number (exact match)
deposit amount and date (both field need to match)
Column A = check #
column B = date
column C= amount
I may need to tell the macro if
check (c) or deposit (d)
if (c) match on column A
if (d) match on column B and C

i need to highlight the cells that match in both sheets.

thanks,

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
sum by coding without 0 kaja New Users to Excel 2 March 1st 08 03:52 PM
HELP for coding? Eric Excel Programming 9 June 21st 07 03:34 AM
Can anyone help me with coding this? John D Excel Programming 1 May 18th 07 11:36 AM
"=ROW()-1" type of coding doesn't appear in a filter / is there coding that does? StargateFan[_3_] Excel Programming 10 October 6th 05 01:18 PM
Implant macro coding into ASP coding Sam yong Excel Programming 5 September 15th 05 10:37 AM


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