A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Vlookup or Offset question



 
 
Thread Tools Display Modes
  #1  
Old September 15th, 2003, 06:05 PM
Bill
external usenet poster
 
Posts: n/a
Default Vlookup or Offset question

Not sure how to accomplish this so i will attempt to explain. Any
assistance would be greatly appreciated!

Sheet1 - consists of four columns of data for females with the first column
(A) being years from 20 - 65, and the other three being whole numbers.
Sheet2 - consists of four columns of data for males with the first column
(A) being years from 20 - 65, and the other three being whole numbers.
Sheet3 - consists of the following:
A2 - name
B2 - Age in years (calculated from two dates)
C2 - Gender (M or F)
D2, E2, F2 - numbers that are needed to come from either Sheet 1
or Sheet 2 based on the year (B2) and the Gender (C2)

Basically I need to be able to fill D2, E2, and F2 on Sheet3 with the values
from the corresponding year on either Sheet1 or Sheet2 depending on whether
the gender is M or F.

Is this possible? If so, any examples would be greatly appreciated. TIA!

Bill


  #2  
Old September 15th, 2003, 06:24 PM
Jason Morin
external usenet poster
 
Posts: n/a
Default Vlookup or Offset question

Try this in D2 on Sheet3 and drag across:

=VLOOKUP($B2,INDIRECT("Sheet"&IF($C2="M",2,1)&"!
A"),COLUMN()-2,0)

If you'd like the workbook that I used to test this, e-
mail me directly with a copy of your original post.

HTH
Jason
Atlanta, GA

-----Original Message-----
Not sure how to accomplish this so i will attempt to

explain. Any
assistance would be greatly appreciated!

Sheet1 - consists of four columns of data for females

with the first column
(A) being years from 20 - 65, and the other three being

whole numbers.
Sheet2 - consists of four columns of data for males with

the first column
(A) being years from 20 - 65, and the other three being

whole numbers.
Sheet3 - consists of the following:
A2 - name
B2 - Age in years (calculated from two dates)
C2 - Gender (M or F)
D2, E2, F2 - numbers that are needed to come

from either Sheet 1
or Sheet 2 based on the year (B2) and the Gender (C2)

Basically I need to be able to fill D2, E2, and F2 on

Sheet3 with the values
from the corresponding year on either Sheet1 or Sheet2

depending on whether
the gender is M or F.

Is this possible? If so, any examples would be greatly

appreciated. TIA!

Bill


.

  #3  
Old September 15th, 2003, 06:34 PM
Bill
external usenet poster
 
Posts: n/a
Default Vlookup or Offset question

Excellent-A! THANKS!

Bill
"Jason Morin" wrote in message
...
Try this in D2 on Sheet3 and drag across:

=VLOOKUP($B2,INDIRECT("Sheet"&IF($C2="M",2,1)&"!
A"),COLUMN()-2,0)

If you'd like the workbook that I used to test this, e-
mail me directly with a copy of your original post.

HTH
Jason
Atlanta, GA

-----Original Message-----
Not sure how to accomplish this so i will attempt to

explain. Any
assistance would be greatly appreciated!

Sheet1 - consists of four columns of data for females

with the first column
(A) being years from 20 - 65, and the other three being

whole numbers.
Sheet2 - consists of four columns of data for males with

the first column
(A) being years from 20 - 65, and the other three being

whole numbers.
Sheet3 - consists of the following:
A2 - name
B2 - Age in years (calculated from two dates)
C2 - Gender (M or F)
D2, E2, F2 - numbers that are needed to come

from either Sheet 1
or Sheet 2 based on the year (B2) and the Gender (C2)

Basically I need to be able to fill D2, E2, and F2 on

Sheet3 with the values
from the corresponding year on either Sheet1 or Sheet2

depending on whether
the gender is M or F.

Is this possible? If so, any examples would be greatly

appreciated. TIA!

Bill


.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:03 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.