mountainscaler
New Member
- Joined
- Jan 22, 2018
- Messages
- 4
Hello All,
I am new to the forum and have been using VBA in a limited fashion for about half a year. However, it is my goal to get a lot better at it so here I am.
My first question involves comparing values between two different workbooks using a macro. Specifically I would like to:
Example of data format in Workbook 1:
<tbody>
</tbody>
Example of data format in Workbook 2:
<tbody>
</tbody>
Any and all help would be greatly appreciated!
I am new to the forum and have been using VBA in a limited fashion for about half a year. However, it is my goal to get a lot better at it so here I am.
My first question involves comparing values between two different workbooks using a macro. Specifically I would like to:
- Look in column C of Workbook-1 and associate column C cell values with cell values in column L. Column C values will be the key values to be searched in Workbook-2.
- Then, look in Workbook-2, column A for the Workbook-1 keys and compare the values in Workbook-2 column J those in column L of Workbook-1.
- If values in Workbook-1, column L exceed those in Workbook-2, column J for rows with matching keys, then highlight the exceeding cells in Workbook-1, column L in red.
Example of data format in Workbook 1:
<tbody> </tbody> |
<tbody>
</tbody>
Example of data format in Workbook 2:
A | B | C | D | E | F | G | H | I | J |
Analyte | Filtered | units | Geo_mean | Ges_STDV | samp_nm | Min | Max | 90_CL | 95_CL |
alkalinity | N | mg/L | 116.85 | 1183 | 30 | 80.0 | 170.0 | 147.1 | 156.4 |
iron | Y | mg/L | 0.055 | 6.17 | 22 | 0.006 | 7.2 | 0.57 | 1.10 |
calcium | N | mg/L | 36.5 | 1.33 | 25 | 19.2 | 79.7 | 52.6 | 58.4 |
<tbody>
</tbody>
Any and all help would be greatly appreciated!