LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default excel macros

The formula was written for D as originally specified.

Look in the Excel help at Vlookup and Match.

--
Regards,
Tom Ogilvy


"Marie" wrote:

i still can't get it to work. can you explain each piece to me to help me
understand what it is saying? my data that I want to copy and paste is in
the same column (E) in both worksheets. Row A is a header row in both. but
the rest of the rows don't match and I need the function to go through the
whole worksheet.

"Tom Ogilvy" wrote:

Nor does the formula assume any correlation between rows between the sheets.
That is why the match and vlookup functions are in the formula.

--
Regards,
Tom Ogilvy


"Marie" wrote:

the datedif function worked, but for the first function, what do I do if the
data in column a that i'm matching is on different rows, ie: data in a2.sht1
could be in a5.sht2, and data in a3.sht1 could be in column a: any row.sht2
do you understand what I'm trying to say? no correlation in how far/close
the data in sht2 is.

"Tom Ogilvy" wrote:

If you not familiar with macros, then perhaps a formula would be better.

IN D1 of Sheet2

=IF(A1<"",IF(ISNUMBER(MATCH(A1,Sheet1!A:A,0)),VLO OKUP(A1,Sheet1!A:D,4,FALSE),""),"")

then drag fill down the column.

To calculate an Age, use the DateDif worksheet function. It is only
documented in the xl2000 help, but has been around for all versions and still
is. See Chip Pearson's site for documentation and how to use it.

http://www.cpearson.com/excel/datedif.htm

--
Regards,
Tom Ogilvy



"Marie" wrote:

I need a macro for two different problems. I need one that will copy data
from one spreadsheet to another in such that if a1.sht1 = a1.sht2 then copy
data from d1.sht1 to d1.sht2. I also need one that can calculate an age from
a date so that if c5= 7-Mar-80 then d5= 26. I'm new to macros and am not
sure on how to program this. I'm using Excel 2003.

 
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
Excel 2007 macros - how to merge 5 macros together into one Sue Excel Discussion (Misc queries) 1 April 16th 08 08:36 PM
Training: More on how to use macros in Excel: Recording Macros ToriT Excel Worksheet Functions 2 February 10th 06 07:05 PM
convert lotus 123w macros to excel macros rpiescik[_2_] Excel Programming 1 September 19th 04 12:41 PM
convert lotus 123w macros to excel macros rpiescik Excel Programming 1 September 18th 04 01:35 PM
Making excel macros run Word macros Matthew McManus Excel Programming 1 February 18th 04 02:57 AM


All times are GMT +1. The time now is 09:15 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"