Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default VLookup+ Monthly Data

Hi I am trying to save some time Cut and Paste.
I have values as follows for each month
Col A Col B
Jan 5.15
Feb 3.20
-
Dec 6.75

I then have a 100 years of daily data
Col X Col Y
1 Jan 1900
2 Jan 1900
3 Jan 1900
-
31 Dec 1999

I want to apply the value for January (5.15) to Col Y for 1-31st January
00-99, then same for Feb, march etc.
I need to do this fairly frequently to copy into another program.

Probably a simple answer, I have used VLookup before but cant get it to work
for this.

Many thanks
Chris
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,104
Default VLookup+ Monthly Data

I will assume:
1) In Col A you have text not dates
2) in Col X you have real dates

In AA1 use the formula
=CHOOSE(MONTH(X1),"Jan","Feb",
"Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","N ov","Dec")
Copy it down the column; giving text like: Jan, Feb ..

In X1 use the formula
=VLOOKUP(AA1,$A$1:$B$12,2,FALSE)
Copy it down the column

I will leave it to use to combine the AA1 formula into the X1 formula if so
desired

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email


"Chris26" wrote in message
...
Hi I am trying to save some time Cut and Paste.
I have values as follows for each month
Col A Col B
Jan 5.15
Feb 3.20
-
Dec 6.75

I then have a 100 years of daily data
Col X Col Y
1 Jan 1900
2 Jan 1900
3 Jan 1900
-
31 Dec 1999

I want to apply the value for January (5.15) to Col Y for 1-31st January
00-99, then same for Feb, march etc.
I need to do this fairly frequently to copy into another program.

Probably a simple answer, I have used VLookup before but cant get it to
work
for this.

Many thanks
Chris



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default VLookup+ Monthly Data

That worked, Thank you

"Bernard Liengme" wrote:

I will assume:
1) In Col A you have text not dates
2) in Col X you have real dates

In AA1 use the formula
=CHOOSE(MONTH(X1),"Jan","Feb",
"Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","N ov","Dec")
Copy it down the column; giving text like: Jan, Feb ..

In X1 use the formula
=VLOOKUP(AA1,$A$1:$B$12,2,FALSE)
Copy it down the column

I will leave it to use to combine the AA1 formula into the X1 formula if so
desired

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email


"Chris26" wrote in message
...
Hi I am trying to save some time Cut and Paste.
I have values as follows for each month
Col A Col B
Jan 5.15
Feb 3.20
-
Dec 6.75

I then have a 100 years of daily data
Col X Col Y
1 Jan 1900
2 Jan 1900
3 Jan 1900
-
31 Dec 1999

I want to apply the value for January (5.15) to Col Y for 1-31st January
00-99, then same for Feb, march etc.
I need to do this fairly frequently to copy into another program.

Probably a simple answer, I have used VLookup before but cant get it to
work
for this.

Many thanks
Chris




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default VLookup+ Monthly Data

=CHOOSE(MONTH(X1),"Jan","Feb",
"Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","N ov","Dec")



shorter version:

=TEXT(X1,"mmm")



"Bernard Liengme" wrote:

I will assume:
1) In Col A you have text not dates
2) in Col X you have real dates

In AA1 use the formula
=CHOOSE(MONTH(X1),"Jan","Feb",
"Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","N ov","Dec")
Copy it down the column; giving text like: Jan, Feb ..

In X1 use the formula
=VLOOKUP(AA1,$A$1:$B$12,2,FALSE)
Copy it down the column

I will leave it to use to combine the AA1 formula into the X1 formula if so
desired

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email


"Chris26" wrote in message
...
Hi I am trying to save some time Cut and Paste.
I have values as follows for each month
Col A Col B
Jan 5.15
Feb 3.20
-
Dec 6.75

I then have a 100 years of daily data
Col X Col Y
1 Jan 1900
2 Jan 1900
3 Jan 1900
-
31 Dec 1999

I want to apply the value for January (5.15) to Col Y for 1-31st January
00-99, then same for Feb, march etc.
I need to do this fairly frequently to copy into another program.

Probably a simple answer, I have used VLookup before but cant get it to
work
for this.

Many thanks
Chris




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,104
Default VLookup+ Monthly Data

Good point! I must have more coffee!
best wishes
--
Bernard

"Teethless mama" wrote in message
...
=CHOOSE(MONTH(X1),"Jan","Feb",
"Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","N ov","Dec")



shorter version:

=TEXT(X1,"mmm")



"Bernard Liengme" wrote:

I will assume:
1) In Col A you have text not dates
2) in Col X you have real dates

In AA1 use the formula
=CHOOSE(MONTH(X1),"Jan","Feb",
"Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","N ov","Dec")
Copy it down the column; giving text like: Jan, Feb ..

In X1 use the formula
=VLOOKUP(AA1,$A$1:$B$12,2,FALSE)
Copy it down the column

I will leave it to use to combine the AA1 formula into the X1 formula if
so
desired

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email


"Chris26" wrote in message
...
Hi I am trying to save some time Cut and Paste.
I have values as follows for each month
Col A Col B
Jan 5.15
Feb 3.20
-
Dec 6.75

I then have a 100 years of daily data
Col X Col Y
1 Jan 1900
2 Jan 1900
3 Jan 1900
-
31 Dec 1999

I want to apply the value for January (5.15) to Col Y for 1-31st
January
00-99, then same for Feb, march etc.
I need to do this fairly frequently to copy into another program.

Probably a simple answer, I have used VLookup before but cant get it to
work
for this.

Many thanks
Chris







  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,104
Default VLookup+ Monthly Data

Now I recall why I used the longer method: it allows for non-standard text
abbreviations in the OP's data
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email


"Teethless mama" wrote in message
...
=CHOOSE(MONTH(X1),"Jan","Feb",
"Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","N ov","Dec")



shorter version:

=TEXT(X1,"mmm")



"Bernard Liengme" wrote:

I will assume:
1) In Col A you have text not dates
2) in Col X you have real dates

In AA1 use the formula
=CHOOSE(MONTH(X1),"Jan","Feb",
"Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","N ov","Dec")
Copy it down the column; giving text like: Jan, Feb ..

In X1 use the formula
=VLOOKUP(AA1,$A$1:$B$12,2,FALSE)
Copy it down the column

I will leave it to use to combine the AA1 formula into the X1 formula if
so
desired

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email


"Chris26" wrote in message
...
Hi I am trying to save some time Cut and Paste.
I have values as follows for each month
Col A Col B
Jan 5.15
Feb 3.20
-
Dec 6.75

I then have a 100 years of daily data
Col X Col Y
1 Jan 1900
2 Jan 1900
3 Jan 1900
-
31 Dec 1999

I want to apply the value for January (5.15) to Col Y for 1-31st
January
00-99, then same for Feb, march etc.
I need to do this fairly frequently to copy into another program.

Probably a simple answer, I have used VLookup before but cant get it to
work
for this.

Many thanks
Chris





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
Converting daily data into weekly, monthly and yearly data CEGavinMcGrath Excel Discussion (Misc queries) 4 April 3rd 23 06:54 PM
How do I get monthly data in the data area to remain in order LauraFitzroy Charts and Charting in Excel 2 April 13th 07 04:06 PM
VLOOKUP specific monthly accounting data by selecting drop down li Toni Excel Worksheet Functions 2 June 5th 06 09:39 PM
How do I set up monthly random work schedule for 60 hours monthly The Ace of the Base Excel Discussion (Misc queries) 0 April 4th 06 07:36 PM
Mortgage template comparing interest pd, monthly, bi-monthly, ext. JMC Excel Discussion (Misc queries) 0 April 14th 05 02:35 PM


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