LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
Mo Mo is offline
external usenet poster
 
Posts: 69
Default Comparing values or text in 2 different workbooks

Hello -

I am fairly new to VBA and I have a question to ask. I need to write a code
that compares market value, market price, shares, and portfolio numbers. So
if for example market price in wb1 is different than wb2 then it should write
in a new sheet portfolio number, market value, market price, and shares.

It must do the following:

1. compare values in 4 columns in workbook1 to 4 columns in workbook2.
2. if values of any of them are different then it should write in a new
sheet the information in the following format:
Row 1: wb1 - portfolio number - market price - market value - shares
Row 2: wb2 - portfolio number - market price - market value - shares
Row 3: Blank
Repeat
3. if portfolio number is blank then it should skip this entire field.

I really would appreciate all the help! Thanks!
 
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
Comparing two columns of text values MYATT Excel Discussion (Misc queries) 2 September 24th 08 08:48 PM
comparing text values in two columns TD Excel Discussion (Misc queries) 6 June 10th 08 10:40 AM
Formula for comparing text in two workbooks Bob Excel Worksheet Functions 2 December 9th 04 08:45 PM
Looping and Comparing values in two workbooks Lynn A. Excel Programming 1 September 15th 04 04:42 PM
Comparing text instead of values? NorTor[_2_] Excel Programming 1 January 6th 04 10:47 PM


All times are GMT +1. The time now is 09:08 PM.

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"