LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Comparing data in Excel with VBA

Hi all,

I was wondering if there was a way to possibly do the following items
in Excel with VBA:

1) With two rows of data in excel (i.e. Column A being an item number
and Column B being a quantity), is there a way to say if Column B (the
quantity) is equal to zero, then either copy/export etc. the contents
to the left of that quantity (i.e. if the quantity in column B3 was
zero, then it would refer to A3) would be copied to a text file or
possibly another excel sheet?

2) Another thing I worked on was how to do a comparison of items that
I have. Let's say I have an item list from today, and one from
yesterday. Yesterday's list has some new and missing items compared to
today's list. To compare the two, I do this:

My spreadsheet has two columns, one that I put yesterday's item number
into (A) and one that I put today's numbers into (B). The third column
(C) has (for 3500 rows) the fomula "=VLOOKUP(B2,C:C,1,FALSE)" which
will cause the spreadsheet to look in column C for the value located
in that particular cell. If it finds the value, it will display that
value in the cell. If it does not find that value, it displays "#N/A"
in the cell.

I have one or two other formulas to make a virtual "marker" that the
number is missing from the other sheet. This also makes it difficult
since I have to scroll through the list to see which items no longer
exist. Is there an easier way of doing all of this? I'm assuming with
VBA, but I cannot find the resources I'm looking for anywhere I look.

If you anyone needs more detail, please let me know. Also, if anyone
knows a resource with this information already outlined, that would be
great also.

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 data in excel Eightball Excel Worksheet Functions 3 April 16th 10 12:16 PM
Comparing Data in Excel 2003 Diamonds_Mine Excel Worksheet Functions 7 June 21st 07 10:04 PM
Comparing two Excel data ranges for chnages... NWO Excel Discussion (Misc queries) 2 May 2nd 07 08:01 PM
Excel data comparing Ron Excel Worksheet Functions 0 October 12th 06 03:13 PM
Comparing Data from two excel sheets! Killer Excel Worksheet Functions 4 October 5th 06 08:57 AM


All times are GMT +1. The time now is 08:43 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"