Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Vlookup or Hlookup help

I have a worksheet that has names in column 1, and columns 2 - 13 are the
months. I want to create a formula to move the values in columns 2 - 13 to
another sheet based on the month.

Thanks



  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,104
Default Vlookup or Hlookup help

Sheet 1, row 1 has labels: name, Jan, Feb, mar
A2:A20 has some names
B2:M20 has numbers

Sheet 2 in A2 I enter a name, in B2 I enter a date,
in C2 I enter =VLOOKUP(A2,Sheet1!A1:M20,MONTH(Sheet2!B2)+1,FALSE )

So if B2 is Fred and the date in some time in March, the formula find Fred;
row on Sheet1 and takes from the 4th column Fred's March data

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

"microsoft.public" wrote in message
...
I have a worksheet that has names in column 1, and columns 2 - 13 are the
months. I want to create a formula to move the values in columns 2 - 13 to
another sheet based on the month.

Thanks





  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Vlookup or Hlookup help

That's closer than I got, but it's still not working as I would like.
Here's exactly what I have - maybe what I want isn't possible or maybe I
need to add a nested If statement or something...

Sheet 1 - row 1 has data labels for each month (Jan - Dec)
Column A = Employee #, B = Name, C = GL Account #, D through O = amounts for
each month

Sheet 2 - row 2 Columns A through C are the same as on Sheet 1
Column D I would like to populate based on the month value that I enter in
B1 on Sheet 2.

Using your formula only works if I change the + 1 to + 4, for example since
it starts in column 4, but I can't get it to update based on the value I
type in B1 on Sheet 2

Thanks again for the quick reply.



"Bernard Liengme" wrote in message
...
Sheet 1, row 1 has labels: name, Jan, Feb, mar
A2:A20 has some names
B2:M20 has numbers

Sheet 2 in A2 I enter a name, in B2 I enter a date,
in C2 I enter =VLOOKUP(A2,Sheet1!A1:M20,MONTH(Sheet2!B2)+1,FALSE )

So if B2 is Fred and the date in some time in March, the formula find
Fred; row on Sheet1 and takes from the 4th column Fred's March data

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

"microsoft.public" wrote in message
...
I have a worksheet that has names in column 1, and columns 2 - 13 are the
months. I want to create a formula to move the values in columns 2 - 13
to another sheet based on the month.

Thanks





  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,104
Default Vlookup or Hlookup help

Try
=VLOOKUP(A2,Sheet1!B2:M20,MONTH(Sheet2!B2)+4,FALSE )
If this does not work, email me a file --- remove TRUENORTH.
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"microsoft.public" wrote in message
...
That's closer than I got, but it's still not working as I would like.
Here's exactly what I have - maybe what I want isn't possible or maybe I
need to add a nested If statement or something...

Sheet 1 - row 1 has data labels for each month (Jan - Dec)
Column A = Employee #, B = Name, C = GL Account #, D through O = amounts
for each month

Sheet 2 - row 2 Columns A through C are the same as on Sheet 1
Column D I would like to populate based on the month value that I enter in
B1 on Sheet 2.

Using your formula only works if I change the + 1 to + 4, for example
since it starts in column 4, but I can't get it to update based on the
value I type in B1 on Sheet 2

Thanks again for the quick reply.



"Bernard Liengme" wrote in message
...
Sheet 1, row 1 has labels: name, Jan, Feb, mar
A2:A20 has some names
B2:M20 has numbers

Sheet 2 in A2 I enter a name, in B2 I enter a date,
in C2 I enter =VLOOKUP(A2,Sheet1!A1:M20,MONTH(Sheet2!B2)+1,FALSE )

So if B2 is Fred and the date in some time in March, the formula find
Fred; row on Sheet1 and takes from the 4th column Fred's March data

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

"microsoft.public" wrote in message
...
I have a worksheet that has names in column 1, and columns 2 - 13 are the
months. I want to create a formula to move the values in columns 2 - 13
to another sheet based on the month.

Thanks







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
Vlookup or Hlookup stew Excel Discussion (Misc queries) 8 November 13th 08 07:56 PM
HLookup vs VLookup Unknown User[_2_] Excel Discussion (Misc queries) 2 October 21st 08 03:21 PM
Vlookup vs Hlookup or Both? Pete Elbert Excel Worksheet Functions 7 November 28th 07 01:12 PM
Vlookup & hlookup Aitchy Excel Worksheet Functions 3 May 29th 07 05:10 AM
Vlookup and Hlookup Phlogiston2312 Excel Worksheet Functions 1 April 21st 05 04:59 PM


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