VBA Excel on comparison of two columns using empl id or name

kochkarun

New Member
Joined
Nov 29, 2016
Messages
1
Hi,

I am a beginner on working with macros in excel. I am currently trying to overcome challenges on the below items.


  1. To compare two columns in excel using macros. The challenge I am facing is that I want to compare using empl id or name which are in multiple rows and add the total value (say time spent in office) under the same empl id or name.
  2. How to compare an entire column value to a single value and assign color coding?
I used the following syntax:

<code style="margin: 0px; padding: 0px; border: 0px; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; white-space: inherit;">Dim c As Range
For Each c In Worksheets("Sheet1").Range("W2:W" & lastRow).Cells
If Columns.Range("W2:W").Value <= 8 Then
c
.Interior.ColorIndex = 3

End If
Next</code>
  1. How to extract the information of a particular filter value in a column and use that in the email?
Please provide your inputs! Thanks in advance!
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,071
Latest member
cdnMech

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top