#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default Date Function

Hi,

I have 2 column of data in sheet 1. Column A is date and B is value. I
want the value in column B sheet 1 to copy column B sheet 2 according
to date.

SHEET1
A B
27/01/2010 230
31/01/2010 110
03/02/2010 34
11/02/2010 10
18/02/2010 5
12/02/2010 78
20/02/2010 22
27/02/2010 78


SHEET 2

A B
01/01/2010
02/01/2010
03/01/2010
04/01/2010
05/01/2010
06/01/2010
07/01/2010
08/01/2010
09/01/2010
10/01/2010
11/01/2010
12/01/2010
13/01/2010
14/01/2010
15/01/2010
16/01/2010
17/01/2010
18/01/2010
19/01/2010
20/01/2010
21/01/2010
22/01/2010
23/01/2010
24/01/2010
25/01/2010
26/01/2010
27/01/2010
28/01/2010
29/01/2010
30/01/2010
31/01/2010
01/02/2010
02/02/2010
03/02/2010
04/02/2010
05/02/2010
06/02/2010
07/02/2010
08/02/2010
09/02/2010
10/02/2010
11/02/2010
12/02/2010
13/02/2010
14/02/2010
15/02/2010
16/02/2010
17/02/2010
18/02/2010
19/02/2010
20/02/2010
21/02/2010
22/02/2010
23/02/2010
24/02/2010
25/02/2010
26/02/2010
27/02/2010
28/02/2010

What is the formula that i should use?

Thank you

dave
United Kingdom
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Date Function

What is the formula that i should use?

Take a look VLOOKUP function in help menu


"dave" wrote:

Hi,

I have 2 column of data in sheet 1. Column A is date and B is value. I
want the value in column B sheet 1 to copy column B sheet 2 according
to date.

SHEET1
A B
27/01/2010 230
31/01/2010 110
03/02/2010 34
11/02/2010 10
18/02/2010 5
12/02/2010 78
20/02/2010 22
27/02/2010 78


SHEET 2

A B
01/01/2010
02/01/2010
03/01/2010
04/01/2010
05/01/2010
06/01/2010
07/01/2010
08/01/2010
09/01/2010
10/01/2010
11/01/2010
12/01/2010
13/01/2010
14/01/2010
15/01/2010
16/01/2010
17/01/2010
18/01/2010
19/01/2010
20/01/2010
21/01/2010
22/01/2010
23/01/2010
24/01/2010
25/01/2010
26/01/2010
27/01/2010
28/01/2010
29/01/2010
30/01/2010
31/01/2010
01/02/2010
02/02/2010
03/02/2010
04/02/2010
05/02/2010
06/02/2010
07/02/2010
08/02/2010
09/02/2010
10/02/2010
11/02/2010
12/02/2010
13/02/2010
14/02/2010
15/02/2010
16/02/2010
17/02/2010
18/02/2010
19/02/2010
20/02/2010
21/02/2010
22/02/2010
23/02/2010
24/02/2010
25/02/2010
26/02/2010
27/02/2010
28/02/2010

What is the formula that i should use?

Thank you

dave
United Kingdom
.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,510
Default Date Function

Hi Dave,

Assuming that your data has column headers and therefore the data starts on
row 2 then in cell B2 of Sheet2 insert the following formula and copy it down
the column.

=VLOOKUP(A2,Sheet1!$A$2:$B$9,2,FALSE)

However, the above formula will return #N/A for each date that does not have
a matching value. The following extension of the formula will display a blank
cell for the non matching dates. Note the formula is one line and you might
need to edit it in the formula bar to remove a line ffed if you copy and
paste it into your worksheet.

=IF(ISNA(VLOOKUP(A2,Sheet1!$A$2:$B$9,2,FALSE)),"", VLOOKUP(A2,Sheet1!$A$2:$B$9,2,FALSE))

Copy and paste the formula down the column.

--
Regards,

OssieMac


"dave" wrote:

Hi,

I have 2 column of data in sheet 1. Column A is date and B is value. I
want the value in column B sheet 1 to copy column B sheet 2 according
to date.

SHEET1
A B
27/01/2010 230
31/01/2010 110
03/02/2010 34
11/02/2010 10
18/02/2010 5
12/02/2010 78
20/02/2010 22
27/02/2010 78


SHEET 2

A B
01/01/2010
02/01/2010
03/01/2010
04/01/2010
05/01/2010
06/01/2010
07/01/2010
08/01/2010
09/01/2010
10/01/2010
11/01/2010
12/01/2010
13/01/2010
14/01/2010
15/01/2010
16/01/2010
17/01/2010
18/01/2010
19/01/2010
20/01/2010
21/01/2010
22/01/2010
23/01/2010
24/01/2010
25/01/2010
26/01/2010
27/01/2010
28/01/2010
29/01/2010
30/01/2010
31/01/2010
01/02/2010
02/02/2010
03/02/2010
04/02/2010
05/02/2010
06/02/2010
07/02/2010
08/02/2010
09/02/2010
10/02/2010
11/02/2010
12/02/2010
13/02/2010
14/02/2010
15/02/2010
16/02/2010
17/02/2010
18/02/2010
19/02/2010
20/02/2010
21/02/2010
22/02/2010
23/02/2010
24/02/2010
25/02/2010
26/02/2010
27/02/2010
28/02/2010

What is the formula that i should use?

Thank you

dave
United Kingdom
.

Reply
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
Function to lookup date on tab in excel and populate date on calen MGC Excel Worksheet Functions 0 February 4th 10 04:48 AM
Difference betwen Excel Date () Function and System Date Khalil[_2_] Excel Worksheet Functions 2 June 16th 09 01:10 PM
SUMIF within date range as a function of today()'s date irvine79 Excel Worksheet Functions 8 August 6th 06 05:55 PM
Date Function formula that will return the date of a specific week Greg Excel Worksheet Functions 4 June 12th 06 05:07 PM
Calculating days between current date and a date in future NETWORKDAYS() function Faheem Khan Excel Worksheet Functions 2 February 10th 05 07:18 PM


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

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"