New Excel Forum

This forum has been moved to TeachExcel.com

Ask all future questions in the New Excel Forum.

ExcelKey

need help with macro building

Macros, VBA, Excel Automation, etc.

need help with macro building

Postby daved » Wed Nov 11, 2015 11:58 am

"Check every cell in C3 and down till last data with every cells in A3 till end of A col with data, if match found then, match the values in col D3 onwards with B3 and down till end.If no match found, then color with reference color of D1 cell.
Example:-
in C3 is ""B"", i match with col A, found ""B"". now for ""B""s in col C we have values (2,3) but in col A for ""B""s are values (9,5). so colored the values 2 and 3 in col D.

pls note: my result be on D col only.

and every data in each columns are variable not fixed." "Check every cell in C3 and down till last data with every cells in A3 till end of A col with data, if match found then, match the values in col D3 onwards with B3 and down till end.If no match found, then color with reference color of D1 cell.
Example:-
in C3 is ""B"", i match with col A, found ""B"". now for ""B""s in col C we have values (2,3) but in col A for ""B""s are values (9,5). so colored the values 2 and 3 in col D.

pls note: my result be on D col only.

and every data in each columns are variable not fixed."
Check1 Result1 Check2 Result2 Check1 Result1 Check2 Result2
A 32 B 2 A 32 B 2
A 3 B 3 A 3 B 3
A 8 C 9 A 8 C 9
B 9 C 25 r B 9 C 25
B 5 C 26 e B 5 C 26
B 0 F VV s B 0 F VV
K 9 F 9 u K 9 F 9
K VV L 25 l K VV L 25
K 60 L 0 t K 60 L 0
K 12 L 1 K 12 L 1
D 15 P 12 D 15 P 12
D 30 P 16 D 30 P 16
F 11 K VV F 11 K VV
H 100 K 81 H 100 K 81
C ZZ A 32 C ZZ A 32
C 9 E 61 C 9 E 61
C 19 A 98 C 19 A 98
C 23 C 23
C 25 C 25
  • 0

You do not have the required permissions to view the files attached to this post.
daved
Rookie
 
Posts: 2
Joined: Nov 11, 2015
Reputation: 0
Excel Version: 2013

Re: need help with macro building

Postby NoSparks » Thu Nov 12, 2015 9:20 am

Create 2 new columns
One for text of A&B joined together
Other for text of C&D joined together
For each cell of the C&D do an application.match on the A&B
If an error is returned, there is no match.
  • 0

NoSparks
Excel Hobbyist
 
Posts: 637
Joined: May 28, 2014
Reputation: 103
Excel Version: 2010

Re: need help with macro building

Postby daved » Fri Nov 13, 2015 1:34 am

thank you, will try and let know....:)
  • 0

daved
Rookie
 
Posts: 2
Joined: Nov 11, 2015
Reputation: 0
Excel Version: 2013


Return to Macros and VBA Questions

Who is online

Users browsing this forum: No registered users and 224 guests